How can I implement long polling an AWS SQS queue in my Quarkus reactive app? #22298
Unanswered
MihaiBogdanEugen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm working at a Quarkus reactive application, using AWS SDK v2 (the async version). The requirements are quite simple: (1) listen to messages coming from a queue, (2) apply business logic, (3) save them to a datastore, (4) offer an HTTP api that serves them. I'm only talking about part (1), and the queue used is AWS SQS.
I am aware that AWS SQS does not offer any native reactive api, but how can I achieve this? I believe I need to long pool SQS on a worker thread, but I can't find any helpful examples...
Just for reference, the AWS SDK offers you the following:
receiveMessage
method. This method takes aReceiveMessageRequest
that contains the queue URL. You can also specify the maximum number of messages to return. Messages are returned as a list of Message objects.deleteMessage
method.Beta Was this translation helpful? Give feedback.
All reactions