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.
24 lines
1.1 KiB
C#
24 lines
1.1 KiB
C#
public sealed class DataLakeOptions
|
||
{
|
||
public const string Section = "DataLake";
|
||
|
||
// Maximum events buffered before a forced flush. At ~17 obs/sec steady state
|
||
// this fires approximately once per minute. Set low in tests (3–5) to avoid
|
||
// waiting for real traffic.
|
||
public int FlushCount { get; init; } = 1_000;
|
||
|
||
// Maximum age of the oldest buffered event before a time-based flush is forced.
|
||
// 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";
|
||
} |