4 ms·
Not really! Lets say, user 1 makes an API call to our server to fetch browse node: 1000 (Books). The first time such request is made, our server will make an AP
by BrowseNodes 8y ago
Not really! Lets say, user 1 makes an API call to our server to fetch browse node: 1000 (Books). The first time such request is made, our server will make an API call to Amazon using user 1's AWS key. Once we get the response back, we will cache the result and send back the result to user 1. When user 2 makes the request for the same browse node 1000 (Books), we will not hit Amazon server again. Instead, we will get the cached data from our database and send it back to the user 2 without using his/her AWS key. This way the number of API calls made will be less than one per second for a user.
- chatmasta 8y agoThis assumes all your users are searching for the same browse node. I’m not familiar with the Amazon API, how many browse nodes are there?
- BrowseNodes 8y agoYes. Browse Nodes are essentially product categories. So, users search for the same set of categories. There are ~40K browse nodes in each Amazon domain and we have cached most of them already [1]. So, the cache miss is unlikely here. But, product cache is little complex. We have already cached the top products [2]. But, products are added every day. So, there will be some amount of cache miss there. [1] Cached browse nodes - https://browsenodes.com/amazon.com/explore.html https://browsenodes.com/amazon.com/explore.html [2] Cached products - https://browsenodes.com/amazon.co.uk/itemSearch/83451031.html?parent=Apparel https://browsenodes.com/amazon.co.uk/itemSearch/83451031.htm...
- gitgud 8y agoAh I see now, so you guys have pre-fetched most of Amazon and are providing a less restricted API to the cached content. Is that permitted in the Terms and Service of the Amazon API? Anyway great idea, would make a lot of developers lives easier!
- BrowseNodes 8y agoThanks! Amazon TOS allows caching. But, not sure if there is any specific restriction on shared cache.
- deleted 8y ago[deleted]