I want to convert one of my synchronous API into asynchronous. And I believe queue are one way to do this. Like a publisher will push(synchronously) the message into queue which will be consumed by consumer API from the queue.
I was curious to know what is the right way of consuming AWS SimpleQueueService messages. Can queue call an API to deliver the message to it or the only way to do is to poll the queue. But I believe that polling will make our system busy waiting so it is best the queue deliver the message to API.
What is possible way to do this?
If you want to consume from SQS you have the following methods:
If you intend to retrieve to get responses back you can also take advantage of virtual queues.