Replies: 1 comment
-
If I understand your use case correctly, an Uni.createFrom()
.completionStage { sqsAsyncClient.receiveMessage(...) } // make use of AWS async clients
.flatMap {
// processing
// ...
// Always resulting in a specific failure to trigger retry
Uni.createFrom().failure(SqSPollingInProcessException())
}
.onFailure(SqSPollingInProcessException::class.java)
.retry()
.withBackOff(Duration.ofSeconds(20))
.indefinitely() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am currently implementing an email service that receives business events from an aws sqs queue, forwards them to the vertx event bus and finally calls the mailgun api to trigger the email sending. As far as I am aware of, there is currently no long polling mechanism available for sqs queues, thus I came up with my own and would like to ask, if anybody could have a look on it and share his/her opinion? I am fairly new to this topic (mutiny) and any feedback is highly appreciated.
Below you'll find my current solution:
Beta Was this translation helpful? Give feedback.
All reactions