All Projects → EasyAbp → Abp.AspNetCoreRateLimit

EasyAbp / Abp.AspNetCoreRateLimit

Licence: MIT license
An Abp module helps you control how often your service is used.

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to Abp.AspNetCoreRateLimit

abp-vnext-pro
Abp Vnext 的 Vue3 实现版本
Stars: ✭ 352 (+1752.63%)
Mutual labels:  abp, abp-vnext
go-ratelimit
Ratelimit your methods using Redis
Stars: ✭ 37 (+94.74%)
Mutual labels:  rate-limits, rate-limiting
gatekeeper
Rate limiting middleware for Vapor 👮
Stars: ✭ 54 (+184.21%)
Mutual labels:  rate-limits, rate-limiting
adaptive throttler
manages multiple throttlers with ability to ramp up and down
Stars: ✭ 31 (+63.16%)
Mutual labels:  rate-limits, rate-limiting
abp-vue
abp account、 identity、tenant 模块前端部分的vue实现
Stars: ✭ 48 (+152.63%)
Mutual labels:  abp, abp-vnext
Furion
Make .NET development easier, more versatile, and more popular.
Stars: ✭ 902 (+4647.37%)
Mutual labels:  dotnetcore, abp
limits
Rate limiting using various strategies and storage backends such as redis & memcached
Stars: ✭ 178 (+836.84%)
Mutual labels:  rate-limiting
ZooKeeper-Admin
ZooKeeper 管理工具
Stars: ✭ 45 (+136.84%)
Mutual labels:  dotnetcore
koa-simple-ratelimit
Simple rate limiter for Koa.js v2 web framework
Stars: ✭ 17 (-10.53%)
Mutual labels:  rate-limits
XRPC
dotnet high performance remote interface and delegate invoke(RPC) communication components,support millions RPS remote interface method invokes
Stars: ✭ 77 (+305.26%)
Mutual labels:  dotnetcore
Spring-Boot-Application-Template
Spring Boot Web App, Flyway, MySQL, H2DB, Bootstrap, Thymeleaf, JWT, Swagger, API Rate Limiting, Docker, RBAC, i18n
Stars: ✭ 90 (+373.68%)
Mutual labels:  rate-limiting
BlazorAuthenticationSample
A sample showing some of the ASP.NET Core Blazor authentication features (also some testing...) 🚀
Stars: ✭ 78 (+310.53%)
Mutual labels:  dotnetcore
Awesome-Nuget-Packages
📦 A collection of awesome and top .NET packages sorted by most popular needs.
Stars: ✭ 87 (+357.89%)
Mutual labels:  dotnetcore
AliDDNSNet
使用 C# + .NET Core 开发的开源 DDNS 工具,基于阿里云的 DNS API 接口。
Stars: ✭ 88 (+363.16%)
Mutual labels:  dotnetcore
Beef
Business Entity Execution Framework
Stars: ✭ 95 (+400%)
Mutual labels:  dotnetcore
LambdaSharpTool
Serverless .NET on AWS - λ# is a CLI and Framework for Rapid Application Development using .NET on AWS
Stars: ✭ 99 (+421.05%)
Mutual labels:  dotnetcore
active-directory-dotnetcore-devicecodeflow-v2
.NET Core console application letting a user acquire a token for the Microsoft Graph by signing in through another device having a Web browser, with the Azure AD v2.0 endpoint
Stars: ✭ 37 (+94.74%)
Mutual labels:  dotnetcore
elgamalext
Extension for the .NET Framework cryptography subsystem, which introduces the ElGamal public key cryptosystem with support for homomorphic multiplication.
Stars: ✭ 14 (-26.32%)
Mutual labels:  dotnetcore
RateLimiting.NET
Rate Limiting (debounce, throttle) for C# Portable Class Library
Stars: ✭ 20 (+5.26%)
Mutual labels:  rate-limiting
L2ACP-Web
The website for L2ACP
Stars: ✭ 42 (+121.05%)
Mutual labels:  dotnetcore

Abp.AspNetCoreRateLimit

ABP version NuGet NuGet Download Discord online GitHub stars

An Abp module helps you control how often your service is used.

Installation

  1. Install the following NuGet packages. (see how)

    • EasyAbp.Abp.AspNetCoreRateLimit.AspNetCoreRateLimit
    • EasyAbp.Abp.AspNetCoreRateLimit.AspNetCoreRateLimit.Client
    • EasyAbp.Abp.AspNetCoreRateLimit.AspNetCoreRateLimit.Ip
  2. Add DependsOn(typeof(AbpClientLimiterModule)) and DependsOn(typeof(AbpIpLimiterModule)) attribute to configure the module dependencies. (see how)

  3. Extends IHostBuilder with Limiter configuration methods.

    IHostBuilder.UseAspNetCoreRateLimitIp();
    IHostBuilder.UseAspNetCoreRateLimitClient();
  4. Register the middleware below within the OnApplicationInitialization() method of AppModule.cs "before" the UseRouting() middleware:

    app.UseIpRateLimiting();
    app.UseClientRateLimiting();
  5. Add the following code at ConfigureServices() method

    context.Services.AddLimiterService<MemoryCacheRateLimitCounterStore>(service =>
    {
        service.AddLimiterIpService<MemoryCacheIpPolicyStore>();
        service.AddLimiterClientService<MemoryCacheClientPolicyStore>();
    });

Documentation

Rate limiting based on client IP

Rate limiting based on client ID

Advanced configuration

Roadmap

  • Unit test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].