hoangsonww/EstateWise-Chapel-Hill-Chatbot

Isochrone Provider Integration & Redis Caching

Aperta

#59 aperta il 13 ago 2025

 (4 commenti) (0 reazioni) (2 assegnatari)TypeScript (21 fork)auto 404
backendbugchoreci/cddocumentationenhancementfrontendgood first issuehelp wanted

Metriche repository

Star
 (38 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Summary Generate travel-time polygons via a pluggable provider (Mapbox, OpenRouteService, Google) and cache by normalized request hash to meet latency goals.

Acceptance Criteria

  • POST /api/commute/isochrone returns GeoJSON polygon(s) for { destinations[], mode, window, minutes }.
  • Requests normalized and hashed; cached results returned when available.
  • P95 cached response ≤ 5s; cold path ≤ 10s on happy path.
  • Rate limiting and retry/backoff with exponential jitter.

Tasks

  • Provider abstraction + config flags
  • Request normalization + hashing
  • Redis get/set with TTL; metrics on hit ratio
  • Error mapping to user-friendly messages
  • Unit tests: hashing, caching, retries

Guida contributor