Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shubhamharitash/apiratelimiter_core_java
Thread safe implementaion of ratelimter using core java and singleton design pattern
https://github.com/shubhamharitash/apiratelimiter_core_java
adobe adobe-lld api-rate api-rate-limit api-rate-limiter api-rate-limits atlassian atlassian-code-design atlassian-interview-question atlassian-lld mts mts-2 rate-limit rate-limiter rate-limiting rate-limits
Last synced: 10 days ago
JSON representation
Thread safe implementaion of ratelimter using core java and singleton design pattern
- Host: GitHub
- URL: https://github.com/shubhamharitash/apiratelimiter_core_java
- Owner: shubhamharitash
- Created: 2023-11-20T05:59:42.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-12T06:56:16.000Z (about 1 year ago)
- Last Synced: 2024-11-15T13:09:29.071Z (2 months ago)
- Topics: adobe, adobe-lld, api-rate, api-rate-limit, api-rate-limiter, api-rate-limits, atlassian, atlassian-code-design, atlassian-interview-question, atlassian-lld, mts, mts-2, rate-limit, rate-limiter, rate-limiting, rate-limits
- Language: Java
- Homepage: https://youtu.be/5GNvyh0Ewm8
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ApiRateLimiter_Core_Java
Thread safe implementaion of ratelimter using core java and singleton design patternAtlassian Problem Statement:
Problem Title: Rate Limiter
Problem Description:
Imagine we are building an application that is used by many different customers. We want to avoid one customer being able to overload the system by sending too many requests, so we enforce a per-customer rate limit. The rate limit is defined as:
“Each customer can make X requests per Y seconds”// Perform rate limiting logic for provided customer ID. Return true if the
// request is allowed, and false if it is not.![image](https://github.com/shubhamharitash/ApiRateLimiter_Core_Java/assets/47567303/32ac326f-db42-48da-b125-d7e2f1271b08)