Discussion about this post

User's avatar
Petar Petrov's avatar

Hey Konstantin, great post!

I was wondering about the consumption of messages from the queue:

In the current example you first check if the message exists by id and then return if it does.

Isn't it theoretically possible for the same message to arrive twice at the same time, thus bypassing the 'existsbyid' check twice and therefore - executing the business logic twice?

Is this something you would want to consider in a production app?

Expand full comment
1 more comment...

No posts