Book Image

Hands-On Microservices with Django

By : Tieme Woldman
Book Image

Hands-On Microservices with Django

By: Tieme Woldman

Overview of this book

Are you a Django developer looking to leverage microservices to create optimized and scalable web applications? If yes, then this book is for you. With microservices, you can split an application into self-contained services, each with a specific scope running asynchronously while collectively executing processes. Written by an experienced Python developer, Hands-On Microservices with Django teaches you how to develop and deploy microservices using Django and accompanying components such as Celery and Redis. You'll start by learning the principles of microservices and message/task queues and how to design them effectively. Next, you’ll focus on building your first microservices with Django RESTful APIs (DFR) and RabbitMQ, mastering the fundamentals along the way. As you progress, you’ll get to grips with dockerizing your microservices. Later, you’ll discover how to optimize and secure them for production environments. By the end of this book, you’ll have the skills you need to design and develop production-ready Django microservices applications with DFR, Celery/RabbitMQ, Redis, and Django's cache framework.
Table of Contents (18 chapters)
Free Chapter
1
Part 1:Introducing Microservices and Getting Started
5
Part 2:Building the Microservices Foundation
11
Part 3:Taking Microservices to the Production Level

Listing the benefits of microservices

We have already learned about a significant benefit of microservices – reducing the overall waiting time for the user experience. But luckily, microservices have more benefits that justify our effort to apply them in our applications:

  • Scalability: Microservices can be scaled up by running as many instances as our hardware or virtual resources allow
  • Flexibility: Microservices make it easier to adopt new technologies and languages for different parts of your application, enabling flexibility in technology choices
  • Resilience: A failure in one microservice typically doesn’t affect an entire application, enhancing fault tolerance and resilience
  • Maintenance: Microservices have smaller code bases, which are easier to understand and maintain
  • Self-contained: Each microservice can run in its own optimized technology stack
  • Loosely coupled: Microservices are independent of each other and can be built, maintained, and...