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

Revert and optimize database migration and email handling processes #484

Closed tjementum closed 1 month ago

tjementum commented 1 month ago

Summary & Motivation

Revert "Simplify retry logic for handling when SQL Server is still starting on localhost". In a previous pull request, a different DB context execution strategy was introduced to simplify code that handles errors during database migrations locally while SQL Server was still starting. This change caused migrations to fail in Azure.

Revert "Stop background workers after they have run database migrations". In an earlier pull request, background workers running database migrations were made to stop in hopes of allowing Azure container apps to scale to 0. However, this caused the servers to crash and continuously restart.

Change mail sending in Azure to return when mail is initiated instead of waiting for delivery. Previously, sending mail using Azure Communication Services had WaitUntil.Completed, causing up to a 10-second delay in the UI during sign-up. This is now changed to WaitUntil.Started for faster response.

Checklist

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
2 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