Scenerio:
Function A() ->creates the message and puts the message in the queue
Listener -> checks constantly if theres a message in the queue and sends it to the service to process it and get the result and inserts the result into db
Function B() ->gets the result from the db
Suppose the result from the service hasn't come out yet and function b() is called now,the record for tht message id would return null from the db as the result hasnt been inserted yet.
How do you handle such scenerio?