Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# ApiRateLimiter_Core_Java
Thread safe implementaion of ratelimter using core java and singleton design pattern

Atlassian 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)