Dependency Injection in .NET: Service Lifetimes

Choosing the right lifetime for your services is critical for app correctness and memory usage. Transient Created every time it is requested. Lightweight, stateless services. Scoped Created once per HTTP request. Ideal for DB contexts, user session data. Don’t inject Scoped into Singleton! Singleton Created once per application lifetime. Examples: Caching services, configuration. MUST be […]

Read more โ†’

Azure Static Web Apps: Now Generally Available

Azure Static Web Apps (SWA) has hit GA. It’s the best way to host Blazor WASM, React, or Vue apps on Azure. Features Global Hosting: Content serves from edge locations. Integrated API: Deploy Azure Functions alongside your frontend in the same repo. Auth: Built-in auth for Azure AD, GitHub, etc. Staging Environments: Every Pull Request […]

Read more โ†’
Posted in UncategorizedTagged

Azure Cosmos DB Free Tier: Getting Started

Cosmos DB now offers a free tier forever: 1000 RU/s and 25GB storage. This makes it viable for side projects and dev/test. Enable it When creating a new account, simply toggle “Apply Free Tier Discount”. You can have one free tier account per subscription. Using the Emulator For local development, don’t forget the Cosmos DB […]

Read more โ†’
Posted in UncategorizedTagged