Dependency Injection in ASP.NET Core: Lifetimes and Best Practices
Master dependency injection in ASP.NET Core: transient, scoped, and singleton lifetimes, captive dependencies, the options pattern, and keyed…
Category
Backend development is the server-side work behind an application: APIs, business logic, databases, queues and background jobs. Backend engineers pick languages such as Java, Python, Node.js or C#, decide how data is stored and how services talk to each other, and keep it all fast and correct under load. Most of the hard calls are trade-offs, such as SQL against NoSQL or a monolith against microservices.
186 articles
Master dependency injection in ASP.NET Core: transient, scoped, and singleton lifetimes, captive dependencies, the options pattern, and keyed…
Build an ASP.NET Core Web API end to end: controllers, attribute routing, model binding and validation, DTOs, status…
Understand ASP.NET Core middleware: pipeline order, Use, Run, and Map, writing custom middleware classes, endpoint routing, and how…
Enable nullable reference types in C#: nullability annotations, the ! operator, required members, nullability attributes, and a legacy…
Use async and await in C# correctly: what Task really is, ValueTask, ConfigureAwait, async void, cancellation tokens, and…
Write idiomatic LINQ in C#: query vs method syntax, deferred execution, IEnumerable vs IQueryable, multiple enumeration traps, and…
Master object-oriented C#: classes, properties, constructors, inheritance, abstract classes, interfaces, records, and when composition beats inheritance.
Learn C# basics for backend work: value vs reference types, var, string interpolation, if and switch expressions, loops,…
Confused by .NET LTS vs STS? See the release calendar, support windows, and a decision framework for picking…
Learn how to install .NET SDK on Windows, macOS, or Linux, verify it with dotnet --info, then build…
Executive Summary: Most Spring Boot testing is plain JUnit 5 and Mockito: build the service directly and mock…
Executive Summary: Spring Security basics rest on two questions: authentication checks who is calling, and authorization decides what…
Executive Summary: Bean Validation lets you put constraints like @NotNull, @Size, and @Email on fields and check them…
Executive Summary: Java’s built-in HttpClient handles HTTP calls, and Jackson’s ObjectMapper turns JSON into records and back. I…