3 ms·
Obviously switching away from Cloud Functions does away with the architectural limitation of processing requests serially, but from my (limited) understanding o
by joek1301 5y ago
Obviously switching away from Cloud Functions does away with the architectural limitation of processing requests serially, but from my (limited) understanding of Node.js internals, Express applications are single-threaded anyway.
Do you have any idea of where your performance gains are coming from? Is there a lot of async, non-blocking waiting happening in the process of fulfilling requests against your API?
- obcilion 5y agoThe NodeJS application is single-threaded, but the Node EventLoop can handle a huge amount of parallel requests, especially since most of the time per request is spent waiting for calls to the DB or external APIs. I believe the majority of our performance gain is from having far fewer cold starts during large traffic loads.