Let\'s take a simple \"Account Registration\" example, here is the flow:
I think for such cases, we can use a mechanism like "advisory lock with expiration".
Sample execution:
Even you can use an sql database; insert username as a primary key of some lock table; and then a scheduled job can handle expirations.