Choosing Between .NET Background Services and Durable Workflows
Compare .NET Background Services and durable workflows, including state persistence, retries, recovery, and when each approach suits production business processes.
Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
Compare .NET Background Services and durable workflows, including state persistence, retries, recovery, and when each approach suits production business processes.

Build a persistent .NET workflow with EF Core and BackgroundService that saves step status, resumes unfinished work after restarts, and avoids duplicate operations.

When I first started working with microservices, I made the same mistake most people make. I split the application into small services, and then I made them call each other over HTTP all day long. It looked clean on the architecture diagram. In reality, it was a chain of services waiting on each oth

Middleware is the most important concept in .Net Core life cycle

Learn to collect and analyze .NET process dumps with dotnet-dump and SOS to investigate memory growth, retained objects, thread state, and production failures.

Our system combines vector similarity, keyword matching, and knowledge graph relationships to provide contextually accurate answers while maintaining conversational memory across multiple interactions.

Learn how to choose HTTP verbs in ASP.NET Core Web APIs based on resource semantics, including when to use GET, POST, PUT, PATCH, and DELETE for real business operations.

Learn the difference between authentication and authorization with simple examples, ASP.NET Core code, JWT, roles, permissions, and 401 vs 403 status codes.

Learn what middleware is, how it works in the ASP.NET Core request and response pipeline, and how to use middleware for authentication, authorization, logging, error handling, CORS, rate limiting, and more.

Learn how to diagnose and fix Thread Pool starvation in ASP.NET Core APIs using async/await, dotnet-counters, dotnet-trace, and runtime profiling.

Learn how to build ASP.NET Core Web API CRUD operations for a Students entity using C#, including GET, POST, PUT, DELETE, validation, and SQL Server integration.

Learn EF Core inheritance mapping with practical TPH and TPT examples, including configuration, database structure, queries, performance considerations, advantages, and use cases.

Learn how to build an ASP.NET Core Web API with Dapper and SQL Server Stored Procedures using a layered CRUD architecture with Repository, Service, and Dependency Injection.

Benchmark NativeAOT vs JIT in .NET 10 to understand the real impact on cold start, CPU usage, memory consumption, Kubernetes pod density, binary size, and data-layer performance.

Learn how to diagnose and fix a .NET BackgroundService that is running but falling behind. Explore queue depth, concurrency limits, timeouts, retries, circuit breakers, idempotency, DLQs, and observability.

Secure .NET microservices with Refit & Polly circuit breakers. Prevent cascading failures and ensure resilience against HTTP dependency issues.

ASP.NET Core Middleware is key for enterprise apps, handling security, tracing, rate limiting, and fault tolerance at scale.

Explore .NET 11's native JSON Lines support for efficient record-oriented data processing. Benchmark performance, memory, and streaming for large datasets.

Learn how compatibility layers can preserve .NET Remoting and AppDomain APIs while migrating .NET Framework applications to .NET 8 and .NET 10.

Compare .NET JSON serializers: System.Text.Json, Source Generation, and Newtonsoft.Json. Benchmark for optimal performance.

Master ASP.NET Core API versioning. Learn strategies like URL path, query string, and header versioning to build backward-compatible APIs and ensure smooth client upgrades.

Leverage GitHub Copilot Modernization Agent to streamline .NET legacy app upgrades, automating tasks and identifying issues for efficient modernization.

Implement passkeys in ASP.NET Core Identity without breaking existing authentication. Enable passwordless login gradually.

Build resilient ASP.NET Core apps with Polly. Implement retry, circuit breaker, timeout, and fallback for reliable external service communication.

Modernize legacy apps with .NET 6 microservices, React, EF Core, and ActiveMQ for independent evolution, scalability, and operational control.

This article breaks down the ASP.NET Core request lifecycle step by step with a real-world airport analogy, making complex concepts easy to understand and remember.

Master .NET 10 observability with OpenTelemetry, Prometheus, and Grafana for deep insights into distributed systems.

Secure enterprise LangGraph RAG with dual-layer rate limiting (IP & API Key) in FastAPI, preventing abuse and controlling costs.

Enhance ASP.NET Core Web API security with JWT refresh tokens. Learn to implement long-lived refresh tokens for seamless user authentication and improved UX.

Optimize .NET microservice email notifications with Factory Pattern & XSLT for 30+ types, ensuring scalability and maintainability.
Everything on .NET Core, not only its articles: the .NET Core page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article