Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement (transparent) rate limiting #15

Open
JonnyJD opened this issue Jun 6, 2015 · 1 comment
Open

Implement (transparent) rate limiting #15

JonnyJD opened this issue Jun 6, 2015 · 1 comment

Comments

@JonnyJD
Copy link

JonnyJD commented Jun 6, 2015

The MusicBrainz server requires clients to send not more than one request per second:
http://musicbrainz.org/doc/Development/XML_Web_Service/Version_2#Limiting_Connections_to_the_MusicBrainz_Web_Service

This can be done easily by the user with sleep(), but it would be even better if this library could do it transparently as done in python-musicbrainzngs:
http://python-musicbrainzngs.readthedocs.org/en/latest/api/#musicbrainzngs.set_rate_limit

@mikealmond
Copy link
Owner

@JonnyJD That's a good idea. I just pushed v0.2.2 with the sleep(1) in it. I'll look at making this more transparent in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants