.NET
-
Understanding PeriodicTimer in .NET: The Modern Way to Schedule Background Work

PeriodicTimer (introduced in .NET 6) is a lightweight, async‑first timer primitive that fits naturally into modern async/await code and Hosted Services. Unlike the callback‑driven System.Threading.Timer, PeriodicTimer integrates cleanly with CancellationToken, avoids fire‑and‑forget pitfalls, and eliminates accidental overlapping execution.If you’re building a background worker, scheduled job, or recurring task inside an IHostedService or BackgroundService, PeriodicTimer is Continue reading
-
ASP.NET Core HybridCache library

Almost all real-world applications need to implement a caching mechanism. Caching can drastically improve application performance, scalability, and user experience while optimizing resource use and reducing costs. .NET supports both in-memory and distributed cache implementation and is easily configured via middleware. Additionally, the application code interacts with the IDistributedCache interface and remains completely abstracted away Continue reading
