platformplatform / PlatformPlatform

🚀 Pre-alpha state. A platform designed for building enterprise-grade, multi-tenant products using Azure, .NET, React, TypeScript, Infrastructure as Code, etc.
https://platformplatform.github.io
MIT License
217 stars 21 forks source link

Enable background workers to scale to zero #500

Closed tjementum closed 1 month ago

tjementum commented 1 month ago

Summary & Motivation

Allow background workers to scale to 0 by changing Microsoft.NET.Sdk.Worker to Microsoft.NET.Sdk.Web and Host.CreateApplicationBuilder to WebApplication.CreateBuilder. This hack enables workers to expose a minimal API, allowing Azure Container Apps to monitor ingress and scale the Container Apps to zero. The Bicep infrastructure has been updated to enable internal ingress.

Checklist

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud