Exploring Django’s native components for microservices web applications
Django is a versatile web development tool and has these native components for developing microservices already on board:
- Django Rest Framework (DRF): A framework for building RESTful APIs as general microservices.
- Django Cache Framework: A framework for optimizing the performance of a microservices application.
In the following subsections, we’re looking contemplatively at DRF because in Chapter 5, Creating RESTful APIs for Microservices, we’ll explore DRF in depth and build a RESTful API ourselves. The same applies to caching. Later, in Chapter 10, Improving Microservices Performance With Caching, we’ll learn the ins and outs of caching with Django Cache Framework and Redis.
Now we’ll address DRF and RESTful APIs.
DRF
We learned in Chapter 1, What Is a Microservice?, that microservices come in the following basic flavors:
- General microservices...