Fix Kafka retry seek, bound buffers, and cut hot-path CPU/memory waste (Phases 41–44).
Stop consumers from committing past failed offsets, harden Rabbit/DataLake/gateway backpressure, dispose JsonDocument/MinIO correctly, and batch expensive DB/HTTP paths. Track progress in docs/performance.
This commit is contained in:
@@ -11,6 +11,13 @@ public sealed class DataLakeOptions
|
||||
// Production: 300 seconds (5 minutes). Tests: 10 seconds.
|
||||
public int FlushIntervalSeconds { get; init; } = 300;
|
||||
|
||||
/// <summary>
|
||||
/// Hard cap on in-memory buffered events across all partitions. When reached,
|
||||
/// consume seeks back and pauses until a flush frees space (prevents OOM when
|
||||
/// MinIO is down while Kafka keeps delivering).
|
||||
/// </summary>
|
||||
public int MaxBufferedEvents { get; init; } = 50_000;
|
||||
|
||||
// MinIO bucket. The discharge summary worker from Phase 6 uses the same bucket
|
||||
// under a different prefix — all VigilCare data stays in one bucket.
|
||||
public string BucketName { get; init; } = "vigilcare";
|
||||
|
||||
Reference in New Issue
Block a user