vb.net static variables on a web garden

521 Views Asked by At

Do vb.net static variables work on an IIS web garden?

1

There are 1 best solutions below

1
On

That depends on what you plan to use them for.

You have one set of static variables per process, so if you plan to use it for sharing data between servers, that won't work.

If you plan to use it for caching, it will work. All threads on the same server will share the cache, but you will have one cache per server.