Home Cache api response to JSON file
Reply: 0

Cache api response to JSON file

user678 Published in May 21, 2018, 4:50 pm

I'm new to nodejs and I would like to store my api responses to a server side json. I'm running express (with npm 'request' and 'memory-cache'). In my situation, I have about 300 unique items and I need to make 300 api request (each item)

  • there is no multi/group query so requests have to be individual
  • the api has a rate limit of 40 requests per 10 seconds, so there will be some waiting periods to get the full response
  • each particular item's response has a common set of fields I want to append to a json file for item lookup so the same api call wont be needed again

Looking for advice, suggestions, snippets

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.318261 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO