O'Reilly logo
  • Derek Harmon thinks this is interesting:

one microservice per host strategy

From

Cover of Microservices for the Enterprise: Designing, Developing, and Deploying

Note

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.