Implementing Rate Limiting in .NET with Redis Easily

Rate Limting

In this post, we explore how to implement rate limiting and throttling in .NET APIs using Redis. We’ll look at native support in .NET 7+, and then go beyond with Redis to build distributed, production-ready solutions. You’ll see how to implement fixed window, sliding window with sorted sets, and token bucket using Lua — all fully integrated into your ASP.NET Core app with minimal effort. By the end, you’ll have everything you need to protect your APIs, handle bursts, and keep your backend stable and fair.

How to mock your API’s easily with Json-Server

Front-end developers often encounter situations where APIs are either unavailable or incomplete during the development phase. Mocking API server responses becomes a crucial technique in such scenarios, allowing developers to make progress without being blocked by API availability.

Discover how Json-Server, a user-friendly tool, simplifies the process of creating a mock API server. With minimal setup, you can simulate full-featured APIs for testing and development. This guide covers everything from installation to custom routing, offering an efficient way to streamline your frontend development workflow.