hoangsonww/EstateWise-Chapel-Hill-Chatbot

Isochrone Provider Integration & Redis Caching

開放

#59 建立於 2025年8月13日

 (4 則留言) (0 個反應) (2 位負責人)TypeScript (21 個分叉)auto 404
backendbugchoreci/cddocumentationenhancementfrontendgood first issuehelp wanted

倉庫指標

星標
 (38 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南