concept microservice in category machine learning

appears as: microservices, microservice, A microservice
Machine Learning Systems: Designs that scale

This is an excerpt from Manning's book Machine Learning Systems: Designs that scale.

Eventually, the team decides to abandon their old model-serving implementation when their load becomes too high and predictions can’t be quickly retrieved at peak scale. In the redesign, they decide to try a different approach using some new tools and techniques. Instead of having a monolithic server containing all their models, they choose to create a microservice per model. A microservice is an application that has very limited responsibilities. At the most extreme end, a microservice might do only one thing, holding to the single responsibility principle. When it was originally developed, the single responsibility principle was meant to apply to a small component like a class or a function. The principle was that a given system component should do only one thing. When you extend this principle to system design, you can create a service that does only one thing.

  • Microservices are simple services that have very narrow responsibilities.
  • Models, as pure functions, can be encapsulated into microservices.