2 ms·
... you do know that you can send a response to the client, close the connection and do something else before the process "finishes" right?
by stephenr 7y ago
... you do know that you can send a response to the client, close the connection and do something else before the process "finishes" right?
- solraph 7y agoI do. However, the process would have stuck around until it finished. It wouldn't have changed our overall RPS at all. Arguably the same problem would exist in other languages, but at least there we would have had the option of using threads, and we could have executed multiple calls to SQS in parallel. Probably not something I'd want to do all the time, but it would be nice to have had that option in this case.
- stephenr 7y agoIf it’s a http api, there’s always curl_multi to do multiple concurrent requests.