CodeWritingCow / NYC-restaurant-inspection-records

Web application for searching New York City restaurant inspection records
http://www.nycfoodsafety.org
1 stars 3 forks source link

Improve server speed with Redis caching #43

Open CodeWritingCow opened 5 years ago

CodeWritingCow commented 5 years ago

When users search for a restaurant's records, the server should look for those records in the Redis cache first. If the records aren't there, only then would the server send a GET request to the external NYC Open Data API. This decreases the number of HTTP requests sent to the API.