#ggmghoul
1 messages · Page 1 of 1 (latest)
Hello, what is your question?
hello , so i have a problem when the app receives many requests at once
the only solution i found is to delay each one by a few secondes
but one of your staff also told me that there is a timeout on the request after i asked so it wasn't recommended
is there any recommendation ?
to be precise the problem happens when a session is cut out cause i'm using sqlalchemy in the app i tried to fix it from there but i couldn't
Hello, unfortunately I don't think there is much of a way around the 30 second timeout. Typically, we recommend responding with a 200 to the webhook events as soon as you receive them and then processing them all afterwards. Like if you can only process four things at once, it may make sense to have one of them just acknowledge and queue up events and have the other three actually process and react to the queued up event.
Too funny... I hopped in here to ask almost the same question. I'll need to rework my API to spin off a new thread and process the event because processing large payouts often takes well over the 30 second limit.
it was working fine earlier when the requests were like twice at once or three but this morning i received about 16 at once so basically the had no breath to go for what's needed xD and everything failed
Does your application currently do about what I suggested? Or do you process the event before returning the 200?