Summary
In this chapter, we introduced microservices architecture and discussed its merits and demerits. We covered several best practices for building, deploying, and operationalizing microservices. We also analyzed the development options available in Python for building microservices that include Flask, Django, Falcon, Nameko, Bottle, and Tornado. We selected Flask and Django to build sample microservices. To implement a new microservice, we used Django with its REST framework (DRF). This microservice implementation also introduces you to how the Django framework works in general. Later, we provided details of how to containerize a newly created microservice using Docker Engine and Docker Compose. Finally, we converted our Students
API application to a Docker image and deployed it on GCP Cloud Run. We updated the Students
web application to consume two microservices deployed in different parts of the world.
The code examples included in this chapter will provide you with hands...