Kumaran-NK/adaptive-rate-limiter ? reverse-engineered prompt
Reverse engineered prompt
Build me a Spring Boot app in Java that acts like a smart rate limiter for an API and can keep working even when things get shaky.
I want it to start in a healthy mode using Redis for shared rate limiting, then automatically switch to a more defensive local fallback when Redis or the system starts struggling, and slowly recover back to normal when things improve. Please make it expose a simple test endpoint I can hit from the browser or curl, and add basic monitoring so I can see the limiter state and how often it is switching modes.
It should be easy to run locally with Redis and also come with Docker support for the app and Redis together. If you need current docs for Spring or the monitoring pieces, look them up online. Keep the project runnable, simple to test, and make sure the different states feel realistic for a production style self healing limiter.
Are you gonna build this?
make sure you review the code using coderabbit