jeudi 2 avril 2015

Bulk async calls to FB and G+ count endpoints fail

my app has a controller that outputs the total social count for various pages: http://ift.tt/1GPuR8A


..it works fine when i'm making a few calls at a time but say when there is a website of 1000 urls and i want to update the social count for each of the urls, it breaks when its hit with volume calls asynchronously - particularly g+ and fb break. Here's the console error I get as the response to the call made to fb's graph id (this is the 'body' response - please refer to line 74 of the controller: http://ift.tt/1GPuR8A



facebook body is {"id":"970371719648388","created_time":"2015-04-02T07:43:09+0000","is_scrap
ed":false,"type":"website","updated_time":"2015-04-02T07:43:09+0000","url":"http:\/\/http://ift.tt/1IUJZR1"}
facebook result is undefined


Does anyone know how to solve this issue and to make the controller work smoothly?


I tried making bulk calls using sharedcount.com and i'm able to do 10s of thousand of simultaneous calls without any problem. How can I write my controller to handle such bulk operations without using external services like sharedcount?


Aucun commentaire:

Enregistrer un commentaire