3 ms·
How do you handle the FB API concurrency limits? I'm not familiar with the messenger API, but the marketing API is pretty strict about not allowing more than a
by happyslobro 10y ago
How do you handle the FB API concurrency limits? I'm not familiar with the messenger API, but the marketing API is pretty strict about not allowing more than a few requests (2? 5?) per second.
Once I hit that, I hashed out a scheme where I serialize and queue outgoing requests (SQS), and then execute them from a lambda that is triggered by a 1 second timer. At this point, I was in a crunch for what was supposed to be a fairly simple task, and modern AWS is somewhat of an unfamiliar environment for me, so I just deployed it as a classic Node worker on Heroku.