Mixed order of operations when using completionStage #1244
einarjohnson
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi, the pipeline looks correct: Now what you may see in your logs (depending on what level of detail you have here) is concurrent work because you are joining several |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a reactive Quarkus
2.16.3.Final
application(lambda) that is processing a batch of events and inserting them to AWS DynamoDB and then forwarding them to an AWS SQS queue. One of the requirements is that the events must be persisted in DynamoDB before we forward them to SQS for further processing because downstream handlers rely on this event store to be up to date.The DynamoDB persist code is like this:
And the SQS message queue code is like this:
The main event processor/lambda handler is simple and the code is pretty much doing something like this.
The problem I am facing is that it seems to me (according to our production logs) that the
sqsService.queueMessage
is sometimes executed before thedynamoDBService.storeLoggerEvent
call has completed.Do I need to structure the Mutiny call chain in a different way if I want to guarantee that these two nested calls are called one after another?
Beta Was this translation helpful? Give feedback.
All reactions