I have a situation where I need to sequentially execute the requests, one at a time.
For some reason, I need to select and update one at a time. (think of it as an I need to return the very unique number per request).
Req1 --> -------------------
Req2 --> Req3 Req2 Req1
Req3 --> -------------------
SequentialController --> SequentialService --> SequentialDao(MyBatis)
Initially, I was thinking about using the queue but then I could not figure out the way to return the response.
So for now, I've implemented the Select For Update query.
Any suggestions would be appreciated.