All Projects → kkoomen → nestjs-throttler-storage-redis

kkoomen / nestjs-throttler-storage-redis

Licence: MIT license
Redis storage provider for the nestjs-throttler package.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to nestjs-throttler-storage-redis

Notadd
A microservice development architecture based on nest.js. —— 基于 Nest.js 的微服务开发架构。
Stars: ✭ 2,556 (+4464.29%)
Mutual labels:  fastify, nestjs
nestjs-mercurius
NestJs module to use Mercurius as GraphQL server
Stars: ✭ 38 (-32.14%)
Mutual labels:  fastify, nestjs
nest-rest-mongo-boilerplate
🍱 backend with nest (typescript), mongoose, and authentication
Stars: ✭ 180 (+221.43%)
Mutual labels:  fastify, nestjs
Nine-chat-frontend
采用socketio打造的多人实时通讯多房间在线音乐聊天室
Stars: ✭ 54 (-3.57%)
Mutual labels:  socketio, nestjs
adaptive throttler
manages multiple throttlers with ability to ramp up and down
Stars: ✭ 31 (-44.64%)
Mutual labels:  rate-limit, throttler
azure-storage
Azure Storage module for Nest framework (node.js) ☁️
Stars: ✭ 71 (+26.79%)
Mutual labels:  storage, nestjs
tsrpc
A TypeScript RPC framework, with runtime type checking and serialization, support both HTTP and WebSocket. It is very suitable for website / APP / games, and absolutely comfortable to full-stack TypeScript developers.
Stars: ✭ 866 (+1446.43%)
Mutual labels:  rpc, nestjs
nodejs-integration-tests-best-practices
✅ Beyond the basics of Node.js testing. Including a super-comprehensive best practices list and an example app (April 2022)
Stars: ✭ 2,842 (+4975%)
Mutual labels:  fastify, nestjs
truthy
Open source headless CMS API written using NestJS, that has pre built modules like User Management, Role Management, Permission Management, Email Module, Account Settings, OTP, Throttling, RBAC support, Localization, and many more.
Stars: ✭ 200 (+257.14%)
Mutual labels:  nestjs
space-client
File Upload (encrypted), File Sharing, Filecoin Markets (TBD), and User Controlled Data. You can access same methods from the Space Daemon using our JS client, so you don't need to worry about gRPC calls.
Stars: ✭ 73 (+30.36%)
Mutual labels:  storage
Warehousing
🏗️ Mod for Factorio. Store all the things! (We heard you like boxes, you packrat you!)
Stars: ✭ 27 (-51.79%)
Mutual labels:  storage
starter-reactnative-nestjs-mysql
Starter mobile ReactNative NestJS MySQL with continuous integration and AWS deployment
Stars: ✭ 16 (-71.43%)
Mutual labels:  nestjs
navi
Navi is a distributed service framework that provides cluster management and high performance RPC
Stars: ✭ 92 (+64.29%)
Mutual labels:  rpc
nestjs-microservice-boilerplate
Boilerplate for a TCP Microservice in NestJS with TypeORM and tests
Stars: ✭ 45 (-19.64%)
Mutual labels:  nestjs
crypto-watchdog
Crypto Watchdog is an open-source developer friendly project, periodically queries crypto market and notifies potential pumps & recently added tokens/coins via web-hooks.
Stars: ✭ 22 (-60.71%)
Mutual labels:  nestjs
torrentfs
A p2p file system for cortex with pure Golang
Stars: ✭ 27 (-51.79%)
Mutual labels:  storage
h5pp
A C++17 interface for HDF5
Stars: ✭ 60 (+7.14%)
Mutual labels:  storage
hangar
This is a plugin for the Kerbal Space Program. It provides several modules and parts to store complete vessels that aren't needed to free CPU of their burden.
Stars: ✭ 16 (-71.43%)
Mutual labels:  storage
fastify-nodemailer
Fastify nodemailer plugin
Stars: ✭ 23 (-58.93%)
Mutual labels:  fastify
PSDiskPart
DiskPart PowerShell Module
Stars: ✭ 30 (-46.43%)
Mutual labels:  storage

NestJS Throttler Redis Storage

Tests status

Redis storage provider for the @nestjs/throttler package.

Installation

Yarn

  • yarn add nestjs-throttler-storage-redis ioredis

NPM

  • npm install --save nestjs-throttler-storage-redis ioredis

Usage

import { ThrottlerModule } from '@nestjs/throttler';
import { ThrottlerStorageRedisService } from 'nestjs-throttler-storage-redis';

@Module({
  imports: [
    ThrottlerModule.forRoot({
      ttl: 60,
      limit: 5,
      storage: new ThrottlerStorageRedisService(),
    }),
  ],
})
export class AppModule {}
import { ThrottlerModule } from '@nestjs/throttler';
import { ThrottlerStorageRedisService } from 'nestjs-throttler-storage-redis';

@Module({
  imports: [
    ThrottlerModule.forRootAsync({
      imports: [ConfigModule],
      inject: [ConfigService],
      useFactory: (config: ConfigService) => ({
        ttl: config.get('THROTTLE_TTL'),
        limit: config.get('THROTTLE_LIMIT'),
        storage: new ThrottlerStorageRedisService(),
      }),
    }),
  ],
})
export class AppModule {}

Issues

Bugs and features related to the redis implementation are welcome in this repository.

License

NestJS Throttler Redis Storage is licensed under the MIT license.

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].