Abstract


  • The above application supports photo customization, including cropping, sharpening, blurring, etc. Those customization tasks take time to complete

  • Message Queue Producer publishes photo processing jobs (Message Queue Message) to the message queue. Message Queue Consumer pick up jobs from the message queue and asynchronously perform photo customization tasks


  • High Scalability (可扩展性) since the producer and consumer can be scaled independently. When the size of the queue becomes large, more workers are added to reduce the processing time. When queue is empty most of the time, the number of workers can be reduced

Components


Message Queue Message

  • Asynchronous request

Message Queue Producer

Message Queue Consumer