In the previous chapter, we looked at reactive programming and the ReactiveX framework. In this chapter, we're going to take a look at what a microservice is, why we might want to structure our programs as microservices, and how to use some common Python tools to create them. You'll learn how to use the Flask package to quickly and easily construct a microservice that uses HTTP and representational state transfer, (REST), to provide its interface. We're also going to look at using the nameko package to create microservices that communicate using remote procedure calls instead of HTTP methods.
In this chapter, we will cover the following topics:
- Microservices and the advantages of process isolation
- Building high-level microservices with Flask
- Building high-level microservices with nameko