Overview
Applad functions run in isolated Docker containers and support multiple runtimes: Dart, Node.js, Python, Go, PHP, Ruby, and more. Each function is defined in a single YAML file with a source block pointing to your code.Defining Functions
Each function lives infunctions/<name>.yaml.
Basic Function Structure
functions/send-welcome-message.yaml
Supported Runtimes
dartnodepythongophpruby- Custom containers via registry source
Source Configuration
Functions can pull code from three source types:Local Source
GitHub Repository
Container Registry
Trigger Types
HTTP Trigger
Event Trigger
auth.user.createdauth.user.updatedauth.user.deletedpayment.succeededpayment.failed- Custom events from your application
Scheduled Trigger
minute hour day month weekday
Webhook Functions
Inbound webhooks from third-party services (Stripe, GitHub, Twilio) use HTTP triggers with signature verification:functions/handle-stripe-event.yaml
Webhook Verification Providers
Container Security
Functions run in hardened containers with security controls:Environment Variables
Pass secrets and configuration to functions:Cloud Burst
For heavy workloads, functions can burst to cloud compute:functions/daily-report.yaml
Deploying Functions
Deploy a function
- Fetches code from source
- Builds the container
- Scans for vulnerabilities
- Deploys to infrastructure
- Keeps previous version running until new one is healthy
Deploy all functions
Testing Functions
Invoke manually
Invoke with payload
Building and Scanning
Build without deploying
Scan for vulnerabilities
Example: Complete Payment Function
functions/process-payment.yaml
Example: Event-Triggered Function
functions/send-welcome-message.yaml
Example: Scheduled Function
functions/daily-report.yaml
Next Steps
Deployments
Configure deployment pipelines for web, mobile, and desktop
Messaging
Set up email, SMS, and push notifications