So always write to a transactional queue first and then write to the database by reading sequentially from the queue?
Just need to make sure to not mess up causal ordering between events because of out of order retries, if such things are important for your application.
E.g. what if one event is something like "credit here, debit there" - you need to process it sequentially for both sides!