Creating a sample microservice
Okay, until now, we focused on what microservices are and what the Django microservices architecture consists of. With what we’ve gathered so far, we’re ready to look at a complete microservice to understand what it consists of and what it takes to build one. We’ll split this up into two implementations. First, we’ll explore a microservice implementation with RabbitMQ to understand how message queueing technically works. Then, we’ll walk through a Django microservice implementation with Celery to see what a task-driven Django microservice comprises.
Important note
The Django developer community often uses Celery for task queue management because it’s simple and effective since Celery abstracts the technical details of the underlying message queuing broker.
Nevertheless, it’s valuable to know the inners of message queueing with RabbitMQ and Redis as well because they serve as a vehicle for Celery...