Who needs containers in a
serverless world?
@RedHatNews & @InstanaHQ
Vašek Pavlín & Matthias Lübken
@vpavlin & @luebken
Agenda for 23 min
● Intro
● Focus on developers
● What is serverless
● A serverless example
● Containers?
○ Developers Workflow
○ Architectural Considerations
○ DevOps responsibilities
● Opinions
See Slides:
bit.ly/containers-serverless
@vpavlin & @luebken
Who needs containers in a serverless world
What this talk is not about
You need servers for serverless
You need containers to run serverless
Open Source
Mr. Developer
What is serverless?
Terms
● FaaS: Function-As-A-Service
● Event driven
● BaaS: Backend-As-A-Service
Are PaaS & CaaS serverless?
5 common traits of serverless
1. Does not require managing a long-lived server
or application instance
2. Self auto-scales and auto-provisions,
based on load
3. Offers costs based on precise usage
up from and down to zero usage
4. Has performance capabilities
defined in terms other than host size / count
5. Has implicit high availability
http://bit.ly/symph-defining-1 by @mikebroberts
A serverless example
A typical serverless architecture on AWS
user client
S3: static
artefacts
Cognito
User
Authentication
API
gateway
S3: cache
Lambda
function
Cloud Watch
Logs / Metrics
SNS
Event
Lambda
function
External
APIs
Route 53
DNS
Error response
Triggered by an
(HTTP) event
Try to get data from
cache
Publish event for
missing data
Return JSON payload
And containers?
Containers are Versatile
Containers Serverless
Serverless & Containers
Developers’ workflow
Developers’ Workflow
Developers’ Workflow - Write Code
● Use IDE of choice
○ You can try VS Code with plugins (interesting links: debugging, another debugging, docker
plugin)
Developers’ Workflow - Build
● Ideally “one click” solution
Containers
● Dockerfile
● Source To Image
● Ansible Container
● Draft
● ...
Serverless
● Zip:)
Developers’ Workflow - Run
● Locally or Remotely?
Containers
● docker run …
● docker-compose up
● oc cluster up && oc new-app ...
Serverless
● serverless invoke local
● serverless offline (for AWS)
● Azure local
● OpenWhisk on OpenShift
Developers’ Workflow - Test
● Unit? Integration? Acceptance? Local? Remote? Automated?
Containers
● There are projects
● Unit testing is simple
● Integration testing can be done locally
● Acceptance testing should be done in
production-like environment anyway
Serverless
● Unit testing is important
● Integration & Acceptance testing
over unit testing
Developers’ Workflow - Deploy
● Automate the hell out of it!
Containers
● Build is the same as in dev or test
● You’ll need orchestration
○ Kubernetes
○ OpenShift
○ Mesos
○ Swarm
○ …
● There are CI integrations
Serverless
● Serverless Framework
● Matthias uses Apex
● Now
Architectural Considerations
The “serverless architectural style”
● Currently serverless is limiting:
○ Ephemeral application logic
○ Limited compute options
○ Short life span
○ State in backing services
○ Distribution by default
○ Cold vs Warm start
○ Latency between components
● Less is more. Limited options drive new architectures.
○ Makes you think in APIs
○ Buy vs build
○ ...
Can your FaaSdo better?
Paper: Serverless computing: economic and architectural impact
Gojko Adzic, Robert Chatley
http://www.doc.ic.ac.uk/~rbc/papers/fse-serverless-17.pdf
● Removing economic incentives
for bundling
● Removing components like gatekeeper
due to request level authorization
● Removing Barriers to Versioning
Implicit within the system
DevOps responsibilities
DevOps responsibilities change
● DevOps? What is your definition?
● Even with serverless, there are still many OPs topics to be taken care of
around: Security, Performance, Tooling, CI/CD, (Distributed) Monitoring,
● But with serverless there is operability from the start
● DevOps promotes collaboration. Serverless mandates it.
=> Roles, responsibilities & teams evolve.
Managed vs Control
● You can host your own serverless platform
but note serverless leverages economy of scale
● Most orgs will choose some cloud vendor and give up control
So, how important is control to you?
● Ops is different with serverless
So ?
Opinions
Matthias: “Serverless is the greatest enabler”
● No costs for not running code is just mind blowing
● Serverless made me think differently:
○ APIs
■ What other APIs are others providing?
■ What can I expose as an API?
○ Modular
■ Does my function do too much?
○ Event driven
■ What are good domain events?
And it’s fun.
Vašek: “Containers give you freedom”
● Containers give freedom
○ Have you ever given freedom to developers? ;)
● You need to think on scale
● Orchestration is king
● It does not take traditional “ops” tasks away
● It was fun last 3 years, now it’s just work...
What if you could have both?
Apache OpenWhisk
● http://openwhisk.org/
● GA : Feb 2016 from IBM
● Red Hat joined June 2017
● License : ASL v2
● Polyglot : NodeJS, Swift, Python, Java, PHP +
Docker
● Event Sources : BlueMix services, Watson,
Cloudant, other SaaS
● BlueMix Cloud Functions Pricing : $0.000017
GB-s
● Event Sequencing, Parameter Binding
● serverless = faas & event driven & backend services
● pro container:
○ you can achieve similar characteristics with containers
○ containers & development are more versatile
○ they enable different architectures: monolith, µservices, faas
○ BTW containers are the enabling infrastructure
● pro serverless:
○ opinionated architecture
○ focus on writing application logic
○ precise cost based pricing powers new architectures
● OpenWhisk to the rescue
tl;dr
Thanks for listening
@vpavlin @luebken

More Related Content

PDF
TechTalk - Building Serverless Applications with IBM Bluemix
PDF
TechTalk Webinar Series - Getting Started with Apache OpenWhisk
PPTX
Serverless Summit India 2017: Fission
PDF
Rebuilding Legacy Apps with Domain-Driven Design - Lessons learned
PDF
Build your First IoT Application with IBM Watson IoT
PDF
Build your own private Cloud environment
PPTX
Kudu voodoo slideshare
PDF
Adopting containers and kubernetes in production
TechTalk - Building Serverless Applications with IBM Bluemix
TechTalk Webinar Series - Getting Started with Apache OpenWhisk
Serverless Summit India 2017: Fission
Rebuilding Legacy Apps with Domain-Driven Design - Lessons learned
Build your First IoT Application with IBM Watson IoT
Build your own private Cloud environment
Kudu voodoo slideshare
Adopting containers and kubernetes in production

What's hot (20)

PPTX
Building CI/CD Pipelines with Jenkins and Kubernetes
PPT
Packing It In: Images, Containers and Config Management
PDF
Microservices, DevOps, and Containers with OpenShift and Fabric8
PDF
Ozone-Wayland Support in Chromium (GENIVI 13th All Member Meeting & AMM Open ...
PPTX
Continuous delivery by sergey seletsky
PDF
Autoscaling Docker Containers by Konstantinos Faliagkas, Docker Birthday #3 A...
PPTX
Next generation pipelines
PPTX
Going serverless with aws
PDF
Building microservices web application using scala & akka
PDF
[Lakmal] Automate Microservice to API
PPT
Getting Started with Docker
PPTX
The busy developer guide to Docker
PPTX
From zero to hero with Docker
PPTX
CollabDays 2020 Barcelona - Serverless Kubernetes with KEDA
PDF
Service Discovery: From Classic to VPC
PPTX
Scaling a conventional CI infrastructure in the public cloud
PDF
Containers and Developer Defined Data Centers - Evan Powell - Keynote in Bang...
PPTX
Persistent, Portable Storage for Docker Containers and Microservices
PPTX
Get acquainted with the new ASP.Net 5
PDF
Voxxed Athens 2018 - Java EE is dead Long live jakarta EE!
Building CI/CD Pipelines with Jenkins and Kubernetes
Packing It In: Images, Containers and Config Management
Microservices, DevOps, and Containers with OpenShift and Fabric8
Ozone-Wayland Support in Chromium (GENIVI 13th All Member Meeting & AMM Open ...
Continuous delivery by sergey seletsky
Autoscaling Docker Containers by Konstantinos Faliagkas, Docker Birthday #3 A...
Next generation pipelines
Going serverless with aws
Building microservices web application using scala & akka
[Lakmal] Automate Microservice to API
Getting Started with Docker
The busy developer guide to Docker
From zero to hero with Docker
CollabDays 2020 Barcelona - Serverless Kubernetes with KEDA
Service Discovery: From Classic to VPC
Scaling a conventional CI infrastructure in the public cloud
Containers and Developer Defined Data Centers - Evan Powell - Keynote in Bang...
Persistent, Portable Storage for Docker Containers and Microservices
Get acquainted with the new ASP.Net 5
Voxxed Athens 2018 - Java EE is dead Long live jakarta EE!
Ad

Similar to Who needs containers in a serverless world (20)

PDF
Who needs containers in a serverless world
PDF
Serverless is the future... or is it?
PDF
It's a Serverless World
PDF
Serverless brewbox
PDF
The Future of Serverless
PPTX
Serverless: The next major shift in cloud computing
PDF
Journey to the cloud, the why and how of serverless
PPTX
Serverless-Computing-The-Future-of-Backend-Development
PPTX
Demystifying Serverless: Making the Right Decision for Your Workload
PDF
Serverless 101 in Montreal
PDF
Dhaval Nagar - ServerlessDays Bengaluru 2023
PDF
Stop calling everything serverless!
PPTX
An introduction to Serverless
PDF
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
PPTX
Building the Serverless Container Experience: Kevin McGrath, Spotinst, Server...
PDF
Evolving applications-to-serverless
PDF
The future will be Serverless (FrontConf Munich 2017)
PPTX
Serverless Pune Meetup 1
PDF
The Next Big Thing: Serverless
PDF
Serverless: A love hate relationship
Who needs containers in a serverless world
Serverless is the future... or is it?
It's a Serverless World
Serverless brewbox
The Future of Serverless
Serverless: The next major shift in cloud computing
Journey to the cloud, the why and how of serverless
Serverless-Computing-The-Future-of-Backend-Development
Demystifying Serverless: Making the Right Decision for Your Workload
Serverless 101 in Montreal
Dhaval Nagar - ServerlessDays Bengaluru 2023
Stop calling everything serverless!
An introduction to Serverless
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
Building the Serverless Container Experience: Kevin McGrath, Spotinst, Server...
Evolving applications-to-serverless
The future will be Serverless (FrontConf Munich 2017)
Serverless Pune Meetup 1
The Next Big Thing: Serverless
Serverless: A love hate relationship
Ad

More from Matthias Luebken (13)

PPTX
Container Patterns
PDF
Eine Einführung in Docker
PDF
How to scale product development when you no longer fit in one room
PDF
How to scale product development when you no longer fit in one room
PDF
Docker Introduction – @ Agile Bonn
PDF
“Und wie war ich so?”
Feedback in Unternehmen
PDF
Home- (office) ?
PDF
Staying Startup
PDF
Talk: Staying Startup at Interactive-Cologne
PDF
Verbessertes Feedback durch Peerreview
PDF
Mobile WebApps
PDF
Mobile Webapps Entwicklung
PDF
Mobile Webapps Motivation
Container Patterns
Eine Einführung in Docker
How to scale product development when you no longer fit in one room
How to scale product development when you no longer fit in one room
Docker Introduction – @ Agile Bonn
“Und wie war ich so?”
Feedback in Unternehmen
Home- (office) ?
Staying Startup
Talk: Staying Startup at Interactive-Cologne
Verbessertes Feedback durch Peerreview
Mobile WebApps
Mobile Webapps Entwicklung
Mobile Webapps Motivation

Recently uploaded (20)

PDF
Build Real-Time ML Apps with Python, Feast & NoSQL
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
PPTX
Microsoft User Copilot Training Slide Deck
PDF
“The Future of Visual AI: Efficient Multimodal Intelligence,” a Keynote Prese...
PDF
Aug23rd - Mulesoft Community Workshop - Hyd, India.pdf
PDF
Auditboard EB SOX Playbook 2023 edition.
PPTX
Internet of Everything -Basic concepts details
PDF
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PPTX
Module 1 Introduction to Web Programming .pptx
PDF
LMS bot: enhanced learning management systems for improved student learning e...
PDF
giants, standing on the shoulders of - by Daniel Stenberg
PDF
Introduction to MCP and A2A Protocols: Enabling Agent Communication
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PDF
Advancing precision in air quality forecasting through machine learning integ...
Build Real-Time ML Apps with Python, Feast & NoSQL
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
Co-training pseudo-labeling for text classification with support vector machi...
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
Microsoft User Copilot Training Slide Deck
“The Future of Visual AI: Efficient Multimodal Intelligence,” a Keynote Prese...
Aug23rd - Mulesoft Community Workshop - Hyd, India.pdf
Auditboard EB SOX Playbook 2023 edition.
Internet of Everything -Basic concepts details
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
Rapid Prototyping: A lecture on prototyping techniques for interface design
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
Module 1 Introduction to Web Programming .pptx
LMS bot: enhanced learning management systems for improved student learning e...
giants, standing on the shoulders of - by Daniel Stenberg
Introduction to MCP and A2A Protocols: Enabling Agent Communication
NewMind AI Weekly Chronicles – August ’25 Week IV
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
Advancing precision in air quality forecasting through machine learning integ...

Who needs containers in a serverless world

  • 1. Who needs containers in a serverless world? @RedHatNews & @InstanaHQ Vašek Pavlín & Matthias Lübken @vpavlin & @luebken
  • 2. Agenda for 23 min ● Intro ● Focus on developers ● What is serverless ● A serverless example ● Containers? ○ Developers Workflow ○ Architectural Considerations ○ DevOps responsibilities ● Opinions See Slides: bit.ly/containers-serverless
  • 5. What this talk is not about You need servers for serverless You need containers to run serverless
  • 9. Terms ● FaaS: Function-As-A-Service ● Event driven ● BaaS: Backend-As-A-Service
  • 10. Are PaaS & CaaS serverless?
  • 11. 5 common traits of serverless 1. Does not require managing a long-lived server or application instance 2. Self auto-scales and auto-provisions, based on load 3. Offers costs based on precise usage up from and down to zero usage 4. Has performance capabilities defined in terms other than host size / count 5. Has implicit high availability http://bit.ly/symph-defining-1 by @mikebroberts
  • 13. A typical serverless architecture on AWS user client S3: static artefacts Cognito User Authentication API gateway S3: cache Lambda function Cloud Watch Logs / Metrics SNS Event Lambda function External APIs Route 53 DNS
  • 14. Error response Triggered by an (HTTP) event Try to get data from cache Publish event for missing data Return JSON payload
  • 19. Developers’ Workflow - Write Code ● Use IDE of choice ○ You can try VS Code with plugins (interesting links: debugging, another debugging, docker plugin)
  • 20. Developers’ Workflow - Build ● Ideally “one click” solution Containers ● Dockerfile ● Source To Image ● Ansible Container ● Draft ● ... Serverless ● Zip:)
  • 21. Developers’ Workflow - Run ● Locally or Remotely? Containers ● docker run … ● docker-compose up ● oc cluster up && oc new-app ... Serverless ● serverless invoke local ● serverless offline (for AWS) ● Azure local ● OpenWhisk on OpenShift
  • 22. Developers’ Workflow - Test ● Unit? Integration? Acceptance? Local? Remote? Automated? Containers ● There are projects ● Unit testing is simple ● Integration testing can be done locally ● Acceptance testing should be done in production-like environment anyway Serverless ● Unit testing is important ● Integration & Acceptance testing over unit testing
  • 23. Developers’ Workflow - Deploy ● Automate the hell out of it! Containers ● Build is the same as in dev or test ● You’ll need orchestration ○ Kubernetes ○ OpenShift ○ Mesos ○ Swarm ○ … ● There are CI integrations Serverless ● Serverless Framework ● Matthias uses Apex ● Now
  • 25. The “serverless architectural style” ● Currently serverless is limiting: ○ Ephemeral application logic ○ Limited compute options ○ Short life span ○ State in backing services ○ Distribution by default ○ Cold vs Warm start ○ Latency between components ● Less is more. Limited options drive new architectures. ○ Makes you think in APIs ○ Buy vs build ○ ... Can your FaaSdo better?
  • 26. Paper: Serverless computing: economic and architectural impact Gojko Adzic, Robert Chatley http://www.doc.ic.ac.uk/~rbc/papers/fse-serverless-17.pdf ● Removing economic incentives for bundling ● Removing components like gatekeeper due to request level authorization ● Removing Barriers to Versioning Implicit within the system
  • 28. DevOps responsibilities change ● DevOps? What is your definition? ● Even with serverless, there are still many OPs topics to be taken care of around: Security, Performance, Tooling, CI/CD, (Distributed) Monitoring, ● But with serverless there is operability from the start ● DevOps promotes collaboration. Serverless mandates it. => Roles, responsibilities & teams evolve.
  • 29. Managed vs Control ● You can host your own serverless platform but note serverless leverages economy of scale ● Most orgs will choose some cloud vendor and give up control So, how important is control to you? ● Ops is different with serverless
  • 31. Matthias: “Serverless is the greatest enabler” ● No costs for not running code is just mind blowing ● Serverless made me think differently: ○ APIs ■ What other APIs are others providing? ■ What can I expose as an API? ○ Modular ■ Does my function do too much? ○ Event driven ■ What are good domain events? And it’s fun.
  • 32. Vašek: “Containers give you freedom” ● Containers give freedom ○ Have you ever given freedom to developers? ;) ● You need to think on scale ● Orchestration is king ● It does not take traditional “ops” tasks away ● It was fun last 3 years, now it’s just work...
  • 33. What if you could have both?
  • 34. Apache OpenWhisk ● http://openwhisk.org/ ● GA : Feb 2016 from IBM ● Red Hat joined June 2017 ● License : ASL v2 ● Polyglot : NodeJS, Swift, Python, Java, PHP + Docker ● Event Sources : BlueMix services, Watson, Cloudant, other SaaS ● BlueMix Cloud Functions Pricing : $0.000017 GB-s ● Event Sequencing, Parameter Binding
  • 35. ● serverless = faas & event driven & backend services ● pro container: ○ you can achieve similar characteristics with containers ○ containers & development are more versatile ○ they enable different architectures: monolith, µservices, faas ○ BTW containers are the enabling infrastructure ● pro serverless: ○ opinionated architecture ○ focus on writing application logic ○ precise cost based pricing powers new architectures ● OpenWhisk to the rescue tl;dr