IsaacCheng9 / travel-buddy

A web application for planning your journeys with a travel companion to analyse routes based on fuel costs and environmental impact. Developed with Flask.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement rate limiting for API calls

IsaacCheng9 opened this issue · comments

Problem Statement

  • Rate limiting would be useful for database calls, and especially API calls.
    • Google Maps API records the usage and charges once a certain limit is hit.
    • Database calls are computationally expensive, and mass requests will quickly cause a slowdown, especially before eventual migration from SQLite to PostgreSQL.