feat(events): add idempotent Kafka event consumer runtime
This commit is contained in:
1 parent
565ef8d4f5
commit
3adb0ef9e4
47 files changed
+5018
-105
No files matched your search
@@ -25,6 +25,7 @@ import (
|
||||
"lincodex/backend/internal/domain"
|
||||
"lincodex/backend/internal/port/outbound"
|
||||
"lincodex/backend/internal/worker/outboxrelay"
|
||||
"lincodex/backend/internal/worker/retry"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -497,7 +498,7 @@ func (harness *relayHarness) newRelayWithMetrics(publisher outbound.EventPublish
|
||||
return outboxrelay.New(harness.store, publisher, metrics, slog.New(slog.DiscardHandler), outboxrelay.Settings{
|
||||
BatchSize: relayBatchSize,
|
||||
PollInterval: relayPollInterval,
|
||||
Backoff: outboxrelay.Backoff{Initial: relayBackoffInitial, Max: relayBackoffMax},
|
||||
Backoff: retry.Backoff{Initial: relayBackoffInitial, Max: relayBackoffMax},
|
||||
ShutdownTimeout: relayShutdownTimeout,
|
||||
BacklogInterval: relayBacklogInterval,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user