ConduitSharp.RateLimit.RedisProtocol 2.0.0

dotnet add package ConduitSharp.RateLimit.RedisProtocol --version 2.0.0
                    
NuGet\Install-Package ConduitSharp.RateLimit.RedisProtocol -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ConduitSharp.RateLimit.RedisProtocol" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ConduitSharp.RateLimit.RedisProtocol" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="ConduitSharp.RateLimit.RedisProtocol" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ConduitSharp.RateLimit.RedisProtocol --version 2.0.0
                    
#r "nuget: ConduitSharp.RateLimit.RedisProtocol, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ConduitSharp.RateLimit.RedisProtocol@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ConduitSharp.RateLimit.RedisProtocol&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=ConduitSharp.RateLimit.RedisProtocol&version=2.0.0
                    
Install as a Cake Tool

ConduitSharp.RateLimit.RedisProtocol

A drop-in distributed rate-limit store for ConduitSharp over the Redis protocol (RESP). Works with Valkey, Redis 7, and any RESP-compatible server (KeyDB, Dragonfly, AWS ElastiCache/MemoryDB). All gateway instances share one fixed-window counter, so a client's quota holds across every replica instead of multiplying per instance.

It replaces the built-in in-process InMemoryRateLimitStore with no core changes: the gateway discovers an IRateLimitStore implementation dropped into its plugins root (last-registration-wins).

  • Shared across instances — one quota, however many replicas serve the route.
  • Fails open — if the store is unreachable, requests pass rather than being rejected, and the gateway starts even when the backend is briefly down.

Install

  1. Build the drop-in:

    dotnet publish plugins/ConduitSharp.RateLimit.RedisProtocol/src/ConduitSharp.RateLimit.RedisProtocol \
      -c Release -o out/redis-ratelimit
    
  2. Drop it into the gateway's plugins root (the top level, not a per-route subdirectory), or reference the ConduitSharp.RateLimit.RedisProtocol package and register it in DI when embedding the gateway.

  3. Configure the connection (appsettings.json or environment variables):

    {
      "Gateway": {
        "RateLimiting": {
          "Redis": {
            "ConnectionString": "redis:6379"
          }
        }
      }
    }
    

Options (Gateway:RateLimiting:Redis)

Setting Default Description
ConnectionString (required) RESP server, e.g. valkey:6379
KeyPrefix conduitsharp:ratelimit: Prefix for all counter keys
Database -1 Redis logical database (-1 = server default)

Routes keep their normal rate-limit plugin config (windowSeconds, maxRequests) — only the counter storage moves to the shared backend.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 231 8/14/2026
1.0.0 122 7/25/2026
1.0.0-rc.1 62 7/18/2026