News for hackers. Stuff that matters.
Re:Sisk – Lightweight .NET Web Framework by noworriesnate on Saturday August 31, 2024 @05:56PM (#41412330)
Yeah we have a similar product, where we spin up multiple web servers. Code looks something like this:

        var builder = WebApplication.CreateBuilder([]);

        builder.WebHost.UseUrls($"http://127.0.0.1:0");

        builder.Services.AddSingleton(...);

        var app = builder.Build();

        app.Map...

        await app.StartAsync(cancellationToken);

We run multiple of these at a time and have no problems.

There are no comments on this comment yet.