15 karma · joined Jan 11, 2022 (4y ago) · 12 submissions
comment 4y ago · link · parent
Functions are used for a lot more than HTTP, we use them for a lot of DB event handling such as post-processing, in which case cold starts does not really matter.
Maybe we'll one day get to a point where the cloud service knows the best way to run our code?
comment 4y ago · link · parent
I believe the majority of our performance gain is from having far fewer cold starts during large traffic loads.
comment 4y ago · link · parent
comment 4y ago · link · parent
We hit some snags when we started requiring a performant API, which is why we don't use Firebase for that any more, although we still use Firestore and a lot of other stuff for the platform.
As every other technology it's choosing what pains you want, and the current Firesbase pains are quite easy to live with.
comment 4y ago · link · parent
Functions still only run a single request at a time, while Cloud Run can run as many as the container can handle. We want to build for multiple smaller requests, so when we get ~10k requests incoming in a short timespan it's a lot more useful to have Cloud Run.
I may be mistaken, but I believe cold start is roughly the same for both.