InboxState.Delivered = null - Transactional Outbox For Consumers

34 Views Asked by At

A consumer with EF Core transactional outbox configured never sets the Delivered field in the InboxState table when it throws an Exception.

Therefore those 'undelivered' messages will never be deleted by the cleanup service.

  • Is this the desired behavior and shouldn't also those messages be deleted after the DuplicateDetectionWindow?
  • If it is the desired behavior, how to handle this scenario without flooding the database when consumer exceptions happen?
0

There are 0 best solutions below