SlideShare uma empresa Scribd logo
1 de 34
Serverless
( … ) Serverless
Serverless?
Not having to think about servers
Serverless is
• BaaS (Backend as a Service)
• FaaS (Function as a Service)
Serverless
Serverless was 1st used to describe
applications that significantly or fully depend
on 3rd party applications / services (‘in the
cloud’) to manage server-side logic and state.
BaaS
BaaS
• Analytics
• Cloud Messaging
• Authentication
• Realtime Database
• Cloud Storage
• Notification
BaaS : Firebase
AWS Mobile
Serverless can also mean applications where
some amount of server-side logic is still
written by the application developer
but unlike traditional architectures is run in
stateless compute containers that are event-
triggered, ephemeral(may only last for one
invocation), and fully managed by a 3rd party.
FaaS
running back end code without managing
your own server systems or your own server
applications.
FaaS
FaaS
BaaS & FaaS
BaaS & FaaS
Cloud evolution
What’s different?
Applications / Services
A lightweight, event-based, asynchronous compute
solution that allows you to create small, single-
purpose functions that respond to cloud events
without the need to manage a server or a runtime
environment.
Infrastructure
• Fully-managed by vendor
• Without managing server system / applications
• Functions
• AWS Lambda: JS, Python, JVM lang, C#
• Deploy
• BYOC: bring your own code. ZIP or code in console
• Scaling
• Request based automatically
• Trigger by events
• Defined by vendors: eg AWS S3, CloudWatch,
Message Queue
• Http/s requests: eg. API Gateway, Webtask
Traffic pattern
Architecture
• Stateless Function
• API gateway
• Event-driven Architecture
Stateless functions : 1st version
Stateless functions : 1st version
All 3 operations are scaled based on the overall load
across them, and state is transferred in-memory,
creating complication around caching and/or routing
sessions to instances in order to maintain state.
Stateless functions : 2nd version
Stateless functions : 2nd version
Each function scales individually and as-needed.
All state is in DynamoDB so there is no cluster
coordination of any sort, at the cost of a small
increase in latency.
Stateless functions
• Processes are stateless and share-nothing
• Any data that needs to persist must be stored
in a stateful backing service, typically a DB.
Stateless functions - Benefits
• Reduce operational costs
• Infrastructure cost: without pay as it is idle
• People cost: focus on function development
• Reduce development cost
• BaaS: eg. Firebase, Auth0
• Spend development time on business-specific
code
• Maximize iterations
• Minimize dependences: IT Ops, DBAs
• Easier Operational management
• Scaling benefits of FaaS
• Reduced packaging complexity
API Gateway
• HTTP server where routes / endpoints are
defined in configuration and each route is
associated with a FaaS function.
• perform authentication, input validation,
response code mapping, etc.
API Gateway
• Encapsulates the internal structure of the
application.
• Reduces the number of round trips between
the client and application.
• Simplifies the client
Event Driven Architecture
• Scale: it enables the implementation of
transactions that span multiple services and
provide eventual consistency.
• Materialized view: It enables an application to
maintain a data store that contains the result of
a query. It may be a join result or a summary
using an aggregate function.
CQRS
Command Query Responsibility Segregation
1. fabric
• 인프라 리소스가 환경에 따라 빠르게 동적으로 구성, 혹은 재배
치될 수 있도록 최적화된 서버, 네트워크, 스토리지의 묶음.
• RTI(Real-Time Infrastruncture)
• 개발자가 운영 신경 쓰지 않고 개발 코딩 자체에 집중.
2. framework
• 이벤트 기반 프로그래밍 모델에 기반한 코드 생성.
• 대량 입출력 애플리케이션(ex : IoT)에 적합
• 작성된 코드의 인과를 관리.
3. function layer
• 애플리케이션 조합/빌드를 위한 패키지, 패턴, 참조 아키텍처
제공.
• 원하는 출력을 얻기 위한 로직과 인텔리전스가 있는 곳.
Serverless Architecture
AWS Lambda 예
Cloud 비교(1)
Category AWS Lambda Azure Functions Google Cloud Functions
Version Production ready Preview - Beta Closed Alpha
Support Lang Nodejs, Python, Java, C# Nodejs, Python, PHP, F#, C# Javascript
Dependency
Management
Compile all external packages
and zip the source code
Using
package.json – node.js
project.json – F#, C#
Using package.json
Event Source S3, DynamoDB
Kinesis
Streams
SNS, SES
Cognito
Cloud Formation
Cloud Watch
Code Commit
Scheduled Events
Config
Echo
Alexa
API Gateway
Bindings/Triggers
Scheduler
Http(webhook)
Azure Storage
Events Hubs
Queues, Tables
DocumentDB(No-sql)
Notification Hub
Twilio
HTTP functions :
Http Triggers
Webhooks (drive, gmail, calend
ar)
Background functions :
Cloud Pub/Sub, Cloud Storage
Pub/Sub :
Cloud Logging
Gmail, Twilio
Architecture On top of Linux
Memory allocated per function
On top of Windows
Memory allocated per app service
Not Specified
Cloud 비교(2)
Category AWS Lambda Azure Functions Google Cloud Functions
Persistent Storage No persistent storage
Completely Stateless
Env variables can be set
in App services which can be
used in functions.
Not Specified
HTTP Endpoint API Gateway HTTP Webhooks HTTP Trigger
Maximum Execution
Time per request
300 seconds 300 sec max runtime per func
tion invocation
No limit
Deployment Zip upload to Lambda/s3, Server
less Framework
Git, dropbox, visual studio,
One drive, Kudu Console
Zip upload, Cloud Storage,
Cloud Source repositories,
Git
Maximum no. of
Functions
No limit Not Specified 20 functions per project
Concurrent executions 100 parallel executions
per account per region
but users can increase it
No limit No limit
Pricing Request Charges :
$0.20 / 1M requests
Compute Charges :
$0.00001667 / GB-s
Request Charges :
$0.20 / 1M requests
Compute Charges :
$0. 000008 / GB-s
Unknown until Open beta
Concurrent Executions 100 parallel Executions,
but Can be increased
10 instances which is several
100 executions
Not Specified
Reference
• Serverless: The next step in cloud computing’s evolution
• http://netformation.com/your-it-reality/serverless-the-next-step-
in-cloud-computings-evolution
• (번역) 서버리스 아키텍처
• http://blog.aliencube.org/ko/2016/06/23/serverless-
architectures/
• Serverless by Young Yang (Slideshare)
• https://www.slideshare.net/young.yang/serverless-
73008636Reduced packaging complexity
• 기타 볼만한 …
• Technical Introduction to AWS Lambda - Serverless
Compute on AWS
• https://www.youtube.com/watch?v=QzipnZzAQEk
• 개발자들이 말하는 AWS 기반 ‘서버 없는 아키텍처’
• https://aws.amazon.com/ko/blogs/korea/serverless-
architecture-by-korean-developers/

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Modern Distributed Messaging and RPC
Modern Distributed Messaging and RPCModern Distributed Messaging and RPC
Modern Distributed Messaging and RPC
 
Shedding Light on LINE Token Economy You Won't Find in Our White Paper
Shedding Light on LINE Token Economy You Won't Find in Our White PaperShedding Light on LINE Token Economy You Won't Find in Our White Paper
Shedding Light on LINE Token Economy You Won't Find in Our White Paper
 
OpenAPI and gRPC Side by-Side
OpenAPI and gRPC Side by-SideOpenAPI and gRPC Side by-Side
OpenAPI and gRPC Side by-Side
 
Spark Summit - Mobius C# Binding for Apache Spark
Spark Summit - Mobius C# Binding for Apache SparkSpark Summit - Mobius C# Binding for Apache Spark
Spark Summit - Mobius C# Binding for Apache Spark
 
Flink Forward San Francisco 2019: Apache Beam portability in the times of rea...
Flink Forward San Francisco 2019: Apache Beam portability in the times of rea...Flink Forward San Francisco 2019: Apache Beam portability in the times of rea...
Flink Forward San Francisco 2019: Apache Beam portability in the times of rea...
 
Gwt cdi jaxrs_hbraun
Gwt cdi jaxrs_hbraunGwt cdi jaxrs_hbraun
Gwt cdi jaxrs_hbraun
 
Kubeflow Pipelines (with Tekton)
Kubeflow Pipelines (with Tekton)Kubeflow Pipelines (with Tekton)
Kubeflow Pipelines (with Tekton)
 
.Net Introduction
.Net Introduction.Net Introduction
.Net Introduction
 
ESB integration for node.js
ESB integration for node.js ESB integration for node.js
ESB integration for node.js
 
How fluentd fits into the modern software landscape
How fluentd fits into the modern software landscapeHow fluentd fits into the modern software landscape
How fluentd fits into the modern software landscape
 
Kubeflow Control Plane 中文
Kubeflow Control Plane 中文Kubeflow Control Plane 中文
Kubeflow Control Plane 中文
 
Machine Learning Exchange (MLX)
Machine Learning Exchange (MLX)Machine Learning Exchange (MLX)
Machine Learning Exchange (MLX)
 
Distributed Kafka Architecture Taboola Scale
Distributed Kafka Architecture Taboola ScaleDistributed Kafka Architecture Taboola Scale
Distributed Kafka Architecture Taboola Scale
 
KFServing and Feast
KFServing and FeastKFServing and Feast
KFServing and Feast
 
Putting Kafka Together with the Best of Google Cloud Platform
Putting Kafka Together with the Best of Google Cloud Platform Putting Kafka Together with the Best of Google Cloud Platform
Putting Kafka Together with the Best of Google Cloud Platform
 
Infrastructure as Code with Terraform and Ansible
Infrastructure as Code with Terraform and AnsibleInfrastructure as Code with Terraform and Ansible
Infrastructure as Code with Terraform and Ansible
 
Swarms: introduction
Swarms: introductionSwarms: introduction
Swarms: introduction
 
Serverless Boston @ Oracle Meetup
Serverless Boston @ Oracle MeetupServerless Boston @ Oracle Meetup
Serverless Boston @ Oracle Meetup
 
The Fn Project by Jesse Butler
 The Fn Project by Jesse Butler The Fn Project by Jesse Butler
The Fn Project by Jesse Butler
 
Seattle Spark Meetup Mobius CSharp API
Seattle Spark Meetup Mobius CSharp APISeattle Spark Meetup Mobius CSharp API
Seattle Spark Meetup Mobius CSharp API
 

Destaque

ISCA final presentation - Runtime
ISCA final presentation - RuntimeISCA final presentation - Runtime
ISCA final presentation - Runtime
HSA Foundation
 
Accelerating Hadoop, Spark, and Memcached with HPC Technologies
Accelerating Hadoop, Spark, and Memcached with HPC TechnologiesAccelerating Hadoop, Spark, and Memcached with HPC Technologies
Accelerating Hadoop, Spark, and Memcached with HPC Technologies
inside-BigData.com
 

Destaque (20)

Serverless - Lunch&Learn CleverToday - Mars 2017
Serverless - Lunch&Learn CleverToday - Mars 2017Serverless - Lunch&Learn CleverToday - Mars 2017
Serverless - Lunch&Learn CleverToday - Mars 2017
 
DevOps Days Tel Aviv - Serverless Architecture
DevOps Days Tel Aviv - Serverless ArchitectureDevOps Days Tel Aviv - Serverless Architecture
DevOps Days Tel Aviv - Serverless Architecture
 
ISCA final presentation - Runtime
ISCA final presentation - RuntimeISCA final presentation - Runtime
ISCA final presentation - Runtime
 
Nokia Web-Runtime Presentation (Phong Vu)
Nokia Web-Runtime Presentation (Phong Vu)Nokia Web-Runtime Presentation (Phong Vu)
Nokia Web-Runtime Presentation (Phong Vu)
 
There is No Server: Immutable Infrastructure and Serverless Architecture
There is No Server: Immutable Infrastructure and Serverless ArchitectureThere is No Server: Immutable Infrastructure and Serverless Architecture
There is No Server: Immutable Infrastructure and Serverless Architecture
 
Intel and Amazon - Powering your innovation together.
Intel and Amazon - Powering your innovation together. Intel and Amazon - Powering your innovation together.
Intel and Amazon - Powering your innovation together.
 
Microsoft Really Loves Linux – a Virtual Love Story
Microsoft Really Loves Linux – a Virtual Love StoryMicrosoft Really Loves Linux – a Virtual Love Story
Microsoft Really Loves Linux – a Virtual Love Story
 
Valgrind overview: runtime memory checker and a bit more aka использование #v...
Valgrind overview: runtime memory checker and a bit more aka использование #v...Valgrind overview: runtime memory checker and a bit more aka использование #v...
Valgrind overview: runtime memory checker and a bit more aka использование #v...
 
OpenContrail, Real Speed: Offloading vRouter
OpenContrail, Real Speed: Offloading vRouterOpenContrail, Real Speed: Offloading vRouter
OpenContrail, Real Speed: Offloading vRouter
 
Using GPUs to Achieve Massive Parallelism in Java 8
Using GPUs to Achieve Massive Parallelism in Java 8Using GPUs to Achieve Massive Parallelism in Java 8
Using GPUs to Achieve Massive Parallelism in Java 8
 
Markus Tessmann, InnoGames
Markus Tessmann, InnoGames	Markus Tessmann, InnoGames
Markus Tessmann, InnoGames
 
Java garbage collection & GC friendly coding
Java garbage collection  & GC friendly codingJava garbage collection  & GC friendly coding
Java garbage collection & GC friendly coding
 
Cilium - BPF & XDP for containers
Cilium - BPF & XDP for containersCilium - BPF & XDP for containers
Cilium - BPF & XDP for containers
 
20170329 container technight-第一回勉強会
20170329 container technight-第一回勉強会20170329 container technight-第一回勉強会
20170329 container technight-第一回勉強会
 
Serverless Application - Who the heck needs a Server?
Serverless Application - Who the heck needs a Server?Serverless Application - Who the heck needs a Server?
Serverless Application - Who the heck needs a Server?
 
Cilium - Container Networking with BPF & XDP
Cilium - Container Networking with BPF & XDPCilium - Container Networking with BPF & XDP
Cilium - Container Networking with BPF & XDP
 
データベース屋がHyperledger Fabricを検証してみた
データベース屋がHyperledger Fabricを検証してみたデータベース屋がHyperledger Fabricを検証してみた
データベース屋がHyperledger Fabricを検証してみた
 
Accelerating Hadoop, Spark, and Memcached with HPC Technologies
Accelerating Hadoop, Spark, and Memcached with HPC TechnologiesAccelerating Hadoop, Spark, and Memcached with HPC Technologies
Accelerating Hadoop, Spark, and Memcached with HPC Technologies
 
Random forest の解説
Random forest の解説Random forest の解説
Random forest の解説
 
【STAC2017】テスト自動化システム 成長記
【STAC2017】テスト自動化システム 成長記【STAC2017】テスト自動化システム 成長記
【STAC2017】テスト自動化システム 成長記
 

Semelhante a Serverless Architecture

Building CICD Pipelines for Serverless Applications - DevDay Austin 2017
Building CICD Pipelines for Serverless Applications - DevDay Austin 2017Building CICD Pipelines for Serverless Applications - DevDay Austin 2017
Building CICD Pipelines for Serverless Applications - DevDay Austin 2017
Amazon Web Services
 

Semelhante a Serverless Architecture (20)

Getting Started with Serverless Architectures
Getting Started with Serverless ArchitecturesGetting Started with Serverless Architectures
Getting Started with Serverless Architectures
 
How to build and deploy serverless apps - AWS Summit Cape Town 2018
How to build and deploy serverless apps - AWS Summit Cape Town 2018How to build and deploy serverless apps - AWS Summit Cape Town 2018
How to build and deploy serverless apps - AWS Summit Cape Town 2018
 
MSDN Sessions 032817 - Azure Functions
MSDN Sessions 032817 - Azure FunctionsMSDN Sessions 032817 - Azure Functions
MSDN Sessions 032817 - Azure Functions
 
Serverless Frameworks.pdf
Serverless Frameworks.pdfServerless Frameworks.pdf
Serverless Frameworks.pdf
 
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
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless Computing
 
SMC301 The State of Serverless Computing
SMC301 The State of Serverless ComputingSMC301 The State of Serverless Computing
SMC301 The State of Serverless Computing
 
Demistifying serverless on aws
Demistifying serverless on awsDemistifying serverless on aws
Demistifying serverless on aws
 
Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
 Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T... Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
Getting Started with AWS Lambda and the Serverless Cloud - AWS Summit Cape T...
 
SRV203 Getting Started with AWS Lambda and the Serverless Cloud
SRV203 Getting Started with AWS Lambda and the Serverless CloudSRV203 Getting Started with AWS Lambda and the Serverless Cloud
SRV203 Getting Started with AWS Lambda and the Serverless Cloud
 
Raleigh DevDay 2017: Build a serverless web application in one day workshop
Raleigh DevDay 2017: Build a serverless web application in one day workshopRaleigh DevDay 2017: Build a serverless web application in one day workshop
Raleigh DevDay 2017: Build a serverless web application in one day workshop
 
Logic Apps and Azure Functions for Serverless Integration (2017-03-25)
Logic Apps and Azure Functions for Serverless Integration (2017-03-25)Logic Apps and Azure Functions for Serverless Integration (2017-03-25)
Logic Apps and Azure Functions for Serverless Integration (2017-03-25)
 
From Serverless to InterCloud
From Serverless to InterCloudFrom Serverless to InterCloud
From Serverless to InterCloud
 
Getting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless CloudGetting Started with AWS Lambda and the Serverless Cloud
Getting Started with AWS Lambda and the Serverless Cloud
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless Computing
 
What is Serverless Computing?
What is Serverless Computing?What is Serverless Computing?
What is Serverless Computing?
 
AWS re:Invent 2016: The State of Serverless Computing (SVR311)
AWS re:Invent 2016: The State of Serverless Computing (SVR311)AWS re:Invent 2016: The State of Serverless Computing (SVR311)
AWS re:Invent 2016: The State of Serverless Computing (SVR311)
 
The State of Serverless Computing | AWS Public Sector Summit 2017
The State of Serverless Computing | AWS Public Sector Summit 2017The State of Serverless Computing | AWS Public Sector Summit 2017
The State of Serverless Computing | AWS Public Sector Summit 2017
 
Raleigh DevDay 2017: Building CICD pipelines for serverless applications
Raleigh DevDay 2017: Building CICD pipelines for serverless applicationsRaleigh DevDay 2017: Building CICD pipelines for serverless applications
Raleigh DevDay 2017: Building CICD pipelines for serverless applications
 
Building CICD Pipelines for Serverless Applications - DevDay Austin 2017
Building CICD Pipelines for Serverless Applications - DevDay Austin 2017Building CICD Pipelines for Serverless Applications - DevDay Austin 2017
Building CICD Pipelines for Serverless Applications - DevDay Austin 2017
 

Último

%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
+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
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
chiefasafspells
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
VictoriaMetrics
 

Último (20)

WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
+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...
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
%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
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
Large-scale Logging Made Easy: Meetup at Deutsche Bank 2024
 

Serverless Architecture

  • 2. ( … ) Serverless Serverless?
  • 3. Not having to think about servers Serverless is
  • 4. • BaaS (Backend as a Service) • FaaS (Function as a Service) Serverless
  • 5. Serverless was 1st used to describe applications that significantly or fully depend on 3rd party applications / services (‘in the cloud’) to manage server-side logic and state. BaaS
  • 7. • Analytics • Cloud Messaging • Authentication • Realtime Database • Cloud Storage • Notification BaaS : Firebase
  • 9. Serverless can also mean applications where some amount of server-side logic is still written by the application developer but unlike traditional architectures is run in stateless compute containers that are event- triggered, ephemeral(may only last for one invocation), and fully managed by a 3rd party. FaaS
  • 10. running back end code without managing your own server systems or your own server applications. FaaS
  • 11. FaaS
  • 16. Applications / Services A lightweight, event-based, asynchronous compute solution that allows you to create small, single- purpose functions that respond to cloud events without the need to manage a server or a runtime environment.
  • 17. Infrastructure • Fully-managed by vendor • Without managing server system / applications • Functions • AWS Lambda: JS, Python, JVM lang, C# • Deploy • BYOC: bring your own code. ZIP or code in console • Scaling • Request based automatically • Trigger by events • Defined by vendors: eg AWS S3, CloudWatch, Message Queue • Http/s requests: eg. API Gateway, Webtask
  • 19. Architecture • Stateless Function • API gateway • Event-driven Architecture
  • 20. Stateless functions : 1st version
  • 21. Stateless functions : 1st version All 3 operations are scaled based on the overall load across them, and state is transferred in-memory, creating complication around caching and/or routing sessions to instances in order to maintain state.
  • 22. Stateless functions : 2nd version
  • 23. Stateless functions : 2nd version Each function scales individually and as-needed. All state is in DynamoDB so there is no cluster coordination of any sort, at the cost of a small increase in latency.
  • 24. Stateless functions • Processes are stateless and share-nothing • Any data that needs to persist must be stored in a stateful backing service, typically a DB.
  • 25. Stateless functions - Benefits • Reduce operational costs • Infrastructure cost: without pay as it is idle • People cost: focus on function development • Reduce development cost • BaaS: eg. Firebase, Auth0 • Spend development time on business-specific code • Maximize iterations • Minimize dependences: IT Ops, DBAs • Easier Operational management • Scaling benefits of FaaS • Reduced packaging complexity
  • 26. API Gateway • HTTP server where routes / endpoints are defined in configuration and each route is associated with a FaaS function. • perform authentication, input validation, response code mapping, etc.
  • 27. API Gateway • Encapsulates the internal structure of the application. • Reduces the number of round trips between the client and application. • Simplifies the client
  • 28. Event Driven Architecture • Scale: it enables the implementation of transactions that span multiple services and provide eventual consistency. • Materialized view: It enables an application to maintain a data store that contains the result of a query. It may be a join result or a summary using an aggregate function.
  • 30. 1. fabric • 인프라 리소스가 환경에 따라 빠르게 동적으로 구성, 혹은 재배 치될 수 있도록 최적화된 서버, 네트워크, 스토리지의 묶음. • RTI(Real-Time Infrastruncture) • 개발자가 운영 신경 쓰지 않고 개발 코딩 자체에 집중. 2. framework • 이벤트 기반 프로그래밍 모델에 기반한 코드 생성. • 대량 입출력 애플리케이션(ex : IoT)에 적합 • 작성된 코드의 인과를 관리. 3. function layer • 애플리케이션 조합/빌드를 위한 패키지, 패턴, 참조 아키텍처 제공. • 원하는 출력을 얻기 위한 로직과 인텔리전스가 있는 곳. Serverless Architecture
  • 32. Cloud 비교(1) Category AWS Lambda Azure Functions Google Cloud Functions Version Production ready Preview - Beta Closed Alpha Support Lang Nodejs, Python, Java, C# Nodejs, Python, PHP, F#, C# Javascript Dependency Management Compile all external packages and zip the source code Using package.json – node.js project.json – F#, C# Using package.json Event Source S3, DynamoDB Kinesis Streams SNS, SES Cognito Cloud Formation Cloud Watch Code Commit Scheduled Events Config Echo Alexa API Gateway Bindings/Triggers Scheduler Http(webhook) Azure Storage Events Hubs Queues, Tables DocumentDB(No-sql) Notification Hub Twilio HTTP functions : Http Triggers Webhooks (drive, gmail, calend ar) Background functions : Cloud Pub/Sub, Cloud Storage Pub/Sub : Cloud Logging Gmail, Twilio Architecture On top of Linux Memory allocated per function On top of Windows Memory allocated per app service Not Specified
  • 33. Cloud 비교(2) Category AWS Lambda Azure Functions Google Cloud Functions Persistent Storage No persistent storage Completely Stateless Env variables can be set in App services which can be used in functions. Not Specified HTTP Endpoint API Gateway HTTP Webhooks HTTP Trigger Maximum Execution Time per request 300 seconds 300 sec max runtime per func tion invocation No limit Deployment Zip upload to Lambda/s3, Server less Framework Git, dropbox, visual studio, One drive, Kudu Console Zip upload, Cloud Storage, Cloud Source repositories, Git Maximum no. of Functions No limit Not Specified 20 functions per project Concurrent executions 100 parallel executions per account per region but users can increase it No limit No limit Pricing Request Charges : $0.20 / 1M requests Compute Charges : $0.00001667 / GB-s Request Charges : $0.20 / 1M requests Compute Charges : $0. 000008 / GB-s Unknown until Open beta Concurrent Executions 100 parallel Executions, but Can be increased 10 instances which is several 100 executions Not Specified
  • 34. Reference • Serverless: The next step in cloud computing’s evolution • http://netformation.com/your-it-reality/serverless-the-next-step- in-cloud-computings-evolution • (번역) 서버리스 아키텍처 • http://blog.aliencube.org/ko/2016/06/23/serverless- architectures/ • Serverless by Young Yang (Slideshare) • https://www.slideshare.net/young.yang/serverless- 73008636Reduced packaging complexity • 기타 볼만한 … • Technical Introduction to AWS Lambda - Serverless Compute on AWS • https://www.youtube.com/watch?v=QzipnZzAQEk • 개발자들이 말하는 AWS 기반 ‘서버 없는 아키텍처’ • https://aws.amazon.com/ko/blogs/korea/serverless- architecture-by-korean-developers/