Search code examples
c#asp.netmasstransitoutbox-pattern

MassTransit Transactional Outbox Default Isolation Level


I've been using the MassTransit v8.0.13 Transactional Outbox for a few months, but now I'm wondering about the default transactional level set on it. I'm using Postgres and when I setup the Transactional Outbox, by default it sets the isolation level of all the consumers to Repeatable Read.

Someone knows if there is a reason to use this level? If I change the isolation level to Read Commited will I lose something of the outbox?


Solution

  • The settings are chosen for a reason, to ensure transaction isolation between concurrently delivered messages that may target the same consumer, saga, etc.

    You can change whatever you want, but if it breaks, the change is the likely culprit.

    Why would you want to change it?