feat(events): add idempotent Kafka event consumer runtime

This commit is contained in:
shira committed 2026-10-06 03:59:57 +03:00
1 parent 565ef8d4f5
commit 3adb0ef9e4
47 files changed
+5018 -105

No files matched your search

+3 -2
View File
@@ -12,6 +12,7 @@ import (
"lincodex/backend/internal/adapter/secondary/prometheus"
"lincodex/backend/internal/port/outbound"
"lincodex/backend/internal/worker/outboxrelay"
"lincodex/backend/internal/worker/retry"
)
const relayLifecycleTimeout = 5 * time.Second
@@ -67,7 +68,7 @@ func TestApplicationRunsTheRelayWhileServing(t *testing.T) {
relay := outboxrelay.New(store, readyPublisher{}, metrics, logger, outboxrelay.Settings{
BatchSize: 1,
PollInterval: time.Millisecond,
Backoff: outboxrelay.Backoff{Initial: time.Millisecond, Max: time.Millisecond},
Backoff: retry.Backoff{Initial: time.Millisecond, Max: time.Millisecond},
ShutdownTimeout: time.Second,
BacklogInterval: time.Second,
})
@@ -75,7 +76,7 @@ func TestApplicationRunsTheRelayWhileServing(t *testing.T) {
HTTPAddr: "127.0.0.1:0",
MetricsAddr: "127.0.0.1:0",
ShutdownTimeout: time.Second,
}, http.NotFoundHandler(), metrics, logger, nil, relay)
}, http.NotFoundHandler(), metrics, logger, nil, relay, nil)
ctx, cancel := context.WithCancel(t.Context())
defer cancel()