Building Serverless Swift APIs with Apache OpenWhisk
summary
Shows how to run Swift functions on Apache OpenWhisk / IBM Cloud Functions: write a single function named main (Swift 3/4), use Codable for JSON, register via the wsk CLI and invoke locally or via a web action URL or an API Gateway. Demo builds a Bitcoin conversion API that calls CoinDesk, deployed from source but recommends push Swift binary to narrow cold vs warm start latency. Platform auto-scales to zero, charges by milliseconds and memory, and enforces timeouts (~10–15 min) and low-GB memory limits.
AI-written summary · about
chapters (18)
- 0:00Introduction to serverless Swift
- 1:41Why servers kill productivity
- 4:27What is serverless computing
- 8:42History of serverless platforms
- 10:06Why choose Apache OpenWhisk
- 11:29Swift support in OpenWhisk
- 12:33Writing Swift functions for OpenWhisk
- 15:20Setting up OpenWhisk locally
- 16:24Hello World demo with Swift
- 18:31Real-world Bitcoin conversion API
- 21:19Integrating functions into mobile apps
- 23:47Using API gateways for endpoints
- 25:33Creating a web action endpoint
- 27:40Building a managed API with API Gateway
- 30:06Challenges of serverless platforms
- 30:48Warm vs cold Swift activations
- 35:19Compute limits in serverless
- 38:06Summary and call to action
related talks
43mServerless Swift APIs with Apache OpenWhisk
21mIntro to Serverless Computing with Swift
18mServerless (aka FaaS) Computing With Swift
56mApache OpenWhisk
37mBuilding Serverless Applications (...)
30mPython with Apache OpenWhisk
45mServerless Mobile Backend as a Service in Swift
15mServerless Apps with Node.JS in OpenWhisk and Adobe I/O Runtime
