Settings

Theme

Ask HN: How do serverless/cloud functions work underneath?

3 points by quantumOctopus 4 years ago · 4 comments · 1 min read

Reader

I've been curious about this for a while, anyone willing to shed some light even at a higher level!

j4hdufd8 4 years ago

I speculate it's just containers, repurposed solely for the purposes of serving HTTP APIs.

When you "deploy" a cloud function I think it means it rebuilds the container image and replaces the running instance of the container.

I imagine that e.g. the usual 60s "timeout" of a cloud function just means they kill the container after 60s?

And maybe e.g. Firestore triggers means that Firestore maintains event handlers that spawn a container (your "trigger") to run the code you want for that event?

techn00 4 years ago

You can also check out how https://www.openfaas.com/ works.

fggdd 4 years ago

Is Google broken for you?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection