Skip to content

Commit

Permalink
Fix Inbox Starvation (#51)
Browse files Browse the repository at this point in the history
* Fix inbox starvation by continuous delaying next message handling
  • Loading branch information
skrasekmichael authored May 6, 2024
1 parent dcccfe9 commit 250a266
Show file tree
Hide file tree
Showing 6 changed files with 441 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/TeamUp.Infrastructure/Core/IntegrationEventManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public void AddIntegrationEvent<TEvent>(TEvent integrationEvent)
Id = Guid.NewGuid(),
CreatedUtc = _dateTimeProvider.UtcNow,
Type = integrationEvent.GetType().FullName!,
Data = JsonSerializer.Serialize(integrationEvent, JsonSerializerOptions)
Data = JsonSerializer.Serialize(integrationEvent, JsonSerializerOptions),
NextProcessingUtc = _dateTimeProvider.UtcNow,
};

_dbContext.Set<OutboxMessage>().Add(message);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 250a266

Please sign in to comment.