SlideShare ist ein Scribd-Unternehmen logo
1 von 185
Downloaden Sie, um offline zu lesen
#WISSENTEILEN
Serverless
Architectures
The ultimate Survival Guide
Lars Röwekamp | open knowledge GmbH
@_openKnowledge | @mobileLarson
ABOUT OPEN KNOWLEDGE
Software development and IT consulting
#WISSENTEILEN
ABOUT ME
Who am i?
• CIO New Technologies
• Enterprise & Mobile
• Author, Speaker, Coach & Mentor
• Snowboard & MTB Enthusiast
• Traveller between the worlds
Lars Röwekamp (a.k.a. @mobileLarson)
#WISSENTEILEN
LR
My Server
and me ...
My Server
and me ...
„The Nightmare“
#WISSENTEILEN
Server Q&A
(„Things I better should care about.“)
#WISSENTEILEN
#Servers
(Quantity? OS? Storage? CPU? Memory?)
#WISSENTEILEN
#Customers
(Start small! Grow fast! Die faster?)
#WISSENTEILEN
#Traffic
(Moderate but peeks!)
#WISSENTEILEN
#Security
(OS? Patches? Access Control?)
#WISSENTEILEN
Depends ...! 42?
(Go for max? Way too expensive!)
#WISSENTEILEN
“We are a hospitality management
organization, not an IT services company.”
#WISSENTEILEN
“We have to be great at a number of things…
operating data centers is not one of those things.”
I had a
dream ...
#WISSENTEILEN
Reduce
Labor Cost
(„No need to DIY.“)
#WISSENTEILEN
Reduce
Risk
(„Don‘t care about the technical stack.“)
#WISSENTEILEN
Increase flexiblity of
Scaling
(„Reduce to the max.“)
#WISSENTEILEN
Reduce
Resource Cost
(„Don‘t pay idle.“)
#WISSENTEILEN
Shorten
Lead Time
(„Right here, right now.“)
„Kein Server ist
einfacher zu
verwalten, als
kein Server.“
(Werner Vogels, CTO Amazon)
out-of-the-box self-scaling
out-of-the-box
self-scaling
cloud-based
super-backend
I had a dream ...
„No server is
easier to maintain
than no server.“
(Werner Vogels, CTO Amazon)
#WISSENTEILEN
Road to
less Server ...
#WISSENTEILEN
The Road to the Cloud ...
The Workshop Showcase
#WISSENTEILEN
Road to less Server
#WISSENTEILEN
Road to less Server
IaaS
#WISSENTEILEN
Road to less Server
IaaS
(Infrastructure as a Service)
#WISSENTEILEN
Road to less Server
IaaS
(Infrastructure as a Service)
#WISSENTEILEN
Road to less Server
IaaS
(Infrastructure as a Service)
#WISSENTEILEN
Road to less Server
IaaS
#WISSENTEILEN
Road to less Server
IaaSPaaS
#WISSENTEILEN
Road to less Server
IaaS
(Infrastructure as a Service)
#WISSENTEILEN
Road to less Server
PaaS
(Platform as a Service)
#WISSENTEILEN
Road to less Server
PaaS
(Platform as a Service)
#WISSENTEILEN
Road to less Server
IaaSPaaS
#WISSENTEILEN
Road to less Server
PaaSBaaS IaaS
Ain‘t gonna work!
Ain‘t gonna work!
My business logic
My integration logic
My event-based logic
#WISSENTEILEN
Road to less Server
PaaSBaaS IaaS
#WISSENTEILEN
Road to less Server
PaaS IaaS
#WISSENTEILEN
Road to less Server
PaaS
(Platform as a Service)
#WISSENTEILEN
Road to less Server
BaaS
(Backend as a Service)
#WISSENTEILEN
Road to less Server
BaaS
(Backend as a Service)
#WISSENTEILEN
Road to less Server
BaaS
(Backend as a Service)
#WISSENTEILEN
Road to less Server
PaaS IaaS
#WISSENTEILEN
Road to less Server
PaaS IaaS
#WISSENTEILEN
My Logic
(... as a Service)
#WISSENTEILEN
Run Code,
not Server!
#WISSENTEILEN
“Run your business code
highly-available
in the cloud in response
to events and scale
without any servers to
manage.“
#WISSENTEILEN
#1:
No servers to
provision or manage
#WISSENTEILEN
#2:
Build in high availability and
disaster recovery
#WISSENTEILEN
#3:
Scale with usage
by design
#WISSENTEILEN
Management:
“Hmm, I am not
convinced.”
#WISSENTEILEN
#4:
Never pay idle
(Management: „Ok, I am definitely in!“)
„Kein Server ist
einfacher zu
verwalten, als
kein Server.“
(Werner Vogels, CTO Amazon)
out-of-the-box self-scaling
out-of-the-box
self-scaling
cloud-based
super-backend
Remember
„your“ dreams?
#WISSENTEILEN
My Logic
(... as a Service)
#WISSENTEILEN
Function
(... as a Service)
#WISSENTEILEN
Road to less Server
BaaS
(Backend as a Service)
#WISSENTEILEN
Road to less Server
FaaS
(Function as a Service)
#WISSENTEILEN
<coding-time />
#WISSENTEILEN
/* super advanced lambda function */
public class HelloWorld {
public String handle(String name,
Context ctx) {
return “Hello“ + name;
}
}
#WISSENTEILEN
FaaS @work
FaaS @Work: Hello World
#WISSENTEILEN
FaaS @work
#WISSENTEILEN
FaaS @work
#WISSENTEILEN
FaaS @work
#WISSENTEILEN
AWS Lambda
(serverless, event-driven compute service)
How does it work?
#WISSENTEILEN
S3 Bucket
DynamoDB
Kinesis
EVENT
EVENT
INVOKE
Stateless Code
(a.k.a. AWS Lambda)
How does it work?
#WISSENTEILEN
How does it work?
S3 Bucket
DynamoDB
Kinesis
INVOKE
INVOKE
RETURN
Stateless Code
(Node, Python, Java, C#)
#WISSENTEILEN
Amazon
S3
Amazon
DynamoDB
Amazon
Kinesis
AWS
CloudFormation
AWS
CloudTrail
Amazon
CloudWatch
Amazon
SNS
Amazon
SES
Amazon
API GatewayAmazon
Cognito
AWS
IoT
Amazon
Alexa
Cron
Events
DATA STORES ENDPOINTS
REPOSITORIES
EVENT/MESSAGE SERVICES
Amazon
Config
How does it work?
The Anatomy of
Lambda Functions
#WISSENTEILEN
Anatomy
Lambda
Function
#WISSENTEILEN
Anatomy
Handler Function
Lambda
Function
</>
„...“
Event Object
Context Object
...
{
#WISSENTEILEN
Anatomy
Handler Function
Lambda
Function
</>
„...“
Event Object
Context Object
...
{
#WISSENTEILEN
Anatomy
Handler Function
Lambda
Function
</>
„...“
Event Object
Context Object
...
{
IAM Role
#WISSENTEILEN
Anatomy
Handler Function
Lambda
Function
</>
„...“
Event Object
Context Object
...
{
IAM Role
Return Object*
#WISSENTEILEN
Anatomy
Lambda
Function
1. Number of calls**
2. Memory usage***
{
IAM Role
Return Object*
(**first 1 million for free, ***first 400.000 sec free for 1 GB memory)
#WISSENTEILEN
Serverless
Manifesto
#WISSENTEILEN
Functions are the unit
of deployment and
scaling.
*FaaS: short-lived, stateless, scalable, event-driven unit
#WISSENTEILEN
No machines, VMs,
or containers.
*... are visible in the programming model
#WISSENTEILEN
Permanent storage
lives elsewhere.
*no state, each new function gets created within fresh environment
#WISSENTEILEN
* users cannot over- or under-provision capacity
Scales
per request.
#WISSENTEILEN
Never pay idle.
*use async, split long running functions
#WISSENTEILEN
Build in
availability and
fault-tolerance.
*because functions can run anywhere
#WISSENTEILEN
BYOC
*a.k.a. bring your own code
#WISSENTEILEN
Metrics and logging
are a universal right.
*use metrics and log events for AI, ML and self-healing
#WISSENTEILEN
#WISSENTEILEN
#WISSENTEILEN
#WISSENTEILEN
AWESOME!
(But is it really so simple?)
#WISSENTEILEN
FaaS @work
#WISSENTEILEN
FaaS @work
FaaS @Work: Image Gallery
#WISSENTEILEN
FaaS @work
FaaS @Work: Image Gallery
#WISSENTEILEN
FaaS @work
#WISSENTEILEN
FaaS @work
#WISSENTEILEN
FaaS @work
#WISSENTEILEN
FaaS @work
#WISSENTEILEN
FaaS @work
#WISSENTEILEN
<coding-time />
#WISSENTEILEN
Real Life
(easy version)
#WISSENTEILEN
Real Life
(easy version)
#WISSENTEILEN
Real Life
(easy version)
#WISSENTEILEN
Real Life
(real version)
#WISSENTEILEN
We need a Cloud aware
Architecture
for Serverless Applications
#WISSENTEILEN
Architecture?
I thought we are Serverless!
#WISSENTEILEN
What do you mean by architecture?
We will use multiple components to design robust architectures for
serverless workloads.
• Compute Layer
• Data Layer
• Messaging & Streaming Layer
• User Management & Identity Layer
• System Monitoring & Deployment
#WISSENTEILEN
What do you mean by architecture?
We will use multiple components to design robust architectures for
serverless workloads: Compute Layer
• Serverless Functions (stateless, business logic)
• API Gateway (non functional, cross-cutting concerns)
• Step Functions (function orchestration via state machine)
#WISSENTEILEN
What do you mean by architecture?
We will use multiple components to design robust architectures for
serverless workloads: Data Layer
• RDBMS
• NoSQL (including caching and streaming)
• Object Store (e.g. used by CDN for static content)
• (Elastic)Search Service (search and analytics)
#WISSENTEILEN
What do you mean by architecture?
We will use multiple components to design robust architectures for
serverless workloads: Messaging & Streaming Layer
• Notification Service (pub/sub for async event notification)
• Streaming Service (collect and analyze data in real-time)
• ETL Service (capture, transform & load data for near real-time BI)
#WISSENTEILEN
What do you mean by architecture?
We will use multiple components to design robust architectures for
serverless workloads: User Management & Identity Layer
• User Management Service (user and user attributes)
• Authentication & Authorization (sign-up, sign-in, openID Connect)
• Federal Identity Service (e.g. for Google, Facebook accounts)
#WISSENTEILEN
What do you mean by architecture?
We will use multiple components to design robust architectures for
serverless workloads: System Monitoring & Deployment Layer
• System Monitoring (system & custom metrics)
• Distributed Tracing (deep insights for analyzing and debugging)
• Cloud Application Model (infrastructure as code)
#WISSENTEILEN
Scenarios
Examples
#WISSENTEILEN
Scenario #1: RESTful Microservice
#WISSENTEILEN
Scenario #1: RESTful Microservice
Characteristics
• you want a secure, easy-to-operate framework, that is simple to
replicate and has high levels of resiliency and availability
• you want to log utilization and access patterns to continually
improve the backend to support customer usage
• you are seeking to leverage managed services as much as possible
which reduces the heavy lifting associated wiith managing common
platforms including security and scalability
#WISSENTEILEN
Scenario #1: RESTful Microservice
What could possibly go wrong?
• abnormalities, e.g. unexpected / invalid calls
• internal errors, latency, cache misses
• usage pattern evolves over time
• customer location changes
• security attacks (e.g. DoS/DDoS)
#WISSENTEILEN
Scenario #2: Mobile Backend
#WISSENTEILEN
Scenario #2: Mobile Backend
Characteristics
• you want to create a complete serverless architecture
without managing any instances and/or server
• you want your business logic to be decoupled from your
mobile application as much as possible
• you are looking to provide business functionalities as an
API to optimize development across multiple platforms
#WISSENTEILEN
Scenario #2: Mobile Backend
What could possibly go wrong?
• unexpected peaks of workload
• runtime cost explosion
• duplicated or lost events
• security attacks
• high latency
#WISSENTEILEN
Scenario #3: Stream Processing
#WISSENTEILEN
Scenario #3: Stream Processing
Characteristics
• you want to create a complete serverless architecture without
managing any instances or server for processing stream data
• you want to use existing libraries to take care of data ingestion
from a data producer perspective
#WISSENTEILEN
Scenario #3: Stream Processing
What could possibly go wrong?
• peaks of data to process
• data occurence and throughput does not match
• processing fails (all or parts)
• processing is slow(er) (... than expected)
• duplicate records (retry? idempotent?)
• runtime cost explosion
#WISSENTEILEN
Scenario #4: Web Application
#WISSENTEILEN
Scenario #4: Web Application
Characteristics
• you want a scalable web application that can go global in
minutes high levels of resilience and availability
• you want a consistent user experience with adequate
response times
• you want to optimize your costs based upon actual user
demand versus paying for idle resources
• ...
#WISSENTEILEN
Scenario #4: Web Application
Characteristics
• ...
• you are seeking to leverage managed services as much as
possible which reduces the heavy lifting associated with
managing common platforms including security and
scalability
• you want to set up a framework that is easy to set up and
operate, and that you can extend with limited impact later
#WISSENTEILEN
Scenario #4: Web Application
What could possibly go wrong?
• security attacks
• static content latency
• personalized SLAs / usage plans
• customer location changes
#WISSENTEILEN
Design
Principles
#WISSENTEILEN
speedy, simple,
singular
#WISSENTEILEN
think concurrent
request, no total
request
#WISSENTEILEN
share nothing
#WISSENTEILEN
assume no
hardware affinity
#WISSENTEILEN
orchestrate your
application with
state machines, not
functions
#WISSENTEILEN
use events to trigger
transactions
#WISSENTEILEN
design for failure
and duplicates
#WISSENTEILEN
Pillars of
Serverless
Architecture
#WISSENTEILEN
1
Operational
Excellence
2
Security
3
Reliability
4
Performance
Efficiency
5
Cost
Optimization
The 5 pillars of a
well-architectured Serverless Application
#WISSENTEILEN
1
Operational
Excellence
2
Security
3
Reliability
4
Performance
Efficiency
5
Cost
Optimization
The ability to run and monitor systems to deliver business
values and to continually improve supporting processes and
procedures.
#WISSENTEILEN
Operational Excellence
of a well-architectured Serverless Application
„How are you monitoring and responding to anomalies in your
serverless application?“
• collect default metrics
• define and collect custom metrics (ops- and business-centric)
• enable distributed tracing
• define alarms at individual and aggregate level
#WISSENTEILEN
Operational Excellence
of a well-architectured Serverless Application
AWS Resources
CloudWatch Alarms
Archive / AuditS3 Bucket
CloudTrail
Troubleshoot
AWS SDK
AWS CLI
Mgmt Console
#WISSENTEILEN
Operational Excellence
of a well-architectured Serverless Application
ELK-Tracing:
CloudTrail &
S3 Logstash
Input Plugin
#WISSENTEILEN
Operational Excellence
of a well-architectured Serverless Application
Logz.io-Tracing:
built-in support
#WISSENTEILEN
Operational Excellence
of a well-architectured Serverless Application
„How are you evolving your serverless application while minimizing
the impact?“
• seperate code from configuration via function env variables
• API Gateway stage variables and/or configuration service
• infrastructure as code templates to enable faster deployment
• seperate gateway endpoints, functions, and state machines per
stage over aliases and versions alone
• A/B-Testing and zero-downtime changes via weighted aliases
#WISSENTEILEN
1
Operational
Excellence
2
Security
3
Reliability
4
Performance
Efficiency
5
Cost
Optimization
The ability to protect information, systems, and assets while
delivering business value through risk assessments and
mitigation strategies.
#WISSENTEILEN
Security
of a well-architectured Serverless Application
• Identity & Access Management
• Detective Controls
• Infrastructure Protection
• Data Protection
#WISSENTEILEN
Security (Identity & Access Management)
of a well-architectured Serverless Application
„How do you authorize and authenticate access to your serverless
API?“
• IAM authorization (e.g. AWS IAM & SDKs)
• API Gateway customer Identity Provider authorizer (for existing IdP)
• BaaS based user pools (e.g. AWS Cognito)
#WISSENTEILEN
Security (Identity & Access Management)
of a well-architectured Serverless Application
„How are you enforcing boundaries as to what cloud services your
serverless functions can access?“
• least-privileged access via specific roles to avoid opening up the
systems for abuse
• small(er) functions with scoped activities
• NOTE: API Gateway API Key feature is not for security but primarily
for consumer‘s usage tracking
#WISSENTEILEN
Security (Detective Controls)
of a well-architectured Serverless Application
„How are you analyzing serverless application logs?“
• track vulnerabilities
• use log filters to transform log in metrics via regex
• create alarms based on application custom metrics
• enable API Gateway logging for single methods* for troubleshooting
• encrypt any data traversing the serverless application
*make certain not to violate compliance requirements
#WISSENTEILEN
Security (Detective Controls)
of a well-architectured Serverless Application
„How do you monitor dependency vulnerabilities within your
serverless application?“
• use 3rd party solution (e.g. OWASP Dependency Check)
• integrate into your CI/CD pipeline
#WISSENTEILEN
Security (Infastructure Protection)
of a well-architectured Serverless Application
„For VPC access, how are you enforcing networking boundaries as to
what serverless functions can access?“
• configure serverless function for VPC via VPN
• use security groups and Network Acess Control Lists (NACL) as
basis
• use proxies for outbound traffic filtering due to compliance reasons
#WISSENTEILEN
Security (Data Protection)
of a well-architectured Serverless Application
„How are your protecting sensitive data within your serverless
application?“
• use TLS for all communication
• senstive data should be protected at all times in all layers
• use encryption at transport and at rest
#WISSENTEILEN
Security (Data Protection)
of a well-architectured Serverless Application
„What is your strategy on input validation?“
• set up basic API Gateway request validation (JSON + parameters)
• app-specific deep validation via serverless function, framework, ...
#WISSENTEILEN
1
Operational
Excellence
2
Security
3
Reliability
4
Performance
Efficiency
5
Cost
Optimization
The ability of a system to recover from infrastructure or service
disruptions, dynamically acquire computing resources to
meet demands, and mitigate disruptions such as
misconfigurations or transient network issues.
#WISSENTEILEN
Serverless Reliability 101
improperly tuned timeouts
#WISSENTEILEN
Serverless Reliability 101
missing error handling
#WISSENTEILEN
Serverless Reliability 101
missing fallbacks for outages
#WISSENTEILEN
Serverless Reliability 101
theory vs. praxis: limited concurrency
1
2
n
…
1
2
n
…
n 1…
1
2
n
…
#WISSENTEILEN
Reliability
of a well-architectured Serverless Application
„Have you considered serverless limits for peak workload?“
• avoid degradation and throtteling of services
• monitor usage and set alarms at 80% (e.g. via AWS Trusted Advisor)
• react context sensitive (e.g. raise limit temporary vs. throtteling)
• differ business-critical and non-business-critical functions*
• prefer asynchronous over synchronous communication
*keep max concurrent execution limit in mind
#WISSENTEILEN
Reliability
of a well-architectured Serverless Application
„How are you regulating access rates to and within your serverless
applications?“
• enable throtteling at the API level
• return appropriate return code, e.g. 429, to consumers
• include predictive limit information in return header
• issue API keys to consumers for more granular throtteling (SLAs)
#WISSENTEILEN
Reliability
of a well-architectured Serverless Application
„What is your strategy on asynchronous calls and events within your
serverless architecture?“
• use async calls and events as often as possible for decoupling ...
• to avoid time-outs and locked code
• to allow non-blocking I/O
• use external service for timeout handling if sync is needed*
• NOTE: async plus async equals sync
*e.g. step functions
#WISSENTEILEN
Reliability
of a well-architectured Serverless Application
„What‘s your testing strategy for serverless applications?“
• separate logic from infrastructure to allow unit testing
• don‘t use mocks for services you can‘t control* for integration tests
• perfom acceptance or end-to-end tests in real life environment
*they may change and may result in unexpected results
#WISSENTEILEN
Reliability
of a well-architectured Serverless Application
„How are you building resilience into your serverless application?“
Change Management
• put monitoring metrics in place
• monitor workload to be able to determine abnormalities
• use function and API versioning to be able to rollback
#WISSENTEILEN
Reliability
of a well-architectured Serverless Application
„How are you building resilience into your serverless application?“
Failure Management
• know default back-off and retry logic of serverless framework
• tune back-off and retry logic to your needs if necessary
• build back-off and retry logic into serverless queries
• leverage error logging and capture log info as a custom metric
• ...
#WISSENTEILEN
Reliability
of a well-architectured Serverless Application
„How are you building resilience into your serverless application?“
Failure Management
• use Dead Letter Queues (DLQ) as dedicated resources
• use step-functions to avoid custom „try-catch“ blocks*
• inspect and handle responses for non-atomic requests (batch-alike)
• use SAGA Pattern to roll back distributed business transactions
*AWS Step Functions, IBM Sequences, Azure Logic Apps
#WISSENTEILEN
Serverless Reliability 101
TYPES OR ERROR
• 4xx Client Error:
Can be fixed by developer, e.g.
InvalidParameterValue (400),
ResourceNotFound (404),
RequestTooLarge (413), etc.
• 5xx Server Error:
Most can be fixed by admin,
e.g. EC2 ENI management
errors (502)
RETRY POLICY
• Stream-based event sources:
Automatically retried until data expires
• Asynchronous invocations:
Automatically retried 2 extra times,
then published to dead-letter-queue
• Synchronous invocations:
Invoking app receives an error code
and is responsible for retries
#WISSENTEILEN
1
Operational
Excellence
2
Security
3
Reliability
4
Performance
Efficiency
5
Cost
Optimization
The efficient use of computing resources to meet requirements
and the maintenance of that efficiency as demand changes
and technologies evolve.
#WISSENTEILEN
Performance Efficiency
of a well-architectured Serverless Application
„How do you choose the most optimum capacity units (memory,
shards, r/w per seconds) within your serverless application?“
• take a data-driven approach selecting a performant architecture
• gather data on all aspects of the architecture
• review results on a cyclical basis
• make architectural trade-offs if needed (e.g. compression, caching)
• run performance and load testings including upstream services
• finetune serverless functions
#WISSENTEILEN
Performance Efficiency
of a well-architectured Serverless Application
#WISSENTEILEN
Performance Efficiency
of a well-architectured Serverless Application
#WISSENTEILEN
Performance Efficiency
of a well-architectured Serverless Application
#WISSENTEILEN
Performance Efficiency
of a well-architectured Serverless Application
#WISSENTEILEN
Performance Efficiency
of a well-architectured Serverless Application
„How have you optimized the performance of your serverless
application?“
• enable API Gateway caching
• enable in-memory DB caching (e.g. DAX)
• avoid full scan operations on NoSQL DBs via indexes
• test performance with accurate sized sample workload
• leverage global scope within functions to take advantage of
container reuse (e.g. DB Connections, Cloud Service Connections)
#WISSENTEILEN
Performance Efficiency
of a well-architectured Serverless Application
active container available
for this Lambda that isn‘t busy
processing another event?
YES NO
invocation
After new container is created:
• function code package downloaded
• Lambda runtime environment started
#WISSENTEILEN
Performance Efficiency
of a well-architectured Serverless Application
ping
ping
ping
ping
AWS
Lambda
CloudWatch
Event
#WISSENTEILEN
Performance Efficiency
of a well-architectured Serverless Application
„How do you decide what components of your serverless application
should be deployed in a VPC?“
• check for cloud-risk data
• check for access to the VPC located components
• avoid VPC whenever possible
#WISSENTEILEN
1
Operational
Excellence
2
Security
3
Reliability
4
Performance
Efficiency
5
Cost
Optimization
The continual process of refinement and improvement of a
system over its entire lifecycle to build and operate a cost-
aware system.
#WISSENTEILEN
Cost Optimization
of a well-architectured Serverless Application
„What is your strategy for deciding the most optimal serverless
function memory allocation?“
• fine-tune memory allocation due to costs based on gathered data
#WISSENTEILEN
Cost Optimization
of a well-architectured Serverless Application
#WISSENTEILEN
Cost Optimization
of a well-architectured Serverless Application
#WISSENTEILEN
Cost Optimization
of a well-architectured Serverless Application
#WISSENTEILEN
Cost Optimization
of a well-architectured Serverless Application
„What is your strategy for code logging in your serverless functions?“
• NOTE: logging impacts costs (ingestion and storage)
• remove unnecessary print statements in code
• use log levels and environment variables
• define log retention periods
• export old logs to cost-effective „archive“-storage
#WISSENTEILEN
Cost Optimization
of a well-architectured Serverless Application
„Is your code architecture running unnecessary serverless functions
in order to reduce complexity?“
• use API Gateway service proxy
• prefer direct integration over custom functions
• optimze code due to execution time
#WISSENTEILEN
Cost Optimization
of a well-architectured Serverless Application
„How to optimize your code to run in the least amount of time
possible?“
• use step functions instead of serverless functions for orchestration
to avoid the serverless function waiting for a resource to become
available*
*pay per state change not per milliseconds
#WISSENTEILEN
Run Code,
not Server!
#WISSENTEILEN
Don‘t pay
idle!
No servers, no stress!
? ? ?
FRAGEN
#WISSENTEILEN
Kontakt
LARS RÖWEKAMP
CIO NEW TECHNOLOGIES
lars.roewekamp@openknowledge.de
+49 (0)441 4082 – 101
@mobileLarson
@_openknowledge
OFFENKUNDIGGUT
#WISSENTEILEN
Bildnachweise
#001: © chanchai howharn – shutterstock.con
#004: © wacebreak media – shutterstock.com
#014: © RichVintage – istockphoto.com
#020: © foxaon1987 – shutterstock.com
#021: © Guido van Nispen – Wikipedia
#022: © Framework Wonderland – shutterstock.com
#036: © vasakna – fotolia.com
#059: © print10 – istockphoto.com
#069: © pathdoc - fotolia.com
#110: © Myvisuals – shitterstock.com
#180: © tomer_turjeman – fotolia.com
#WISSENTEILEN

Weitere ähnliche Inhalte

Was ist angesagt?

AWS Cloud Kata | Taipei - Opening Keynote
AWS Cloud Kata | Taipei - Opening KeynoteAWS Cloud Kata | Taipei - Opening Keynote
AWS Cloud Kata | Taipei - Opening Keynote
Amazon Web Services
 

Was ist angesagt? (20)

AWS Mobility: Go Mobile in minutes.
AWS Mobility: Go Mobile in minutes. AWS Mobility: Go Mobile in minutes.
AWS Mobility: Go Mobile in minutes.
 
Scaling on DigitalOcean
Scaling on DigitalOceanScaling on DigitalOcean
Scaling on DigitalOcean
 
Contruyendo tu primera aplicación con AWS
Contruyendo tu primera aplicación con AWSContruyendo tu primera aplicación con AWS
Contruyendo tu primera aplicación con AWS
 
Rapid Application Development on AWS
Rapid Application Development on AWSRapid Application Development on AWS
Rapid Application Development on AWS
 
Memulai Perjalanan Cloud Anda dengan AWS
Memulai Perjalanan Cloud Anda dengan AWSMemulai Perjalanan Cloud Anda dengan AWS
Memulai Perjalanan Cloud Anda dengan AWS
 
Mobile App Development with Amazon Web Services Mobile Hub
Mobile App Development with Amazon Web Services Mobile HubMobile App Development with Amazon Web Services Mobile Hub
Mobile App Development with Amazon Web Services Mobile Hub
 
Aws Lambda and Serverless Cloud
Aws Lambda and Serverless CloudAws Lambda and Serverless Cloud
Aws Lambda and Serverless Cloud
 
Grow Your SMB Infrastructure on the AWS Cloud
Grow Your SMB Infrastructure on the AWS CloudGrow Your SMB Infrastructure on the AWS Cloud
Grow Your SMB Infrastructure on the AWS Cloud
 
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
Engage your users with Amazon SNS Mobile Push (Now with Broadcast) - Jinesh V...
 
AWS Cloud Kata | Taipei - Opening Keynote
AWS Cloud Kata | Taipei - Opening KeynoteAWS Cloud Kata | Taipei - Opening Keynote
AWS Cloud Kata | Taipei - Opening Keynote
 
Modernize Meetings with Amazon Chime - April 2017 AWS Online Tech Talks & Wor...
Modernize Meetings with Amazon Chime - April 2017 AWS Online Tech Talks & Wor...Modernize Meetings with Amazon Chime - April 2017 AWS Online Tech Talks & Wor...
Modernize Meetings with Amazon Chime - April 2017 AWS Online Tech Talks & Wor...
 
AWS September Webinar Series - Build Cross-Platform Mobile Apps with AWS and...
AWS September Webinar Series -  Build Cross-Platform Mobile Apps with AWS and...AWS September Webinar Series -  Build Cross-Platform Mobile Apps with AWS and...
AWS September Webinar Series - Build Cross-Platform Mobile Apps with AWS and...
 
QCon New York 2014 - Scalable, Reliable Analytics Infrastructure at KIXEYE
QCon New York 2014 - Scalable, Reliable Analytics Infrastructure at KIXEYEQCon New York 2014 - Scalable, Reliable Analytics Infrastructure at KIXEYE
QCon New York 2014 - Scalable, Reliable Analytics Infrastructure at KIXEYE
 
Memulai Perjalanan Cloud Anda dengan AWS
Memulai Perjalanan Cloud Anda dengan AWSMemulai Perjalanan Cloud Anda dengan AWS
Memulai Perjalanan Cloud Anda dengan AWS
 
2 5404811386729530203
2 54048113867295302032 5404811386729530203
2 5404811386729530203
 
Service fabric demo
Service fabric demoService fabric demo
Service fabric demo
 
TechDays 2017 - Going Serverless (2/2): Hands-on with Azure Event Grid
TechDays 2017 - Going Serverless (2/2): Hands-on with Azure Event GridTechDays 2017 - Going Serverless (2/2): Hands-on with Azure Event Grid
TechDays 2017 - Going Serverless (2/2): Hands-on with Azure Event Grid
 
MLB Advanced Media: Delivering a Digital Experience to 25 Million Fans with N...
MLB Advanced Media: Delivering a Digital Experience to 25 Million Fans with N...MLB Advanced Media: Delivering a Digital Experience to 25 Million Fans with N...
MLB Advanced Media: Delivering a Digital Experience to 25 Million Fans with N...
 
Build Your Mobile App with AWS Mobile Services
Build Your Mobile App with AWS Mobile ServicesBuild Your Mobile App with AWS Mobile Services
Build Your Mobile App with AWS Mobile Services
 
Dude, Where's my Server?
Dude, Where's my Server?Dude, Where's my Server?
Dude, Where's my Server?
 

Ähnlich wie Serverless Architectures: Ein Survival Guide

AWS Startup Webinar | Developing on AWS
AWS Startup Webinar | Developing on AWSAWS Startup Webinar | Developing on AWS
AWS Startup Webinar | Developing on AWS
Amazon Web Services
 
Microservices: The OSGi way A different vision on microservices
Microservices: The OSGi way A different vision on microservicesMicroservices: The OSGi way A different vision on microservices
Microservices: The OSGi way A different vision on microservices
Miguel Pastor
 
Azure for AWS & GCP Pros: Which Azure services to use?
Azure for AWS & GCP Pros: Which Azure services to use?Azure for AWS & GCP Pros: Which Azure services to use?
Azure for AWS & GCP Pros: Which Azure services to use?
Daniel Zivkovic
 

Ähnlich wie Serverless Architectures: Ein Survival Guide (20)

20180111 we bde-bs - serverless url shortener
20180111   we bde-bs - serverless url shortener20180111   we bde-bs - serverless url shortener
20180111 we bde-bs - serverless url shortener
 
Making sense of microservices, service mesh, and serverless
Making sense of microservices, service mesh, and serverlessMaking sense of microservices, service mesh, and serverless
Making sense of microservices, service mesh, and serverless
 
Accelerate DevOps/Microservices and Kubernetes
Accelerate DevOps/Microservices and KubernetesAccelerate DevOps/Microservices and Kubernetes
Accelerate DevOps/Microservices and Kubernetes
 
Monoliths, Myths, and Microservices - CfgMgmtCamp
Monoliths, Myths, and Microservices - CfgMgmtCampMonoliths, Myths, and Microservices - CfgMgmtCamp
Monoliths, Myths, and Microservices - CfgMgmtCamp
 
Serverless applications
Serverless applicationsServerless applications
Serverless applications
 
Von „less Server" zu Serverless: eine Reise durch die Cloud
Von „less Server" zu Serverless: eine Reise durch die CloudVon „less Server" zu Serverless: eine Reise durch die Cloud
Von „less Server" zu Serverless: eine Reise durch die Cloud
 
AWS Startup Webinar | Developing on AWS
AWS Startup Webinar | Developing on AWSAWS Startup Webinar | Developing on AWS
AWS Startup Webinar | Developing on AWS
 
Benefits of the Azure Cloud
Benefits of the Azure CloudBenefits of the Azure Cloud
Benefits of the Azure Cloud
 
DAS Slides: Data Architect vs. Data Engineer vs. Data Modeler
DAS Slides: Data Architect vs. Data Engineer vs. Data ModelerDAS Slides: Data Architect vs. Data Engineer vs. Data Modeler
DAS Slides: Data Architect vs. Data Engineer vs. Data Modeler
 
Best of re:Invent 2016 meetup presentation
Best of re:Invent 2016 meetup presentationBest of re:Invent 2016 meetup presentation
Best of re:Invent 2016 meetup presentation
 
Journey to the cloud, the why and how of serverless
Journey to the cloud, the why and how of serverlessJourney to the cloud, the why and how of serverless
Journey to the cloud, the why and how of serverless
 
DevOps Cardiff - Monitoring Automation for DevOps
DevOps Cardiff - Monitoring Automation for DevOpsDevOps Cardiff - Monitoring Automation for DevOps
DevOps Cardiff - Monitoring Automation for DevOps
 
Gab2015 Jeremy Mounet Azure Dynamics 2012 and 2015 (on MS Azure)
Gab2015 Jeremy Mounet Azure Dynamics 2012 and 2015 (on MS Azure)Gab2015 Jeremy Mounet Azure Dynamics 2012 and 2015 (on MS Azure)
Gab2015 Jeremy Mounet Azure Dynamics 2012 and 2015 (on MS Azure)
 
Microservices: The OSGi way A different vision on microservices
Microservices: The OSGi way A different vision on microservicesMicroservices: The OSGi way A different vision on microservices
Microservices: The OSGi way A different vision on microservices
 
11 Ways Microservices & Dynamic Clouds Break Your Monitoring
11 Ways Microservices & Dynamic Clouds Break Your Monitoring11 Ways Microservices & Dynamic Clouds Break Your Monitoring
11 Ways Microservices & Dynamic Clouds Break Your Monitoring
 
Accelerate your Cloud Success with Platform Services
Accelerate your Cloud Success with Platform ServicesAccelerate your Cloud Success with Platform Services
Accelerate your Cloud Success with Platform Services
 
Azure for AWS & GCP Pros: Which Azure services to use?
Azure for AWS & GCP Pros: Which Azure services to use?Azure for AWS & GCP Pros: Which Azure services to use?
Azure for AWS & GCP Pros: Which Azure services to use?
 
Microservices - Death of the Enterprise Service Bus (ESB)? (Update 2016)
Microservices - Death of the Enterprise Service Bus (ESB)? (Update 2016)Microservices - Death of the Enterprise Service Bus (ESB)? (Update 2016)
Microservices - Death of the Enterprise Service Bus (ESB)? (Update 2016)
 
HLC308_Refactoring to the Cloud
HLC308_Refactoring to the CloudHLC308_Refactoring to the Cloud
HLC308_Refactoring to the Cloud
 
Healthcare Payers and Serverless Batch Processing Engines - HLC308 - re:Inven...
Healthcare Payers and Serverless Batch Processing Engines - HLC308 - re:Inven...Healthcare Payers and Serverless Batch Processing Engines - HLC308 - re:Inven...
Healthcare Payers and Serverless Batch Processing Engines - HLC308 - re:Inven...
 

Mehr von OPEN KNOWLEDGE GmbH

Mehr von OPEN KNOWLEDGE GmbH (20)

Warum der Computer "Nein" sagt - Mehr Nachvollziehbarkeit dank Explainable AI
Warum der Computer "Nein" sagt - Mehr Nachvollziehbarkeit dank Explainable AIWarum der Computer "Nein" sagt - Mehr Nachvollziehbarkeit dank Explainable AI
Warum der Computer "Nein" sagt - Mehr Nachvollziehbarkeit dank Explainable AI
 
Machine Learning? Ja gerne! Aber was und wie? Eine Kurzanleitung für den erfo...
Machine Learning? Ja gerne! Aber was und wie? Eine Kurzanleitung für den erfo...Machine Learning? Ja gerne! Aber was und wie? Eine Kurzanleitung für den erfo...
Machine Learning? Ja gerne! Aber was und wie? Eine Kurzanleitung für den erfo...
 
From Zero to still Zero: Die schönsten Fehler auf dem Weg in die Cloud
From Zero to still Zero: Die schönsten Fehler auf dem Weg in die CloudFrom Zero to still Zero: Die schönsten Fehler auf dem Weg in die Cloud
From Zero to still Zero: Die schönsten Fehler auf dem Weg in die Cloud
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
FEHLENDE DATEN? (K)EIN PROBLEM!: Die Kunst der Data Imputation
FEHLENDE DATEN? (K)EIN PROBLEM!: Die Kunst der Data ImputationFEHLENDE DATEN? (K)EIN PROBLEM!: Die Kunst der Data Imputation
FEHLENDE DATEN? (K)EIN PROBLEM!: Die Kunst der Data Imputation
 
Nie wieder Log-Files!
Nie wieder Log-Files!Nie wieder Log-Files!
Nie wieder Log-Files!
 
Cloud-native and Enterprise Java? Hold my beer!
Cloud-native and Enterprise Java? Hold my beer!Cloud-native and Enterprise Java? Hold my beer!
Cloud-native and Enterprise Java? Hold my beer!
 
From Zero to still Zero: The most beautiful mistakes going into the cloud.
From Zero to still Zero: The most beautiful mistakes going into the cloud. From Zero to still Zero: The most beautiful mistakes going into the cloud.
From Zero to still Zero: The most beautiful mistakes going into the cloud.
 
API Expand Contract
API Expand ContractAPI Expand Contract
API Expand Contract
 
Ready for the Future: Jakarta EE in Zeiten von Cloud Native & Co
Ready for the Future: Jakarta EE in Zeiten von Cloud Native & CoReady for the Future: Jakarta EE in Zeiten von Cloud Native & Co
Ready for the Future: Jakarta EE in Zeiten von Cloud Native & Co
 
Shared Data in verteilten Architekturen
Shared Data in verteilten ArchitekturenShared Data in verteilten Architekturen
Shared Data in verteilten Architekturen
 
Machine Learning mit TensorFlow.js
Machine Learning mit TensorFlow.jsMachine Learning mit TensorFlow.js
Machine Learning mit TensorFlow.js
 
KI und Architektur
KI und ArchitekturKI und Architektur
KI und Architektur
 
It's not Rocket Science: Neuronale Netze
It's not Rocket Science: Neuronale NetzeIt's not Rocket Science: Neuronale Netze
It's not Rocket Science: Neuronale Netze
 
Shared Data in verteilten Systemen
Shared Data in verteilten SystemenShared Data in verteilten Systemen
Shared Data in verteilten Systemen
 
Business-Mehrwert durch KI
Business-Mehrwert durch KIBusiness-Mehrwert durch KI
Business-Mehrwert durch KI
 
Mehr Sicherheit durch Automatisierung
Mehr Sicherheit durch AutomatisierungMehr Sicherheit durch Automatisierung
Mehr Sicherheit durch Automatisierung
 
API-Design, Microarchitecture und Testing
API-Design, Microarchitecture und TestingAPI-Design, Microarchitecture und Testing
API-Design, Microarchitecture und Testing
 
Supersonic Java für die Cloud: Quarkus
Supersonic Java für die Cloud: QuarkusSupersonic Java für die Cloud: Quarkus
Supersonic Java für die Cloud: Quarkus
 
Hilfe, ich will meinen Monolithen zurück!
Hilfe, ich will meinen Monolithen zurück!Hilfe, ich will meinen Monolithen zurück!
Hilfe, ich will meinen Monolithen zurück!
 

Kürzlich hochgeladen

+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Kürzlich hochgeladen (20)

Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Pharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyPharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodology
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
 

Serverless Architectures: Ein Survival Guide