HackerTrans
TopNewTrendsCommentsPastAskShowJobs

5id

no profile record

Submissions

Using Postgres Row-Level Security in a high-growth startup for tenant isolation

medium.com
15 points·by 5id·vor 4 Jahren·0 comments

comments

5id
·vor 3 Jahren·discuss
One of the biggest benefits imo of using Postgres as your application queue, is that any async work you schedule benefits from transactionality.

That is, say you have a relatively complex backend mutation that needs to schedule some async work (eg sending an email after signup). With a Postgres queue, if you insert the job to send the email and then in a later part of the transaction, something fails and the transaction rollbacks, the email is never queued to be sent.