M
M
Matisumi2018-11-22 11:40:01
.NET
Matisumi, 2018-11-22 11:40:01

"Seamless" installation of a web service in C # in production - how?

Introductory - there is a WCF service built into a Windows service. The service gives data for the web application and for the mobile application. For some reason, it takes 3-5 minutes from the start of the service to its full readiness for work. Accordingly, at this time, the web application and mobile applications are down and do not give data to users.
The question is - are there any ways to painlessly update the service so that there is no downtime during the restart?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2018-11-22
@evgshk

In a nutshell, then introduce an additional layer of abstraction - the bus. The client makes a request to the bus, which in turn polls the available WCF service instances. While the WCF1 instance is being upgraded, the bus forwards the request to the standby WCF2. After deploying the update to WCF1, we switch to the updated service.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question