LACMTA / metro-api-v2

Docs: https://lacmta.github.io/metro-api-v2/ Dev: https://dev-metro-api-v2.ofhq3vd1r7une.us-west-2.cs.amazonlightsail.com/docs
https://lacmta.github.io/metro-api-v2/
0 stars 3 forks source link

Refactor websocket endpoint and add Redis caching for vehicle positions #458

Closed albertkun closed 8 months ago

albertkun commented 8 months ago

This pull request refactors the websocket endpoint handling code and adds Redis caching for vehicle positions. It improves performance by retrieving data from the Redis cache if available, and queries the database only if the data is not in the cache. The data is then stored in the cache for future use.