在两个负载平衡的IIS服务器之间共享信息

I've two load-balanced IIS servers, and I need to share some information between them.

The information is not related to the user session, so I don't see how a session state provider could help here.

I cannot use the database (requirement), and apparently use shared files for synchronization is not good idea.

What may I use? Of course keeping it as simple as possible, I know I could run memcache or something fancy, but the only thing I need is create a unique number for both servers.

Cheers.

#0

A WCF service that they both have access to would be a suitable solution.

Why can't you use a database? (that is the more standard way)

Edit - if all you need is a unique value (notice I say value and not "number") then I would use a Guid - the chance of a collision is so small it's ridiculous and it means that you can avoid introducing an additional dependency.

Guid g = Guid.NewGuid();

Job done :)

推荐文章

Monodroid:XmlDocument.SelectNodes()方法中出现异常

Monodroid:XmlDocument.SelectNodes()方法中出现异常

推荐文章

ajax的CSRF令牌

ajax的CSRF令牌

推荐文章

使用JSON/Gson读取JSON字符串

使用JSON/Gson读取JSON字符串

推荐文章

如何播放视频从YouTube网址像VLC?

如何播放视频从YouTube网址像VLC?

推荐文章

强迫mathematica将-1+a显示为-1的可能方法是什么

强迫mathematica将-1+a显示为-1的可能方法是什么

推荐文章

如何在挂架中使用SQLAlchemy创建assoc记录?

如何在挂架中使用SQLAlchemy创建assoc记录?

推荐文章

是否有一个包嗅探器可以限制为一个程序?

是否有一个包嗅探器可以限制为一个程序?

推荐文章

查找缺少的元素

查找缺少的元素

推荐文章

FetchedResultsControl返回未知对象

FetchedResultsControl返回未知对象

推荐文章

Linux Live system inc.Ruby 1.9带r/w分区的U盘

Linux Live system inc.Ruby 1.9带r/w分区的U盘

推荐文章

struts 2平铺NoSuchDefinitionException

struts 2平铺NoSuchDefinitionException

推荐文章

必须安装Java才能运行Java应用程序吗?

必须安装Java才能运行Java应用程序吗?

推荐文章

phpMyAdmin报告“没有权限”

phpMyAdmin报告“没有权限”

推荐文章

功能区组在Outlook 2010中不显示

功能区组在Outlook 2010中不显示

推荐文章

如何使程序加载web图像并在自定义视图中显示它?

如何使程序加载web图像并在自定义视图中显示它?

推荐文章

编译特定的boost库

编译特定的boost库