You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add client-side protections to prevent excessive or duplicate search requests from overloading the RERUM API.
This issue focuses on performance, safety, and responsible API usage.
Tasks
Implement query-based caching for search results
Define cache expiration (15–30 minutes)
Reuse cached results for repeated searches
Implement rate limiting:
Max 1 search per second
Max 5 searches per minute per user
Disable search temporarily when limits are exceeded
Display a user-friendly message when blocked
Deliverables
Cache implementation (in-memory or localStorage)
Rate limiting logic
Clear documentation/comments explaining limits
Acceptance Criteria
Repeated searches return cached results without new API calls
Excessive searches are blocked according to defined limits
Search cannot auto-fire on page load
No infinite or rapid API request loops occur
PR submitted to dev_devayani with reviewer assigned
Description
Add client-side protections to prevent excessive or duplicate search requests from overloading the RERUM API.
This issue focuses on performance, safety, and responsible API usage.
Tasks
Implement query-based caching for search results
Define cache expiration (15–30 minutes)
Reuse cached results for repeated searches
Implement rate limiting:
Max 1 search per second
Max 5 searches per minute per user
Disable search temporarily when limits are exceeded
Display a user-friendly message when blocked
Deliverables
Cache implementation (in-memory or localStorage)
Rate limiting logic
Clear documentation/comments explaining limits
Acceptance Criteria
Repeated searches return cached results without new API calls
Excessive searches are blocked according to defined limits
Search cannot auto-fire on page load
No infinite or rapid API request loops occur
PR submitted to dev_devayani with reviewer assigned
Parent Issue
#84