Comments (5)
Hey @FdezRomero!
It think it is a good idea to add an option to limit requests.
https://github.com/jhurliman/node-rate-limiter comes to mind. Any advantages of using bottleneck over it?
Can you show an example of that option in other languages?
from amazon-product-api.
Hi @t3chnoboy,
I chose Bottleneck over node-rate-limiter because it allows to create a different keys/queues for each API endpoint and seemed very lightweight and performant (the creators use it for production DNS). However, I'm not sure if some endpoints are counted together for the rate limiting or not, I found contradictory information about this. Anyway, I have no preference in using these libraries or a custom implementation as long as it supports concurrency.
You can find an example of the MaxQPS I mentioned before in bottlenose, a client written in Python (I haven't used it myself).
Thanks!
from amazon-product-api.
Hi @FdezRomero. I recently ran into the same throttling issue and found that global throttling, i.e. not per-endpoint throttling, was the solution. Putting https://github.com/jhurliman/node-rate-limiter, as @t3chnoboy suggested, in front of all requests worked well.
from amazon-product-api.
Thanks @kaijuliu, knowing that the limit is actually global and not per endpoint really helps 👍
I read some time ago a comment saying that the European stores acted like a cluster and the rest were independent, but I never found official information from Amazon...
from amazon-product-api.
@t3chnoboy can we close this issue?
from amazon-product-api.
Related Issues (20)
- When I import this package in a Create React App project, I get a warning for pre-built javascript file.
- Is there a way to perform similarity lookup?
- You are submitting requests too quickly. Please retry your requests at a slower rate HOT 8
- No 'Access-Control-Allow-Origin' header is present on the requested resource. HOT 8
- Amazon API returns 'Request has expired'
- How to get a product page from itemlookup HOT 3
- How to get the response in TEXT JSON? HOT 1
- How to set the product images height/width programmatically?
- How to check if product shipped to specific country ?
- Search result does not contain TotalResults and TotalPages. HOT 1
- Can I pass 'Domain" parameter in CreateClient? HOT 1
- RequestThrottled: New Efficiency-Guidelines HOT 3
- Amazon Product Advertising API 5 HOT 6
- Cannot call using API key generated for Amazon.ca. HOT 1
- I have some issue in a React /Gatsby app HOT 2
- Is this possible to use on the client side? HOT 3
- [Bug] When usign * in the power prop for ItemSearch sig is invalid
- can't find the doc
- Add query for proxy server HOT 1
- CloudKit Integration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-product-api.