Skip to content

Conversation

@shalarewicz
Copy link
Collaborator

@shalarewicz shalarewicz commented May 21, 2022

Summary

Establishes an initial framework for an Express Rate Limiting middleware generator. Users can specify the type of rate limiting algorithm and provide custom type weights for their schema through a TypeWeightConfig object.

To cache rate limiting information for each user, redis client connection information must be provided. Otherwise a redis client will be created at localhost:6379

Type of Change

  • New feature (non-breaking change which adds functionality)

Issues

Evidence

-N/A this is just a specification. The middleware function has not been implemented.

@shalarewicz shalarewicz marked this pull request as ready for review May 21, 2022 20:13
Copy link
Collaborator

@jondeweydev jondeweydev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great comments, you're setting an example for my future pseudocode.

@shalarewicz shalarewicz merged commit 3384164 into dev May 23, 2022
@shalarewicz shalarewicz deleted the sh/middleware-framework branch May 23, 2022 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Framework for Rate limiting middleware

5 participants