Introducing message queue system, and explain how message queue can be used for queuing tasks. This is especially useful for web application to perform tasks in an asynchronously manner.
• The website needs to ◦ send push notifications to 2000 followers ◦ send email notification to 2000 followers ◦ optimise images in the article ◦ announce it on various (social) media When user clicked ‘Submit’ button, how long does she have to wait?
a. Message contains worker’s URL in custom AMQP header b. Message content might be ID of posted article 2. We developed an app (Message Forwarder) that constantly a. get message from RabbitMQ server b. forwards message to worker using HTTP POST c. multiple messages are sent concurrently