Tag: VS Code

blog

How to Implement HybridCache in .NET using C# – A Better Caching Strategy

Introduction After covering essential caching concepts in my article about in-memory caching and exploring distributed solutions with Redis caching, it’s time to discover a powerful new approach that combines the best of both worlds: HybridCache. The .NET team has introduced HybridCache as an innovative solution that addresses common caching challenges. This new caching strategy intelligently combines in-memory caching’s speed […]

Ottorino Bruni 
blog

Using CancellationTokens in .NET Minimal APIs: Boost Performance and Responsiveness

Introduction: Why Responsiveness Matters in Modern .NET Applications In today’s world of modern software development, creating responsive and high-performing applications isn’t just a luxury it’s a necessity. Whether you’re building REST APIs, web applications, or microservices, chances are you’re working with asynchronous operations. These operations are often long-running and involve expensive tasks like database queries, external […]

Ottorino Bruni 
blog

Advanced JWT Authentication in ASP.NET Core Minimal API. Part 2: Refresh Tokens and Client-Side Integration

Introduction In my previous articles, we’ve covered quite a journey through JWT authentication in ASP.NET Core Minimal API. Part 1 introduced the basics using the dotnet user-jwts tool, providing a foundation for securing APIs during development. Part 2 took us deeper into manual token generation and validation, showing how to implement production-ready JWT authentication with full control over the process. However, […]

Ottorino Bruni 
blog

How to Implement Entity Framework Core Migrations in a .NET Console Application Using C# and VSCode

Introduction to Entity Framework Core Migrations In the previous articles, I discussed how to integrate SQLite with a .NET console application using C# and VSCode, and how to use Dapper for data access. You can find those articles at these links: SQLite with .NET Console Application, Using Dapper and Entity Framework Core in .NET Applications. […]

Ottorino Bruni