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:
@@ -49,7 +49,13 @@ try
|
||||
builder.Services.AddFluentValidationAutoValidation();
|
||||
builder.Services.AddValidatorsFromAssemblyContaining<Program>();
|
||||
|
||||
builder.Services.AddHttpClient("central");
|
||||
builder.Services.AddHttpClient("central", (sp, client) =>
|
||||
{
|
||||
var baseUrl = sp.GetRequiredService<Microsoft.Extensions.Options.IOptions<CentralApiOptions>>()
|
||||
.Value.BaseUrl.TrimEnd('/') + "/";
|
||||
client.BaseAddress = new Uri(baseUrl);
|
||||
client.Timeout = TimeSpan.FromSeconds(30);
|
||||
});
|
||||
|
||||
builder.Services.AddSingleton<CentralReachabilityService>();
|
||||
builder.Services.AddHostedService(sp => sp.GetRequiredService<CentralReachabilityService>());
|
||||
|
||||
Reference in New Issue
Block a user