Skip to content

Redis caching for weather endpoints#49

Merged
marinocj merged 3 commits into
mainfrom
ben-redis-caching
Apr 3, 2026
Merged

Redis caching for weather endpoints#49
marinocj merged 3 commits into
mainfrom
ben-redis-caching

Conversation

@hashmapenjoyer
Copy link
Copy Markdown
Collaborator

@hashmapenjoyer hashmapenjoyer commented Mar 23, 2026

Added a router/controller for the weather (/almanac) endpoint. I have no idea what APIs the service will use, so I just put placeholder strings for us to replace later.

Added Redis caching for the service once the service itself gets implemented.

Added tests for the controller and templates for when we finish the service.

Also incorporated into Docker

Acceptance Criteria Checklist (from #12)

(lowkey not sure what the comment meant so I freeballed it)

  • Implemented caching w/Redis
  • Implemented cache connection
  • Defined cache key strategy (weather:{zip}, historical:{zip})
  • Defined TTL per dataset (10 mins current weather, 60 min historical)
  • Implemented cache fallback if unavailable (logs on connection failure)
  • Cache hit/miss logging implemented (cache.service.js)
  • Unit tests for the actually implemented bits

@hashmapenjoyer hashmapenjoyer linked an issue Mar 23, 2026 that may be closed by this pull request
@hashmapenjoyer hashmapenjoyer marked this pull request as ready for review March 23, 2026 19:27
@marinocj marinocj merged commit 2a0e3a3 into main Apr 3, 2026
3 checks passed
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.

Backend Caching Optimization

2 participants