jeudi 23 août 2018

How to return message-completion results from a consumer back to a producer

We are building an application with a microservice architecture.

The microservice architecture will follow a message-oriented pattern, with AWS SQS.

We would like to return completion results from the consumer service back to the producer service.

This is the algorithm we are considering:

  1. Producer creates a message with a unique id
  2. Producer subscribes to a Redis channel that is named with the message id
  3. Producer places the message onto the queue
  4. Consumer removes the message from the queue and performs an operation
  5. Consumer publishes the results of the operation to the Redis channel that is named with the message id
  6. Producer recieves the completion results and resumes execution

Is this a reasonable way to pass message-completion results from a consumer back to a producer?

Aucun commentaire:

Enregistrer un commentaire