Explore the newsletters

129 blogs found
EF Core in Clean Architecture the Pragmatic Way

EF Core in Clean Architecture the Pragmatic Way

A focused guide to using EF Core in Clean Architecture without repositories. Learn why the Dependency Rule still holds when your Application layer uses DbContext directly, how to keep your handlers small, how to reuse queries, and how to test without mocking. And when a Repository actually makes sense.

40 Lessons I Learned in 12 Years as a .NET Developer

40 Lessons I Learned in 12 Years as a .NET Developer

After 12 years of building .NET applications, I have learned 40 hard-earned lessons about writing code, designing systems, and shipping software. From clean code and architecture trade-offs to code reviews, technical debt, CI/CD, and team practices, this post shares the most important takeaways every .NET developer, technical lead, and software architect should know.

Building File-Based Apps in .NET: A Complete Guide With Multi-File Support

Building File-Based Apps in .NET: A Complete Guide With Multi-File Support

Learn how to build file-based apps in .NET 10 and .NET 11 Preview 3. This guide covers single-file C# scripts, multi-file apps with the #:include directive, including SDK, including project files and building a CLI health-check tool, creating Minimal APIs with EF Core and SQLite, and converting scripts to full projects.

Getting Started With Dapr for Building Cloud-Native Microservices in .NET

Getting Started With Dapr for Building Cloud-Native Microservices in .NET

Learn what Dapr is, how the sidecar architecture works, understand building blocks and components, and set up Dapr with .NET Aspire for your .NET microservices. Code examples in .NET to publish events with Dapr to a message queue (RabbitMQ, Kafka), how to consume events from a message queue with Dapr, how to send HTTP requests to REST services with Dapr (service invocation) and state management.

How to Build Production-Ready Projects With Claude Code

How to Build Production-Ready Projects With Claude Code

Learn a proven 10-step workflow for building production-ready software with AI assistance. Includes detailed prompts for requirements analysis, architecture design, finding functional and non-functional requirements, backend and frontend implementation, code review, and deployment automation.

The Real Cost of Returning the Identity Value in EF Core

The Real Cost of Returning the Identity Value in EF Core

Learn why EF Core SaveChanges becomes slow when inserting thousands of rows when returning identity values and how BulkInsert and BulkInsertOptimized from Entity Framework Extensions deliver up to 23x faster performance in SQL Server.

How to Add JWT Authentication to SignalR Hubs in ASP.NET Core

How to Add JWT Authentication to SignalR Hubs in ASP.NET Core

Learn how to secure SignalR hubs with JWT Bearer authentication, role-based and claim-based authorization in ASP.NET Core. Pass JWT tokens via query string for SignalR hub. Build a real-time stock price streaming hub with per-user subscriptions using IAsyncEnumerable, connect from JavaScript and .NET clients with accessTokenFactory, and apply security best practices including CORS, access token logging, token expiration handling, and message size limits.

Getting Started With Event Sourcing in .NET With Marten and PostgreSQL

Getting Started With Event Sourcing in .NET With Marten and PostgreSQL

Learn how to implement Event Sourcing in .NET with Marten library and PostgreSQL. Building a Shopping Cart application with events, streams, aggregates, commands, and projections step by step. Create inline and async projections to build event sourcing read models with Marten.

Improve Your .NET and Architecture Skills

Join my community of 25,000+ developers and architects.

Each week you will get 1 practical tip with best practices and real-world examples.

Learn how to craft better software with source code available for my newsletter.

Join 25,000+ developers already reading
No spam. Unsubscribe any time.