How to deploy an ASP.NET Application with zero downtime

后端 未结 11 1356
日久生厌
日久生厌 2020-11-28 00:38

To deploy a new version of our website we do the following:

  1. Zip up the new code, and upload it to the server.
  2. On the live server, delete all the live
11条回答
  •  感情败类
    2020-11-28 01:05

    You need 2 servers and a load balancer. Here's in steps:

    1. Turn all traffic on Server 2
    2. Deploy on Server 1
    3. Test Server 1
    4. Turn all traffic on Server 1
    5. Deploy on Server 2
    6. Test Server 2
    7. Turn traffic on both servers

    Thing is, even in this case you will still have application restarts and loss of sessions if you are using "sticky sessions". If you have database sessions or a state server, then everything should be fine.

提交回复
热议问题