You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I set up multiple message handlers for single message type, they will run asynchronously and possibly out of order. Or, a second handler specified might start before the first one did its job.
Is there a way to ensure synchronicity?
For example: my first handler might be called ArchiveMessageHandler and it will store the message received into database. My next handler will run for that same message but requires that the message is already stored in the database to process it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
If I set up multiple message handlers for single message type, they will run asynchronously and possibly out of order. Or, a second handler specified might start before the first one did its job.
Is there a way to ensure synchronicity?
For example: my first handler might be called ArchiveMessageHandler and it will store the message received into database. My next handler will run for that same message but requires that the message is already stored in the database to process it.
What is the guidance here?
Beta Was this translation helpful? Give feedback.
All reactions