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.
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.
Job done 🙂