one microservice per host strategy
- 2. Designing Microservices
- from Microservices for the Enterprise: Designing, Developing, and Deploying
- Publisher: Apress
- Released: November 2018
If your one microservice is handled by a thread, and your host is a thread pool (for example, an ASP.NET response handler in an IIS, Kestrel or nginx managed thread pool) then crashing involves the CPU cleaning up the affected thread. In this situation, recovery time can be mere milliseconds. It depends on what your definition of "host," is, and only the cloud service providers want it to be a new virtual machine when that is likely overpowered considering what you must do when one particular request leads to a crash of your microservice.
Share this highlighthttp://www.safaribooksonline.com/a/microservices-for-the/20441058/