Load Balancing in Asp.net, what I should consider while development?

后端 未结 5 1996
醉酒成梦
醉酒成梦 2021-02-06 06:00

While working on one ASP.NET project hosted within web farm including two front ends and load balancing, we got one issue regarding ASP.NET session state while being set to be \

5条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 06:51

    On my development server, I've configured IIS to use 3 worker processes (web garden) as a poor mans test for our load balanced environment, worked a treat.

    We dont use session/application data. Our load balancer is configured with address affinity, so requests from the same IP go to the same server, thus allowing us to cache some user data. Our biggest gotcha was with cached data across the farm not being in sync, solved by wrapping the cache with a simple network library to send 'cached item changed' messages to other servers.

提交回复
热议问题