6. What are serverless use-cases?
ANYTHING - WINDOWS/LINUX
Image/Video
conversion
Machine
Learning
Mobile Back-
ends / IoT
HTTP API /
Integrations
Chat Bots
Batch Jobs
7. How did OpenFaaS come about?
STORY SO FAR
• “Lambda but with containers for Alexa”
• Dockercon Cool Hacks - “push Docker beyond what it was designed to do”
• Since May
• Top trending Open Source project overall
• > 8k stars
• Industry Award
• Production users
• Kubernetes, Nomad, Hyper.sh, Cattle
Commits: 876, Forks: 372 Stars: 6589
16. How do I write a function?
WRITE A HANDLER
def handler(req):
r = requests.get(req)
print(r.status_code)
handler.py
requirements.txt
Python
Template
Docker
Image
requests
$ faas-cli new dockercon --lang python
Container Registry
23. Chaining / workflows
AS FUNCTIONS
• Should be a function
• A can call B directly
• A can call B via gateway
• Async
• Director pattern (in documentation)
• Helper library available