feat(broker): RabbitMQ + MassTransit job broker pour l'analyse inter-sites
feat(broker): add RabbitMQ + MassTransit job broker for cross-site analysis Mutualise les ressources IA/GPU entre sites via un broker de jobs durable. RabbitMQ + MassTransit avec connexion AMQP sortante (pas de port entrant). - Heimdall.Contracts: contrats de messages partagés - RabbitMQ: conteneur docker + credentials via env vars - MassTransit Central: publication de jobs d'analyse - MassTransit Agent: consommateur avec backpressure GPU Fixes #72
This commit is contained in:
1 parent
b97d3bec11
commit
bf2ccad537
14 files changed
+437
No files matched your search
@@ -15,7 +15,9 @@ using Heimdall.Web.Components;
|
||||
using Heimdall.Api.Hubs;
|
||||
using Heimdall.Api;
|
||||
using Heimdall.Web.Services;
|
||||
using Heimdall.Web;
|
||||
using Hangfire;
|
||||
using MassTransit;
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
using Microsoft.AspNetCore.Authentication.Cookies;
|
||||
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
@@ -426,6 +428,7 @@ public partial class Program
|
||||
ConfigureAuthScheme(builder);
|
||||
ConfigureBackgroundJobs(builder);
|
||||
ConfigureHttpClients(builder);
|
||||
ConfigureMassTransit(builder);
|
||||
|
||||
builder.Services.AddScoped<AuthState>();
|
||||
}
|
||||
@@ -532,6 +535,15 @@ public partial class Program
|
||||
builder.Services.AddBackgroundJobs(builder.Configuration);
|
||||
}
|
||||
|
||||
private static void ConfigureMassTransit(WebApplicationBuilder builder)
|
||||
{
|
||||
var isTesting = builder.Environment.IsEnvironment(TestingEnvironment);
|
||||
if (!isTesting)
|
||||
{
|
||||
builder.Services.AddHeimdallMassTransit(builder.Configuration);
|
||||
}
|
||||
}
|
||||
|
||||
private static void ConfigureHttpClients(WebApplicationBuilder builder)
|
||||
{
|
||||
builder.Services.AddHttpContextAccessor();
|
||||
|
||||
Reference in new issue
Block a user