This post is a dedicated deep dive into ServerlessFunction in Caraer apps and how it connects to webhook delivery.
ServerlessFunction is linked to an App.
Core fields:
runtimecodedescription
Current allowed runtimes are:
nodejs22python312
Validation rejects values outside that allowlist.
This means save operations are operationally significant: they can provision or update cloud infrastructure.
Webhooks can link to a serverless function through USES_SERVERLESS_FUNCTION.
Typical pattern:
- Define serverless function in the app.
- Reference that function in webhook configuration.
- Use webhook delivery mode and filters to control invocation behavior.
Use serverless when you need:
- low-latency processing close to event trigger
- lightweight transformation/enrichment before forwarding
- internal execution without exposing public webhook endpoints
Use HTTP webhook delivery when you need centralized integration handling in your own backend.
- Keep function code idempotent.
- Guard against retries/duplicate webhook events.
- Version function behavior carefully across app updates.
- Monitor cloud function logs and failure rates.