{"action":"created","issue":{"url":"https://api.github.com/repos/ponyriders/django-amazon-price-monitor/issues/38","labels_url":"https://api.github.com/repos/ponyriders/django-amazon-price-monitor/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/ponyriders/django-amazon-price-monitor/issues/38/comments","events_url":"https://api.github.com/repos/ponyriders/django-amazon-price-monitor/issues/38/events","html_url":"https://github.com/ponyriders/django-amazon-price-monitor/issues/38","id":74637497,"number":38,"title":"Endless synchronization queue","user":{"login":"dArignac","id":106409,"avatar_url":"https://avatars.githubusercontent.com/u/106409?v=3","gravatar_id":"","url":"https://api.github.com/users/dArignac","html_url":"https://github.com/dArignac","followers_url":"https://api.github.com/users/dArignac/followers","following_url":"https://api.github.com/users/dArignac/following{/other_user}","gists_url":"https://api.github.com/users/dArignac/gists{/gist_id}","starred_url":"https://api.github.com/users/dArignac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dArignac/subscriptions","organizations_url":"https://api.github.com/users/dArignac/orgs","repos_url":"https://api.github.com/users/dArignac/repos","events_url":"https://api.github.com/users/dArignac/events{/privacy}","received_events_url":"https://api.github.com/users/dArignac/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ponyriders/django-amazon-price-monitor/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ponyriders/django-amazon-price-monitor/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"dArignac","id":106409,"avatar_url":"https://avatars.githubusercontent.com/u/106409?v=3","gravatar_id":"","url":"https://api.github.com/users/dArignac","html_url":"https://github.com/dArignac","followers_url":"https://api.github.com/users/dArignac/followers","following_url":"https://api.github.com/users/dArignac/following{/other_user}","gists_url":"https://api.github.com/users/dArignac/gists{/gist_id}","starred_url":"https://api.github.com/users/dArignac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dArignac/subscriptions","organizations_url":"https://api.github.com/users/dArignac/orgs","repos_url":"https://api.github.com/users/dArignac/repos","events_url":"https://api.github.com/users/dArignac/events{/privacy}","received_events_url":"https://api.github.com/users/dArignac/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-05-09T09:55:15Z","updated_at":"2015-05-10T08:45:56Z","closed_at":null,"body":"We have a funny endless queue phenomenom here: the sync all products task runs every 5 minutes. A taskrun queries 10 products and if there are more products, the task will be run again after 10 seconds. If there are more than 300 products to sync, the periodic task will run before the actual sync run is done. This stacks up a pile of queues."},"comment":{"url":"https://api.github.com/repos/ponyriders/django-amazon-price-monitor/issues/comments/100602306","html_url":"https://github.com/ponyriders/django-amazon-price-monitor/issues/38#issuecomment-100602306","issue_url":"https://api.github.com/repos/ponyriders/django-amazon-price-monitor/issues/38","id":100602306,"user":{"login":"dArignac","id":106409,"avatar_url":"https://avatars.githubusercontent.com/u/106409?v=3","gravatar_id":"","url":"https://api.github.com/users/dArignac","html_url":"https://github.com/dArignac","followers_url":"https://api.github.com/users/dArignac/followers","following_url":"https://api.github.com/users/dArignac/following{/other_user}","gists_url":"https://api.github.com/users/dArignac/gists{/gist_id}","starred_url":"https://api.github.com/users/dArignac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dArignac/subscriptions","organizations_url":"https://api.github.com/users/dArignac/orgs","repos_url":"https://api.github.com/users/dArignac/repos","events_url":"https://api.github.com/users/dArignac/events{/privacy}","received_events_url":"https://api.github.com/users/dArignac/received_events","type":"User","site_admin":false},"created_at":"2015-05-10T08:45:56Z","updated_at":"2015-05-10T08:45:56Z","body":"Additionally we run into request limitations here.\nThe formula for how many request are allowed per second is\n\n```1 + round ([last 30 days shipped Sales])/$4,600)```\n\n(from: https://affiliate-program.amazon.com/gp/advertising/api/detail/faq.html)\n\nSales depend on the used Amazon account. To be safe here, there should be only one request per second. Within a single request we can use up to 10 products (see http://docs.aws.amazon.com/AWSECommerceService/latest/DG/PerformingMultipleItemLookupsinOneRequest.html)."}}