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.
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.