SlideShare une entreprise Scribd logo
1  sur  52
Télécharger pour lire hors ligne
Tikal KnowledgeTikal Knowledge
WHAT’S ALL THE FAAS ABOUT?
HAGGAI PHILIP ZAGURY - DEVOPS ARCHITECT
ASSAF GANNON - JAVASCRIPT ARCHITECT
1
FullStack Developers Israel
INTRO - WHO WE ARE
WHO WE ARE ?
▸ Tikal helps ISV’s in Israel & abroad in their technological
challenges.
▸ Our Engineers are Fullstack Developers with expertise in
Backend, DevOps, Frontend & Mobile
▸ We are passionate about technology and specialize in
OpenSource technologies.
▸ Our Tech and Group leaders help establish & enhance existing
software teams with innovative & creative thinking.
https://www.meetup.com/full-stack-developer-il/
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
INTRODUCTION
▸ What all this “talking” Functions, Lambda, Serverless …
▸ Clear the ‘musk’ about Lambda
▸ What is this serverless stuff again ?!
▸ Didn’t we loose that fight to Docker ?
▸ Abstract backend services …
▸ Serverless -> Who am I married too then ?!
3
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
WHAT ALL THIS “TALKING” FUNCTIONS, LAMBDA, SERVERLESS …
4
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
CLEAR THE ‘MUSK’ ABOUT LAMBDA MISCONCEPTIONS
▸ Lambda is Amazon Web Services commercial name for it’s “event-driven,
serverless computing platform” another great way to sell “compute” (and calling it
serverless ;) )
▸ AWS Lambda is named after:
5
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
HERE COME GOOGLE
6
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
HERE COME MICROSOFT
7
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
BASICALLY, A NEW MODEL CONSUMING COMPUTE RESOURCES … WITH A BIG +
Time Days Minuets Seconds Milliseconds
Cost
Agility
Scalability
https://www.slideshare.net/BryanMcAninch/the-faas-and-the-curious-86874211
8
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
FROM SERVERS TO SERVICES = SERVERLESS…
https://www.slideshare.net/BryanMcAninch/the-faas-and-the-curious-86874211
Days Minuets Seconds Milliseconds
9
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
TELL ME SOMETHING I DON’T KNOW !
▸ Time is money
▸ More for less!
▸ Pay as you go …
10
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
FUNCTIONS, FUNCTIONS, FUNCTIONS
▸ We’ve been doing them all along …
▸ So what’s all the (big) fuss about ?
11
FullStack Developers Israel
EVOLUTION
In one word…
WHATS ALL THE FAAS ABOUT ? 12
Tikal Knowledge
THE
HOST
THE
APP
WHATS ALL THE FAAS ABOUT ?
OS -> “APP CONTAINER” -> A CONTAINER
/*
13
Tikal Knowledge
THE
HOST
WHATS ALL THE FAAS ABOUT ?
APP SCALE … (AUTO SCALE TO LIMIT)
THE
HOST
THE
APP
THE
APP
LOAD BALANCER
14
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
WHAT IF ? WE TAKE AWAY THE HOST …
THE
APP
THE
APP
LOAD BALANCER
15
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
WHAT IF ? WE TAKE AWAY THE HOST … AND THE APP
LOAD BALANCER
FUNCTION
FUNCTION
FUNCTION
FUNCTION
FUNCTION
FUNCTION
16
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
WHAT IF ? WE TAKE AWAY THE HOST … AND THE APP
APPLICATION GATEWAY
[ BAAS ]
FUNCTION
FUNCTION
FUNCTION
FUNCTION
FUNCTION
FUNCTION
/{user} -> user function
/{pet} -> pets function
Common Backend Services such as
- Authentication
- Image rendering
- * Messaging
17
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
SO, FUNCTIONS ARE JUST 1/2 OF THE STORY ….
▸ Authentication
▸ Authorization
▸ Databases
▸ Queues
▸ Messaging
▸ …
18
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
WHAT IF ? WE TAKE AWAY THE HOST … AND THE APP
APPLICATION GATEWAY
[ BAAS ]
FUNCTION
FUNCTION
FUNCTION
FUNCTION
FUNCTION
FUNCTION
/{user} -> user function
/{pet} -> pets function
Common Backend Services such as
- Authentication
- Image rendering
- * Messaging
19
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
WHAT IF ? WE TAKE AWAY THE HOST … AND THE APP
APPLICATION GATEWAY
[ BAAS ]
FUNCTION
FUNCTION
FUNCTION
FUNCTION
FUNCTION
FUNCTION
/{user} -> user function
/{pet} -> pets function
Common Backend Services such as
- Authentication
- Image rendering
- * Messaging
20
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
SO FAAS IS THE NEW MICRO-SERVICE !
THE
MONOLITH
> >
FUNCTION
FUNCTION
FUNCTION
21
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
WAIT !, ISN’T “SERVERLESS” PAAS ?
▸ How does this differ from
▸ Heorku
▸ CloudFormation
▸ CloudFoundery …
▸ …
Let’s ask someone who knows a thing or 2 …
22
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
SERVERLESS JUST MEANS “LESS” “SERVERS” …
IaaS Paas Severless SaaS
Application Application Application Application
Data Data Data Data
Runtime Runtime Runtime Runtime
Middleware Middleware Middleware Middleware
OS OS OS OS
Virtualization Virtualization Virtualization Virtualization
Servers Servers Servers Servers
Storage Storage Storage Storage
Network Network Network Network
You need to manage
You consume
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
SERVERLESS PROS
▸ Capacity Management
▸ Pay Per use / As you go
▸ Auto Recovery / Auto healing
▸ Versioning
▸ Centralised Log & Monitoring
▸ A standardised way to:
▸ enforce process isolation
▸ Unify deployment
24
▸ Trigger more functions …
▸ Your billed by the second
▸ If one fails just spin another
▸ Functions are behind a url have /dev /prod /v1 /v2 …
▸ Process is logged / monitored by the “providers watchdog”
▸ A standardised way to:
▸ Every part of your app is isolated
▸ Even deployment either has an endpoint or not …
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
SERVERLESS CONS
▸ Less control on Infra
▸ Vendor lock-in
▸ Learning curve
▸ Services have no state
▸ Vendor differences
▸ Cold Start for JVM’s
▸ Security
25
▸ That’s what you wanted ! Ins't it ?!
▸ Use Frameworks / Kubernetes / Combine …
▸ Like any new tool / framework
▸ Do not rely on API GW’s cache (more BaaS)
▸ Migration has a cost from 1 provider 2 another
▸ “Warming lambda’s” - link
▸ Use a common solution (which integrates with all)
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
WHAT CAN WE FUNCTIONIZE ?
▸ HINT - pretty much anything …
26
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
BUILD SIMPLE APPLICATIONS
▸ Create a full-stack serverless web-app with a single file
https://rea.tech/create-a-full-stack-serverless-web-app-with-a-single-file/
https://github.com/Kalimaha/serverless-guestbook
https://keiran.scot/2017/11/03/going-serverless-with-aws-serverless-user-authentication-part-1/
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
OR COMPLEX ONES …
https://read.acloud.guru/serverless-event-sourcing-at-nordstrom-ea69bd8fb7cc
▸ Step by Step
▸ Monolith to
Serverless
architecture for
“part”s of you
application
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
MANAGING IOT WITH SERVERLESS
▸ Designed to scale
▸ Scalable by design …
▸ Pay as you go …
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
BUILDING CHATBOTS WITH SERVERLESS AND AWS LAMBDA
https://chatbotsmagazine.com/a-serverless-event-driven-architecture-for-chatbots-3095eb40cbb7
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
SERVERLESS -> WHO R WE MARRIED TO ?
▸ Choose from many F**S/B**S providers
▸ Or … Use Frameworks !
31
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
STDLIB
Tikal Knowledge
https://nuclio.io/
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
DATA DRIVEN BASS & FAAS
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
STREAM ALERT
https://medium.com/airbnb-engineering/streamalert-real-time-data-analysis-and-alerting-e8619e3e5043
▸ Airbnb’s serverless
framework.
▸ Scalable to TB’s/hour,
infrastructure deployment is
automated and it’s
▸ Secure by default.
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
SERVERLESS.COM || SERVERLESS JS
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
MANY OPTIONS
https://serverless.com/framework/docs/
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
SERVERLESS -> WHO R WE MARRIED TO ? - YOUR CHOICES !
▸ Choose from many F**S/B**S providers
▸ Or … Use Frameworks !
▸ Or Build your own …
▸ [ we didn’t say Kubernetes yet ;) ]
38
FullStack Developers Israel
WHATS ALL THE FAAS ABOUT ?
CHOICES … MORE CHOICES
▸ Use the cloud all the way
▸ Use the cloud via Framework
▸ Use the cloud via cloud Native
implementations
▸ Mix ’n’ Match …
Tikal Knowledge
UNDER THE HOOD
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
UNDER THE HOOD
Provider’s Monitor
Provider’s Log
Your …
Provider’s Infra
Provider’s Base Images
41
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
DESIGN YOUR OWN CLOUD NATIVE SERVERLESS IMPLEMENTATION
42
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
OPENFAAS || FAAS NETES
▸ Use underlaying docker orchestration engines
such as Swarm or Kubernetes.
▸ Encapsulate functions into containers { just like
cloud providers do }
▸ Infrastructure scaling in<->out done via IaaS auto
scaling capabilities
43
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
OPENFAAS ARCHITECTURE
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
OPENFAAS ARCHITECTURE
Request router
Monitor / Alerts
on Functions
“IaaS Provider”
Build & Execute
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
FUNCTION AS A SERVICE WITH OPENFAAS ON BANZAI CLOUD PIPELINE
https://banzaicloud.com/blog/openfaas/
▸ Use Kubernetes.
▸ Encapsulate
functions into
containers
▸ Infrastructure
scaling in<->out
done via IaaS
auto scaling
capabilities
Tikal Knowledge
WHATS ALL THE FAAS ABOUT ?
COMBINE :: FAAS / KUBELESS
Tikal Knowledge
FullStack Developers Israel
WHATS ALL THE FAAS ABOUT ?
A LITTLE DEMO TO GET US STARTED
FullStack Developers Israel
WHATS ALL THE FAAS ABOUT ?
A LITTLE DEMO TO GET US STARTED
FullStack Developers Israel
WHATS NEXT ?
MORE CLOUD NATIVE SERVERLESS SOLUTIONS
FullStack Developers Israel

Contenu connexe

Tendances

The elements of kubernetes
The elements of kubernetesThe elements of kubernetes
The elements of kubernetes
Aaron Schlesinger
 
Spinnaker VLDB 2011
Spinnaker VLDB 2011Spinnaker VLDB 2011
Spinnaker VLDB 2011
sandeep_tata
 

Tendances (20)

Docker Meetup San Francisco: Radical Agility with Docker & AWS
Docker Meetup San Francisco: Radical Agility with Docker & AWSDocker Meetup San Francisco: Radical Agility with Docker & AWS
Docker Meetup San Francisco: Radical Agility with Docker & AWS
 
Building a Serverless Pipeline
Building a Serverless PipelineBuilding a Serverless Pipeline
Building a Serverless Pipeline
 
Ansible @ Red Hat | December 2015 Ansible Meetup in Melbourne
Ansible @ Red Hat | December 2015 Ansible Meetup in MelbourneAnsible @ Red Hat | December 2015 Ansible Meetup in Melbourne
Ansible @ Red Hat | December 2015 Ansible Meetup in Melbourne
 
Immutable Infrastructure: Rise of the Machine Images
Immutable Infrastructure: Rise of the Machine ImagesImmutable Infrastructure: Rise of the Machine Images
Immutable Infrastructure: Rise of the Machine Images
 
Terraform 101: What's infrastructure as code?
Terraform 101: What's infrastructure as code?Terraform 101: What's infrastructure as code?
Terraform 101: What's infrastructure as code?
 
Kubexperience intro session
Kubexperience intro sessionKubexperience intro session
Kubexperience intro session
 
Docker at Spotify - Dockercon14
Docker at Spotify - Dockercon14Docker at Spotify - Dockercon14
Docker at Spotify - Dockercon14
 
How we scale DroneCi on demand
How we scale DroneCi on demandHow we scale DroneCi on demand
How we scale DroneCi on demand
 
DockerCon EU 2015: Speed Up Deployment: Building a Distributed Docker Registr...
DockerCon EU 2015: Speed Up Deployment: Building a Distributed Docker Registr...DockerCon EU 2015: Speed Up Deployment: Building a Distributed Docker Registr...
DockerCon EU 2015: Speed Up Deployment: Building a Distributed Docker Registr...
 
Wido den hollander cloud stack and ceph
Wido den hollander   cloud stack and cephWido den hollander   cloud stack and ceph
Wido den hollander cloud stack and ceph
 
Immutable infrastructure & Micro Services
Immutable infrastructure & Micro ServicesImmutable infrastructure & Micro Services
Immutable infrastructure & Micro Services
 
Spinnaker - Bay Area AWS Meetup - 20160726
Spinnaker - Bay Area AWS Meetup - 20160726Spinnaker - Bay Area AWS Meetup - 20160726
Spinnaker - Bay Area AWS Meetup - 20160726
 
KNATIVE - DEPLOY, AND MANAGE MODERN CONTAINER-BASED SERVERLESS WORKLOADS
KNATIVE - DEPLOY, AND MANAGE MODERN CONTAINER-BASED SERVERLESS WORKLOADSKNATIVE - DEPLOY, AND MANAGE MODERN CONTAINER-BASED SERVERLESS WORKLOADS
KNATIVE - DEPLOY, AND MANAGE MODERN CONTAINER-BASED SERVERLESS WORKLOADS
 
Large Scale Kubernetes on AWS at Europe's Leading Online Fashion Platform - A...
Large Scale Kubernetes on AWS at Europe's Leading Online Fashion Platform - A...Large Scale Kubernetes on AWS at Europe's Leading Online Fashion Platform - A...
Large Scale Kubernetes on AWS at Europe's Leading Online Fashion Platform - A...
 
The elements of kubernetes
The elements of kubernetesThe elements of kubernetes
The elements of kubernetes
 
Docker @ RelateIQ Presentation
Docker @ RelateIQ PresentationDocker @ RelateIQ Presentation
Docker @ RelateIQ Presentation
 
Kubernetes on AWS
Kubernetes on AWSKubernetes on AWS
Kubernetes on AWS
 
Spinnaker VLDB 2011
Spinnaker VLDB 2011Spinnaker VLDB 2011
Spinnaker VLDB 2011
 
(APP309) Running and Monitoring Docker Containers at Scale | AWS re:Invent 2014
(APP309) Running and Monitoring Docker Containers at Scale | AWS re:Invent 2014(APP309) Running and Monitoring Docker Containers at Scale | AWS re:Invent 2014
(APP309) Running and Monitoring Docker Containers at Scale | AWS re:Invent 2014
 
Hashicorp: Delivering the Tao of DevOps
Hashicorp: Delivering the Tao of DevOpsHashicorp: Delivering the Tao of DevOps
Hashicorp: Delivering the Tao of DevOps
 

Similaire à Whats all the FaaS About

Red hat ansible automation technical deck
Red hat ansible automation technical deckRed hat ansible automation technical deck
Red hat ansible automation technical deck
Juraj Hantak
 

Similaire à Whats all the FaaS About (20)

Improving velocity through abstraction
Improving velocity through abstractionImproving velocity through abstraction
Improving velocity through abstraction
 
Cloud Native: Designing Change-tolerant Software
Cloud Native: Designing Change-tolerant SoftwareCloud Native: Designing Change-tolerant Software
Cloud Native: Designing Change-tolerant Software
 
Nebulaworks Docker Overview 09-22-2015
Nebulaworks Docker Overview 09-22-2015Nebulaworks Docker Overview 09-22-2015
Nebulaworks Docker Overview 09-22-2015
 
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
[Capitole du Libre] #serverless -  mettez-le en oeuvre dans votre entreprise...
 
An introduction to Serverless
An introduction to ServerlessAn introduction to Serverless
An introduction to Serverless
 
Halifax DevOps - Meet-up - July.19 2017
Halifax DevOps - Meet-up - July.19 2017Halifax DevOps - Meet-up - July.19 2017
Halifax DevOps - Meet-up - July.19 2017
 
Openstack - an introduction to the cloud
Openstack - an introduction to the cloudOpenstack - an introduction to the cloud
Openstack - an introduction to the cloud
 
Cloud-native .NET Microservices mit Kubernetes
Cloud-native .NET Microservices mit KubernetesCloud-native .NET Microservices mit Kubernetes
Cloud-native .NET Microservices mit Kubernetes
 
Developing web apps
Developing web appsDeveloping web apps
Developing web apps
 
Red hat ansible automation technical deck
Red hat ansible automation technical deckRed hat ansible automation technical deck
Red hat ansible automation technical deck
 
CakePHP in a containerized CI/CD environment | Cakefest 2017
CakePHP in a containerized CI/CD environment | Cakefest 2017CakePHP in a containerized CI/CD environment | Cakefest 2017
CakePHP in a containerized CI/CD environment | Cakefest 2017
 
Full stack development best practice and toolset
Full stack development best practice and toolsetFull stack development best practice and toolset
Full stack development best practice and toolset
 
Red Hat Summit - Discover the foundations of digital transformation
Red Hat Summit - Discover the foundations of digital transformationRed Hat Summit - Discover the foundations of digital transformation
Red Hat Summit - Discover the foundations of digital transformation
 
Tick
TickTick
Tick
 
Interoperable Clouds and How to Build (or Buy) Them
Interoperable Clouds and How to Build (or Buy) ThemInteroperable Clouds and How to Build (or Buy) Them
Interoperable Clouds and How to Build (or Buy) Them
 
Success Factors for a Mature Microservices Implementation
Success Factors for a Mature Microservices ImplementationSuccess Factors for a Mature Microservices Implementation
Success Factors for a Mature Microservices Implementation
 
The Future of Cloud Innovation, featuring Adrian Cockcroft
The Future of Cloud Innovation, featuring Adrian CockcroftThe Future of Cloud Innovation, featuring Adrian Cockcroft
The Future of Cloud Innovation, featuring Adrian Cockcroft
 
Cloud-native .NET-Microservices mit Kubernetes @BASTAcon
Cloud-native .NET-Microservices mit Kubernetes @BASTAconCloud-native .NET-Microservices mit Kubernetes @BASTAcon
Cloud-native .NET-Microservices mit Kubernetes @BASTAcon
 
Core Concepts
Core ConceptsCore Concepts
Core Concepts
 
At the helm of kubernetes
At the helm of kubernetesAt the helm of kubernetes
At the helm of kubernetes
 

Plus de Haggai Philip Zagury

Tce automation-d4-110102123012-phpapp01
Tce automation-d4-110102123012-phpapp01Tce automation-d4-110102123012-phpapp01
Tce automation-d4-110102123012-phpapp01
Haggai Philip Zagury
 

Plus de Haggai Philip Zagury (14)

DevOpsDays Tel Aviv DEC 2022 | Building A Cloud-Native Platform Brick by Bric...
DevOpsDays Tel Aviv DEC 2022 | Building A Cloud-Native Platform Brick by Bric...DevOpsDays Tel Aviv DEC 2022 | Building A Cloud-Native Platform Brick by Bric...
DevOpsDays Tel Aviv DEC 2022 | Building A Cloud-Native Platform Brick by Bric...
 
Kube Security Shifting left | Scanners & OPA
Kube Security Shifting left | Scanners & OPAKube Security Shifting left | Scanners & OPA
Kube Security Shifting left | Scanners & OPA
 
TechRadarCon 2022 | Have you built your platform yet ?
TechRadarCon 2022 | Have you built your platform yet ?TechRadarCon 2022 | Have you built your platform yet ?
TechRadarCon 2022 | Have you built your platform yet ?
 
Gitlab, GitOps & ArgoCD
Gitlab, GitOps & ArgoCDGitlab, GitOps & ArgoCD
Gitlab, GitOps & ArgoCD
 
Auth experience - vol 1.0
Auth experience  - vol 1.0Auth experience  - vol 1.0
Auth experience - vol 1.0
 
Linux intro
Linux introLinux intro
Linux intro
 
Auth experience
Auth experienceAuth experience
Auth experience
 
Chaos is a ladder !
Chaos is a ladder !Chaos is a ladder !
Chaos is a ladder !
 
Deep Learning - Continuous Operations
Deep Learning - Continuous Operations Deep Learning - Continuous Operations
Deep Learning - Continuous Operations
 
Terraform 101
Terraform 101Terraform 101
Terraform 101
 
Machine Learning - Continuous operations
Machine Learning - Continuous operationsMachine Learning - Continuous operations
Machine Learning - Continuous operations
 
Modern Monitoring [ with Prometheus ]
Modern Monitoring [ with Prometheus ]Modern Monitoring [ with Prometheus ]
Modern Monitoring [ with Prometheus ]
 
Git internals
Git internalsGit internals
Git internals
 
Tce automation-d4-110102123012-phpapp01
Tce automation-d4-110102123012-phpapp01Tce automation-d4-110102123012-phpapp01
Tce automation-d4-110102123012-phpapp01
 

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Dernier (20)

Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Whats all the FaaS About

  • 1. Tikal KnowledgeTikal Knowledge WHAT’S ALL THE FAAS ABOUT? HAGGAI PHILIP ZAGURY - DEVOPS ARCHITECT ASSAF GANNON - JAVASCRIPT ARCHITECT 1
  • 2. FullStack Developers Israel INTRO - WHO WE ARE WHO WE ARE ? ▸ Tikal helps ISV’s in Israel & abroad in their technological challenges. ▸ Our Engineers are Fullstack Developers with expertise in Backend, DevOps, Frontend & Mobile ▸ We are passionate about technology and specialize in OpenSource technologies. ▸ Our Tech and Group leaders help establish & enhance existing software teams with innovative & creative thinking. https://www.meetup.com/full-stack-developer-il/
  • 3. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? INTRODUCTION ▸ What all this “talking” Functions, Lambda, Serverless … ▸ Clear the ‘musk’ about Lambda ▸ What is this serverless stuff again ?! ▸ Didn’t we loose that fight to Docker ? ▸ Abstract backend services … ▸ Serverless -> Who am I married too then ?! 3
  • 4. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? WHAT ALL THIS “TALKING” FUNCTIONS, LAMBDA, SERVERLESS … 4
  • 5. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? CLEAR THE ‘MUSK’ ABOUT LAMBDA MISCONCEPTIONS ▸ Lambda is Amazon Web Services commercial name for it’s “event-driven, serverless computing platform” another great way to sell “compute” (and calling it serverless ;) ) ▸ AWS Lambda is named after: 5
  • 6. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? HERE COME GOOGLE 6
  • 7. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? HERE COME MICROSOFT 7
  • 8. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? BASICALLY, A NEW MODEL CONSUMING COMPUTE RESOURCES … WITH A BIG + Time Days Minuets Seconds Milliseconds Cost Agility Scalability https://www.slideshare.net/BryanMcAninch/the-faas-and-the-curious-86874211 8
  • 9. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? FROM SERVERS TO SERVICES = SERVERLESS… https://www.slideshare.net/BryanMcAninch/the-faas-and-the-curious-86874211 Days Minuets Seconds Milliseconds 9
  • 10. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? TELL ME SOMETHING I DON’T KNOW ! ▸ Time is money ▸ More for less! ▸ Pay as you go … 10
  • 11. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? FUNCTIONS, FUNCTIONS, FUNCTIONS ▸ We’ve been doing them all along … ▸ So what’s all the (big) fuss about ? 11
  • 12. FullStack Developers Israel EVOLUTION In one word… WHATS ALL THE FAAS ABOUT ? 12
  • 13. Tikal Knowledge THE HOST THE APP WHATS ALL THE FAAS ABOUT ? OS -> “APP CONTAINER” -> A CONTAINER /* 13
  • 14. Tikal Knowledge THE HOST WHATS ALL THE FAAS ABOUT ? APP SCALE … (AUTO SCALE TO LIMIT) THE HOST THE APP THE APP LOAD BALANCER 14
  • 15. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? WHAT IF ? WE TAKE AWAY THE HOST … THE APP THE APP LOAD BALANCER 15
  • 16. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? WHAT IF ? WE TAKE AWAY THE HOST … AND THE APP LOAD BALANCER FUNCTION FUNCTION FUNCTION FUNCTION FUNCTION FUNCTION 16
  • 17. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? WHAT IF ? WE TAKE AWAY THE HOST … AND THE APP APPLICATION GATEWAY [ BAAS ] FUNCTION FUNCTION FUNCTION FUNCTION FUNCTION FUNCTION /{user} -> user function /{pet} -> pets function Common Backend Services such as - Authentication - Image rendering - * Messaging 17
  • 18. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? SO, FUNCTIONS ARE JUST 1/2 OF THE STORY …. ▸ Authentication ▸ Authorization ▸ Databases ▸ Queues ▸ Messaging ▸ … 18
  • 19. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? WHAT IF ? WE TAKE AWAY THE HOST … AND THE APP APPLICATION GATEWAY [ BAAS ] FUNCTION FUNCTION FUNCTION FUNCTION FUNCTION FUNCTION /{user} -> user function /{pet} -> pets function Common Backend Services such as - Authentication - Image rendering - * Messaging 19
  • 20. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? WHAT IF ? WE TAKE AWAY THE HOST … AND THE APP APPLICATION GATEWAY [ BAAS ] FUNCTION FUNCTION FUNCTION FUNCTION FUNCTION FUNCTION /{user} -> user function /{pet} -> pets function Common Backend Services such as - Authentication - Image rendering - * Messaging 20
  • 21. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? SO FAAS IS THE NEW MICRO-SERVICE ! THE MONOLITH > > FUNCTION FUNCTION FUNCTION 21
  • 22. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? WAIT !, ISN’T “SERVERLESS” PAAS ? ▸ How does this differ from ▸ Heorku ▸ CloudFormation ▸ CloudFoundery … ▸ … Let’s ask someone who knows a thing or 2 … 22
  • 23. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? SERVERLESS JUST MEANS “LESS” “SERVERS” … IaaS Paas Severless SaaS Application Application Application Application Data Data Data Data Runtime Runtime Runtime Runtime Middleware Middleware Middleware Middleware OS OS OS OS Virtualization Virtualization Virtualization Virtualization Servers Servers Servers Servers Storage Storage Storage Storage Network Network Network Network You need to manage You consume
  • 24. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? SERVERLESS PROS ▸ Capacity Management ▸ Pay Per use / As you go ▸ Auto Recovery / Auto healing ▸ Versioning ▸ Centralised Log & Monitoring ▸ A standardised way to: ▸ enforce process isolation ▸ Unify deployment 24 ▸ Trigger more functions … ▸ Your billed by the second ▸ If one fails just spin another ▸ Functions are behind a url have /dev /prod /v1 /v2 … ▸ Process is logged / monitored by the “providers watchdog” ▸ A standardised way to: ▸ Every part of your app is isolated ▸ Even deployment either has an endpoint or not …
  • 25. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? SERVERLESS CONS ▸ Less control on Infra ▸ Vendor lock-in ▸ Learning curve ▸ Services have no state ▸ Vendor differences ▸ Cold Start for JVM’s ▸ Security 25 ▸ That’s what you wanted ! Ins't it ?! ▸ Use Frameworks / Kubernetes / Combine … ▸ Like any new tool / framework ▸ Do not rely on API GW’s cache (more BaaS) ▸ Migration has a cost from 1 provider 2 another ▸ “Warming lambda’s” - link ▸ Use a common solution (which integrates with all)
  • 26. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? WHAT CAN WE FUNCTIONIZE ? ▸ HINT - pretty much anything … 26
  • 27. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? BUILD SIMPLE APPLICATIONS ▸ Create a full-stack serverless web-app with a single file https://rea.tech/create-a-full-stack-serverless-web-app-with-a-single-file/ https://github.com/Kalimaha/serverless-guestbook https://keiran.scot/2017/11/03/going-serverless-with-aws-serverless-user-authentication-part-1/
  • 28. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? OR COMPLEX ONES … https://read.acloud.guru/serverless-event-sourcing-at-nordstrom-ea69bd8fb7cc ▸ Step by Step ▸ Monolith to Serverless architecture for “part”s of you application
  • 29. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? MANAGING IOT WITH SERVERLESS ▸ Designed to scale ▸ Scalable by design … ▸ Pay as you go …
  • 30. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? BUILDING CHATBOTS WITH SERVERLESS AND AWS LAMBDA https://chatbotsmagazine.com/a-serverless-event-driven-architecture-for-chatbots-3095eb40cbb7
  • 31. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? SERVERLESS -> WHO R WE MARRIED TO ? ▸ Choose from many F**S/B**S providers ▸ Or … Use Frameworks ! 31
  • 32. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? STDLIB
  • 34. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? DATA DRIVEN BASS & FAAS
  • 35. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? STREAM ALERT https://medium.com/airbnb-engineering/streamalert-real-time-data-analysis-and-alerting-e8619e3e5043 ▸ Airbnb’s serverless framework. ▸ Scalable to TB’s/hour, infrastructure deployment is automated and it’s ▸ Secure by default.
  • 36. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? SERVERLESS.COM || SERVERLESS JS
  • 37. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? MANY OPTIONS https://serverless.com/framework/docs/
  • 38. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? SERVERLESS -> WHO R WE MARRIED TO ? - YOUR CHOICES ! ▸ Choose from many F**S/B**S providers ▸ Or … Use Frameworks ! ▸ Or Build your own … ▸ [ we didn’t say Kubernetes yet ;) ] 38
  • 39. FullStack Developers Israel WHATS ALL THE FAAS ABOUT ? CHOICES … MORE CHOICES ▸ Use the cloud all the way ▸ Use the cloud via Framework ▸ Use the cloud via cloud Native implementations ▸ Mix ’n’ Match …
  • 41. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? UNDER THE HOOD Provider’s Monitor Provider’s Log Your … Provider’s Infra Provider’s Base Images 41
  • 42. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? DESIGN YOUR OWN CLOUD NATIVE SERVERLESS IMPLEMENTATION 42
  • 43. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? OPENFAAS || FAAS NETES ▸ Use underlaying docker orchestration engines such as Swarm or Kubernetes. ▸ Encapsulate functions into containers { just like cloud providers do } ▸ Infrastructure scaling in<->out done via IaaS auto scaling capabilities 43
  • 44. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? OPENFAAS ARCHITECTURE
  • 45. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? OPENFAAS ARCHITECTURE Request router Monitor / Alerts on Functions “IaaS Provider” Build & Execute
  • 46. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? FUNCTION AS A SERVICE WITH OPENFAAS ON BANZAI CLOUD PIPELINE https://banzaicloud.com/blog/openfaas/ ▸ Use Kubernetes. ▸ Encapsulate functions into containers ▸ Infrastructure scaling in<->out done via IaaS auto scaling capabilities
  • 47. Tikal Knowledge WHATS ALL THE FAAS ABOUT ? COMBINE :: FAAS / KUBELESS
  • 49. FullStack Developers Israel WHATS ALL THE FAAS ABOUT ? A LITTLE DEMO TO GET US STARTED
  • 50. FullStack Developers Israel WHATS ALL THE FAAS ABOUT ? A LITTLE DEMO TO GET US STARTED
  • 51. FullStack Developers Israel WHATS NEXT ? MORE CLOUD NATIVE SERVERLESS SOLUTIONS