.netcore 实现灵活性限流——AspNetCoreRatemit

PS1:公司开发了api服务接口,老板说给A类用户每分钟只能使用10次,针对B用户不作限制。

.netcore中如何实现呢,在此献上一种方案,使用开源的限流组件AspNetCoreRatemit可分分钟实现老板想要的;

github地址:https://github.com/stefanprodan/AspNetCoreRateLimit

限流方案还是挺多挺灵活的,需要的朋友可小试。

原文地址:https://www.cnblogs.com/quluqi/p/AspNetCoreRatemit.html