Cloud Intermediate
Google Cloud Functions — Serverless v2¶
GCPCloud FunctionsServerlessFaaS 5 min read
Cloud Functions 2nd gen, Eventarc triggery, concurrency a secrets.
2nd Gen¶
gcloud functions deploy process-order \
--gen2 --runtime=nodejs20 --region=europe-west1 \
--trigger-topic=orders --memory=512MB \
--min-instances=1 --max-instances=100 --concurrency=10
2nd gen = Cloud Run pod kapotou → concurrent requests, delší timeout.
Eventarc triggery¶
- Pub/Sub, Cloud Storage, Firestore, Audit Logs, HTTP
Concurrency model¶
Concurrency 10 + max 100 instances = 1000 paralelních requestů. Efektivnější než Lambda.
Summary¶
Cloud Functions 2nd gen = výrazný upgrade. Pro nové projekty vždy 2nd gen.
Need Help with Implementation?¶
Our team has experience designing and implementing modern architectures. We’re happy to help.