Implement Redis to decrease the number of HTTP requests sent to the NYC Open Data API.
When users view homicides for a selected year, the server should look for those records in the Redis cache first. If the records aren't cached, the server should query the Web app's database.
If the DB doesn't have those records, only then should the server send a GET request to the external API.
Implement Redis to decrease the number of HTTP requests sent to the NYC Open Data API.
When users view homicides for a selected year, the server should look for those records in the Redis cache first. If the records aren't cached, the server should query the Web app's database.
If the DB doesn't have those records, only then should the server send a GET request to the external API.