Message queues provide an asynchronous communications protocol, meaning that the sender and receiver of the message do not need to interact with the message queue at the same time. Messages are stored on the queue until they are processed and deleted.
An Image Upload service pushes a job to a RabbitMQ queue. A separate Worker service pulls the job and resizes the image.
# Code Concept for Message Queues (MQ)\n# This pattern is architectural.\n\nclass Service:\n def execute(self):\n # Implementation logic\n pass