Polly provides resilience patterns for .NET – retry, circuit breaker, timeout, fallback. Essential for microservices. Installation Retry Policy Circuit Breaker With HttpClientFactory References Polly GitHub
Read more โTag: .NET
Switch Expressions in C# 8.0: Pattern Matching
C# 8.0’s switch expressions are more concise than traditional switch statements. They use pattern matching and return values directly. Traditional vs Expression Pattern Matching Tuple Patterns References Switch Expression
Read more โIgnite 2019: .NET Core 3.1 and the Road to .NET 5
At Ignite 2019, Microsoft clarified the .NET roadmap. Here’s what’s coming and why .NET 5 is a big deal. .NET Core 3.1 LTS .NET Core 3.1 will be an LTS release (December 2019). This means three years of support – perfect for production workloads. Key improvements: Blazor component improvements C# 8.0 refinements Performance enhancements Bug […]
Read more โClean Architecture in .NET: Practical Implementation
Clean Architecture keeps your business logic independent of frameworks and databases. Here’s how I implement it in .NET projects. The Layers Domain: Entities, value objects, domain events Application: Use cases, interfaces, DTOs Infrastructure: Database, external services WebAPI: Controllers, middleware Project Structure Dependency Rule Dependencies point inward. Domain has no dependencies. Application depends on Domain. Infrastructure […]
Read more โgRPC in .NET Core 3.0: High-Performance RPC
gRPC is now a first-class citizen in .NET Core 3.0. It’s faster than REST for internal service communication. Here’s how to get started. Define the Service Implement the Service Client When to Use gRPC Service-to-service communication Streaming scenarios Performance-critical paths References gRPC in ASP.NET Core
Read more โC# 8.0 Features: Nullable Reference Types Explained
Nullable reference types are the biggest C# 8.0 feature. They help eliminate null reference exceptions at compile time. Here’s how they work. Enabling Nullable The New Syntax Null Forgiving Operator Benefits Compiler warnings for potential null dereferences Documentation of intent in method signatures Catches bugs before runtime References Nullable Reference Types
Read more โ