SlideShare a Scribd company logo
The Future of
Serverless is STATE!
Ryan Knight - Grand Cloud
@knight_cloud
Limited View of
Serverless Today
What is Serverless Today?
● Fully Managed Services - from application run times to
databases to security
● Offloading Server Management Tasks to the Cloud
Provider
● Focused on ease of operation and development
Current Value of Serverless
● Goes beyond ease of running and deploying an application
● Value in Security with the “least-privilege approach”
○ I.e. function is only given permission to talk to a single
database or service
○ Isolates blast radius to that limited set of services
● Netflix utilizes a servless model to fill the “through” - i.e. run
background jobs like building ML models when resource
utilization is low / off-peak
● GraalVM optimizing cold starts and image size
Example of Serverless - Knative + Tekton
● Building Blocks to simplify deploying and running functions
on Kubernetes and Istio (or any L7 Load Balancer)
● Git Source -> Container -> Deploy -> Run -> Manage
● Auto Scaling / Scale to 0
● Load balancing and request routing to efficiently utilize
resources
● Monitoring to make sure the service is still running well.
● Migration to new instances as they become available.
● Downsides - YAML
Focus on both new economic
models and ease of development
and operations
What should serverless be?
Beyond Today’s Serverless
● We need a better name - not about serverless or even the
abstraction over servers.
● Serverless about a model that matches supply with
demand - James Ward
Berkeley View on Serverless Computing
● Decoupled computation and storage AND computation and
storage are also provisioned and priced independently
● Executing code without managing resource allocation
● Paying in proportion to resources used instead of for
resources allocated
Cloud Programming Simplified: A Berkeley View on Serverless
Computing
Achilles Heel of
Serverless
Challenges in True Serverless
● Almost impossible to auto scale data store
● Pricing model of many back-end services doesn’t match
pricing model of application runtimes
Where is serverless userful today?
● Parallel processing tasks—invoked on demand & intermittently,
● Low traffic applications—enterprise IT services, and spiky workloads
● Stateless web applications—serving static content form S3 (or similar)
● Orchestration functions—integration/coordination of calls to third-party
services
● Composing chains of functions—stateless workflow management,
connected via data dependencies
● Job scheduling—CRON jobs, triggers, etc.
Serverless has become
anonymous with
Stateless Functions
Common Limitation of Serverless?
● Functions are stateless, ephemeral, short-lived: expensive to lose
computational context & rehydrate
● Durable state is always “somewhere else”
● No co-location of state and processing
● No direct addressability—all communication over external storage
● Limited options for managing & coordinating distributed state
● Limited options for modelling data consistency guarantees
Primary Limitation?
NO
STATE!
We need Stateful
Serverless!
Abstract over State
● Similar to how Spark Abstracts State
● Currently we abstract over computing resources and
communication with Kubernetes and Istio
● Future of Serverless will be Abstracting over State
● State will be automatically managed on IN and OUT
● State Managed by a Framework
● Monitor state management for automation
Traditional CRUD
Database Models won’t
work
Traditional CRUD Database Access Won’t Work
● Difficult to Impossible to manage DB Connection Pools
● Unconstrained DB access => hard to automate operations
● Hard to understand the intention of each access.
● Is this operation a read or write?
● Can it be cached?
● Can consistency be relaxed, or strong consistency needed?
● Can operations proceed during partitions/failures?
Better Models for Distributed State
● CRDTs
● Counters
● Registers
● Sets
● Maps
● Event Sourcing
● Append only
Logging
What are CRDTs?
Data types that guarantee convergence to the
same value in spite of network delays, partitions
and message reordering
http://book.mixu.net/distsys/eventual.html
CRDT’s Provide a Distinct View of Data
● Not just a place to dump values like a traditional Data Store
● Abstraction of the data type
● Data Structure that tells how to build the value
CRDT Convergent Operations
● Associative (a+(b+c)=(a+b)+c) - grouping doesn't matter
● Commutative (a+b=b+a) - order of application doesn't
matter
● Idempotent (a+a=a) - duplication does not matter
Value of CRDTs in Distributed Systems
● Replicate data across the network without any
synchronization mechanism
● Avoid distributed locks, two-phase commit,
● etc.
● Consistency without Consensus
Event Sourcing in Stateful Serverless
● Event Sourcing is an ideal model for Serverless Computing
● Event Log tracks which events have been applied and what
is the current state
● Snapshotting to avoid replay of entire event history
State needs to be ACID 2.0
● Associative
● Commutative
● Idempotent
● Distributed
Depends on Shape of Data and Level of Consistency
Primary Models for Stateful Service Architecture
● Actor Based Model
● Stateful Entites
● Workflow Paradigm
Future is Stateful
Serverless
Azure Durable Functions
● https://docs.microsoft.com/en-us/azure/azure-functions/durab
le/durable-functions-overview
● Executed using Azure Function Runtime
● Built using Durable Task Framework
● Maintain execution state via Event Sourcing
● State is backed by Azure Store Tables
● Uses an Actor Like Programming Model
Lightbend Cloud State
● https://cloudstate.io/
● Built on top of Akka Actors with Actor Persistence and
Clustering
● Leverages familiar paradigm of Actor Programming Model
Cloud State - Low-Latency & High Throughput
● Managing in-memory durable session state across
individual requests
● Low-latency serving of dynamic in-memory models
● Real-time stream processing
● Distributed resilient transactional workflows
● Shared collaborative workspaces
● Leader election, counting, voting
Enables new Programming Models
The promise of Stateful Serverless is revolutionary and will
grow to dominate the future of Cloud - Jonas Bonér
Resources
● Lightbend Cloud State
● Azure Durable Functions
● Flink Stateful Functions
● Microsoft Dapr
● Towards Stateful Serverless - Jonas Bonér
● Akka Distributed Data and CRDTs - Ryan Knight
Thank you!
Ryan Knight - Grand Cloud
@knight_cloud

More Related Content

What's hot

MongoDB and Machine Learning with Flowable
MongoDB and Machine Learning with FlowableMongoDB and Machine Learning with Flowable
MongoDB and Machine Learning with Flowable
Flowable
 
Nordstrom's Event-Sourced Architecture and Kafka-as-a-Service | Adam Weyant a...
Nordstrom's Event-Sourced Architecture and Kafka-as-a-Service | Adam Weyant a...Nordstrom's Event-Sourced Architecture and Kafka-as-a-Service | Adam Weyant a...
Nordstrom's Event-Sourced Architecture and Kafka-as-a-Service | Adam Weyant a...
HostedbyConfluent
 
Bank of China (HK) Tech Talk 1: Dive Into Apache Kafka
Bank of China (HK) Tech Talk 1: Dive Into Apache KafkaBank of China (HK) Tech Talk 1: Dive Into Apache Kafka
Bank of China (HK) Tech Talk 1: Dive Into Apache Kafka
confluent
 
Migrating from One Cloud Provider to Another (Without Losing Your Data or You...
Migrating from One Cloud Provider to Another (Without Losing Your Data or You...Migrating from One Cloud Provider to Another (Without Losing Your Data or You...
Migrating from One Cloud Provider to Another (Without Losing Your Data or You...
HostedbyConfluent
 
Introduction to Apache Kafka and Confluent... and why they matter!
Introduction to Apache Kafka and Confluent... and why they matter!Introduction to Apache Kafka and Confluent... and why they matter!
Introduction to Apache Kafka and Confluent... and why they matter!
Paolo Castagna
 
Event & Data Mesh as a Service: Industrializing Microservices in the Enterpri...
Event & Data Mesh as a Service: Industrializing Microservices in the Enterpri...Event & Data Mesh as a Service: Industrializing Microservices in the Enterpri...
Event & Data Mesh as a Service: Industrializing Microservices in the Enterpri...
HostedbyConfluent
 
3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud
3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud
3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud
Mathieu Chauvin
 
Samza tech talk_2015 - strata
Samza tech talk_2015 - strataSamza tech talk_2015 - strata
Samza tech talk_2015 - strata
Yi Pan
 
Column and hadoop
Column and hadoopColumn and hadoop
Column and hadoop
Alex Jiang
 
Event Driven Architectures with Apache Kafka
Event Driven Architectures with Apache KafkaEvent Driven Architectures with Apache Kafka
Event Driven Architectures with Apache Kafka
Matt Masuda
 
SingleStore & Kafka: Better Together to Power Modern Real-Time Data Architect...
SingleStore & Kafka: Better Together to Power Modern Real-Time Data Architect...SingleStore & Kafka: Better Together to Power Modern Real-Time Data Architect...
SingleStore & Kafka: Better Together to Power Modern Real-Time Data Architect...
HostedbyConfluent
 
Maximize the Business Value of Machine Learning and Data Science with Kafka (...
Maximize the Business Value of Machine Learning and Data Science with Kafka (...Maximize the Business Value of Machine Learning and Data Science with Kafka (...
Maximize the Business Value of Machine Learning and Data Science with Kafka (...
confluent
 
Keynote: Jay Kreps, Confluent | Kafka ♥ Cloud | Kafka Summit 2020
Keynote: Jay Kreps, Confluent | Kafka ♥ Cloud | Kafka Summit 2020Keynote: Jay Kreps, Confluent | Kafka ♥ Cloud | Kafka Summit 2020
Keynote: Jay Kreps, Confluent | Kafka ♥ Cloud | Kafka Summit 2020
confluent
 
How to use Standard SQL over Kafka: From the basics to advanced use cases | F...
How to use Standard SQL over Kafka: From the basics to advanced use cases | F...How to use Standard SQL over Kafka: From the basics to advanced use cases | F...
How to use Standard SQL over Kafka: From the basics to advanced use cases | F...
HostedbyConfluent
 
RealTime Recommendations @Netflix - Spark
RealTime Recommendations @Netflix - SparkRealTime Recommendations @Netflix - Spark
RealTime Recommendations @Netflix - Spark
Nitin S
 
SAIS2018 - Fact Store At Netflix Scale
SAIS2018 - Fact Store At Netflix ScaleSAIS2018 - Fact Store At Netflix Scale
SAIS2018 - Fact Store At Netflix Scale
Nitin S
 
Creating an Elastic Platform Using Kafka and Microservices in OpenShift
Creating an Elastic Platform Using Kafka and Microservices in OpenShift Creating an Elastic Platform Using Kafka and Microservices in OpenShift
Creating an Elastic Platform Using Kafka and Microservices in OpenShift
confluent
 
How to build an event driven architecture with kafka and kafka connect
How to build an event driven architecture with kafka and kafka connectHow to build an event driven architecture with kafka and kafka connect
How to build an event driven architecture with kafka and kafka connect
Loi Nguyen
 
How a Data Mesh is Driving our Platform | Trey Hicks, Gloo
How a Data Mesh is Driving our Platform | Trey Hicks, GlooHow a Data Mesh is Driving our Platform | Trey Hicks, Gloo
How a Data Mesh is Driving our Platform | Trey Hicks, Gloo
HostedbyConfluent
 

What's hot (20)

MongoDB and Machine Learning with Flowable
MongoDB and Machine Learning with FlowableMongoDB and Machine Learning with Flowable
MongoDB and Machine Learning with Flowable
 
Nordstrom's Event-Sourced Architecture and Kafka-as-a-Service | Adam Weyant a...
Nordstrom's Event-Sourced Architecture and Kafka-as-a-Service | Adam Weyant a...Nordstrom's Event-Sourced Architecture and Kafka-as-a-Service | Adam Weyant a...
Nordstrom's Event-Sourced Architecture and Kafka-as-a-Service | Adam Weyant a...
 
Bank of China (HK) Tech Talk 1: Dive Into Apache Kafka
Bank of China (HK) Tech Talk 1: Dive Into Apache KafkaBank of China (HK) Tech Talk 1: Dive Into Apache Kafka
Bank of China (HK) Tech Talk 1: Dive Into Apache Kafka
 
Migrating from One Cloud Provider to Another (Without Losing Your Data or You...
Migrating from One Cloud Provider to Another (Without Losing Your Data or You...Migrating from One Cloud Provider to Another (Without Losing Your Data or You...
Migrating from One Cloud Provider to Another (Without Losing Your Data or You...
 
Introduction to Apache Kafka and Confluent... and why they matter!
Introduction to Apache Kafka and Confluent... and why they matter!Introduction to Apache Kafka and Confluent... and why they matter!
Introduction to Apache Kafka and Confluent... and why they matter!
 
Event & Data Mesh as a Service: Industrializing Microservices in the Enterpri...
Event & Data Mesh as a Service: Industrializing Microservices in the Enterpri...Event & Data Mesh as a Service: Industrializing Microservices in the Enterpri...
Event & Data Mesh as a Service: Industrializing Microservices in the Enterpri...
 
3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud
3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud
3/18/15 Billing&Payments Eng Meetup II - Payments Processing in the Cloud
 
Samza tech talk_2015 - strata
Samza tech talk_2015 - strataSamza tech talk_2015 - strata
Samza tech talk_2015 - strata
 
Column and hadoop
Column and hadoopColumn and hadoop
Column and hadoop
 
Event Driven Architectures with Apache Kafka
Event Driven Architectures with Apache KafkaEvent Driven Architectures with Apache Kafka
Event Driven Architectures with Apache Kafka
 
SingleStore & Kafka: Better Together to Power Modern Real-Time Data Architect...
SingleStore & Kafka: Better Together to Power Modern Real-Time Data Architect...SingleStore & Kafka: Better Together to Power Modern Real-Time Data Architect...
SingleStore & Kafka: Better Together to Power Modern Real-Time Data Architect...
 
trading analyser
trading analysertrading analyser
trading analyser
 
Maximize the Business Value of Machine Learning and Data Science with Kafka (...
Maximize the Business Value of Machine Learning and Data Science with Kafka (...Maximize the Business Value of Machine Learning and Data Science with Kafka (...
Maximize the Business Value of Machine Learning and Data Science with Kafka (...
 
Keynote: Jay Kreps, Confluent | Kafka ♥ Cloud | Kafka Summit 2020
Keynote: Jay Kreps, Confluent | Kafka ♥ Cloud | Kafka Summit 2020Keynote: Jay Kreps, Confluent | Kafka ♥ Cloud | Kafka Summit 2020
Keynote: Jay Kreps, Confluent | Kafka ♥ Cloud | Kafka Summit 2020
 
How to use Standard SQL over Kafka: From the basics to advanced use cases | F...
How to use Standard SQL over Kafka: From the basics to advanced use cases | F...How to use Standard SQL over Kafka: From the basics to advanced use cases | F...
How to use Standard SQL over Kafka: From the basics to advanced use cases | F...
 
RealTime Recommendations @Netflix - Spark
RealTime Recommendations @Netflix - SparkRealTime Recommendations @Netflix - Spark
RealTime Recommendations @Netflix - Spark
 
SAIS2018 - Fact Store At Netflix Scale
SAIS2018 - Fact Store At Netflix ScaleSAIS2018 - Fact Store At Netflix Scale
SAIS2018 - Fact Store At Netflix Scale
 
Creating an Elastic Platform Using Kafka and Microservices in OpenShift
Creating an Elastic Platform Using Kafka and Microservices in OpenShift Creating an Elastic Platform Using Kafka and Microservices in OpenShift
Creating an Elastic Platform Using Kafka and Microservices in OpenShift
 
How to build an event driven architecture with kafka and kafka connect
How to build an event driven architecture with kafka and kafka connectHow to build an event driven architecture with kafka and kafka connect
How to build an event driven architecture with kafka and kafka connect
 
How a Data Mesh is Driving our Platform | Trey Hicks, Gloo
How a Data Mesh is Driving our Platform | Trey Hicks, GlooHow a Data Mesh is Driving our Platform | Trey Hicks, Gloo
How a Data Mesh is Driving our Platform | Trey Hicks, Gloo
 

Similar to The future of serverless is STATE!

Cloud Architecture best practices
Cloud Architecture best practicesCloud Architecture best practices
Cloud Architecture best practices
Omid Vahdaty
 
Software Architecture for Cloud Infrastructure
Software Architecture for Cloud InfrastructureSoftware Architecture for Cloud Infrastructure
Software Architecture for Cloud Infrastructure
Tapio Rautonen
 
'How to build efficient backend based on microservice architecture' by Anton ...
'How to build efficient backend based on microservice architecture' by Anton ...'How to build efficient backend based on microservice architecture' by Anton ...
'How to build efficient backend based on microservice architecture' by Anton ...
OdessaJS Conf
 
Microservice Architecuture with Event Sourcing @ Sydney JVM Meetup
Microservice Architecuture with Event Sourcing @ Sydney JVM MeetupMicroservice Architecuture with Event Sourcing @ Sydney JVM Meetup
Microservice Architecuture with Event Sourcing @ Sydney JVM Meetup
Boris Kravtsov
 
Exposing Lambda Functions as Managed APIs
Exposing Lambda Functions as Managed APIsExposing Lambda Functions as Managed APIs
Exposing Lambda Functions as Managed APIs
WSO2
 
Scalable complex event processing on samza @UBER
Scalable complex event processing on samza @UBERScalable complex event processing on samza @UBER
Scalable complex event processing on samza @UBER
Shuyi Chen
 
Skillenza Build with Serverless Challenge - Advanced Serverless Concepts
Skillenza Build with Serverless Challenge -  Advanced Serverless ConceptsSkillenza Build with Serverless Challenge -  Advanced Serverless Concepts
Skillenza Build with Serverless Challenge - Advanced Serverless Concepts
Dhaval Nagar
 
[WSO2Con Asia 2018] Architecting for Container-native Environments
[WSO2Con Asia 2018] Architecting for Container-native Environments[WSO2Con Asia 2018] Architecting for Container-native Environments
[WSO2Con Asia 2018] Architecting for Container-native Environments
WSO2
 
Introduction to amazon web services for developers
Introduction to amazon web services for developersIntroduction to amazon web services for developers
Introduction to amazon web services for developers
Ciklum Ukraine
 
Big Data on Cloud Native Platform
Big Data on Cloud Native PlatformBig Data on Cloud Native Platform
Big Data on Cloud Native Platform
Sunil Govindan
 
Big Data on Cloud Native Platform
Big Data on Cloud Native PlatformBig Data on Cloud Native Platform
Big Data on Cloud Native Platform
Sunil Govindan
 
Kafka Summit NYC 2017 - Scalable Real-Time Complex Event Processing @ Uber
Kafka Summit NYC 2017 - Scalable Real-Time Complex Event Processing @ UberKafka Summit NYC 2017 - Scalable Real-Time Complex Event Processing @ Uber
Kafka Summit NYC 2017 - Scalable Real-Time Complex Event Processing @ Uber
confluent
 
Public Cloud Workshop
Public Cloud WorkshopPublic Cloud Workshop
Public Cloud Workshop
Amer Ather
 
Automating using Ansible
Automating using AnsibleAutomating using Ansible
Automating using Ansible
Alok Patra
 
AWS Canberra WWPS Summit 2013 - AWS for Web Applications
AWS Canberra WWPS Summit 2013 - AWS for Web ApplicationsAWS Canberra WWPS Summit 2013 - AWS for Web Applications
AWS Canberra WWPS Summit 2013 - AWS for Web Applications
Amazon Web Services
 
Ghost Environment
Ghost EnvironmentGhost Environment
Ghost Environment
PratipD
 
Crio.do - Deployment on AWS Masterclass
Crio.do - Deployment on AWS MasterclassCrio.do - Deployment on AWS Masterclass
Crio.do - Deployment on AWS Masterclass
Dhaval Nagar
 
Cloud computing benefits
Cloud computing benefitsCloud computing benefits
Cloud computing benefits
Madhukumar Vattipulusu
 
Cloud Migration Strategy and Best Practices
Cloud Migration Strategy and Best PracticesCloud Migration Strategy and Best Practices
Cloud Migration Strategy and Best Practices
QBurst
 
Introdcution to Azure
Introdcution to AzureIntrodcution to Azure
Introdcution to Azure
Omid Vahdaty
 

Similar to The future of serverless is STATE! (20)

Cloud Architecture best practices
Cloud Architecture best practicesCloud Architecture best practices
Cloud Architecture best practices
 
Software Architecture for Cloud Infrastructure
Software Architecture for Cloud InfrastructureSoftware Architecture for Cloud Infrastructure
Software Architecture for Cloud Infrastructure
 
'How to build efficient backend based on microservice architecture' by Anton ...
'How to build efficient backend based on microservice architecture' by Anton ...'How to build efficient backend based on microservice architecture' by Anton ...
'How to build efficient backend based on microservice architecture' by Anton ...
 
Microservice Architecuture with Event Sourcing @ Sydney JVM Meetup
Microservice Architecuture with Event Sourcing @ Sydney JVM MeetupMicroservice Architecuture with Event Sourcing @ Sydney JVM Meetup
Microservice Architecuture with Event Sourcing @ Sydney JVM Meetup
 
Exposing Lambda Functions as Managed APIs
Exposing Lambda Functions as Managed APIsExposing Lambda Functions as Managed APIs
Exposing Lambda Functions as Managed APIs
 
Scalable complex event processing on samza @UBER
Scalable complex event processing on samza @UBERScalable complex event processing on samza @UBER
Scalable complex event processing on samza @UBER
 
Skillenza Build with Serverless Challenge - Advanced Serverless Concepts
Skillenza Build with Serverless Challenge -  Advanced Serverless ConceptsSkillenza Build with Serverless Challenge -  Advanced Serverless Concepts
Skillenza Build with Serverless Challenge - Advanced Serverless Concepts
 
[WSO2Con Asia 2018] Architecting for Container-native Environments
[WSO2Con Asia 2018] Architecting for Container-native Environments[WSO2Con Asia 2018] Architecting for Container-native Environments
[WSO2Con Asia 2018] Architecting for Container-native Environments
 
Introduction to amazon web services for developers
Introduction to amazon web services for developersIntroduction to amazon web services for developers
Introduction to amazon web services for developers
 
Big Data on Cloud Native Platform
Big Data on Cloud Native PlatformBig Data on Cloud Native Platform
Big Data on Cloud Native Platform
 
Big Data on Cloud Native Platform
Big Data on Cloud Native PlatformBig Data on Cloud Native Platform
Big Data on Cloud Native Platform
 
Kafka Summit NYC 2017 - Scalable Real-Time Complex Event Processing @ Uber
Kafka Summit NYC 2017 - Scalable Real-Time Complex Event Processing @ UberKafka Summit NYC 2017 - Scalable Real-Time Complex Event Processing @ Uber
Kafka Summit NYC 2017 - Scalable Real-Time Complex Event Processing @ Uber
 
Public Cloud Workshop
Public Cloud WorkshopPublic Cloud Workshop
Public Cloud Workshop
 
Automating using Ansible
Automating using AnsibleAutomating using Ansible
Automating using Ansible
 
AWS Canberra WWPS Summit 2013 - AWS for Web Applications
AWS Canberra WWPS Summit 2013 - AWS for Web ApplicationsAWS Canberra WWPS Summit 2013 - AWS for Web Applications
AWS Canberra WWPS Summit 2013 - AWS for Web Applications
 
Ghost Environment
Ghost EnvironmentGhost Environment
Ghost Environment
 
Crio.do - Deployment on AWS Masterclass
Crio.do - Deployment on AWS MasterclassCrio.do - Deployment on AWS Masterclass
Crio.do - Deployment on AWS Masterclass
 
Cloud computing benefits
Cloud computing benefitsCloud computing benefits
Cloud computing benefits
 
Cloud Migration Strategy and Best Practices
Cloud Migration Strategy and Best PracticesCloud Migration Strategy and Best Practices
Cloud Migration Strategy and Best Practices
 
Introdcution to Azure
Introdcution to AzureIntrodcution to Azure
Introdcution to Azure
 

Recently uploaded

UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 

Recently uploaded (20)

UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 

The future of serverless is STATE!

  • 1. The Future of Serverless is STATE! Ryan Knight - Grand Cloud @knight_cloud
  • 3. What is Serverless Today? ● Fully Managed Services - from application run times to databases to security ● Offloading Server Management Tasks to the Cloud Provider ● Focused on ease of operation and development
  • 4. Current Value of Serverless ● Goes beyond ease of running and deploying an application ● Value in Security with the “least-privilege approach” ○ I.e. function is only given permission to talk to a single database or service ○ Isolates blast radius to that limited set of services ● Netflix utilizes a servless model to fill the “through” - i.e. run background jobs like building ML models when resource utilization is low / off-peak ● GraalVM optimizing cold starts and image size
  • 5. Example of Serverless - Knative + Tekton ● Building Blocks to simplify deploying and running functions on Kubernetes and Istio (or any L7 Load Balancer) ● Git Source -> Container -> Deploy -> Run -> Manage ● Auto Scaling / Scale to 0 ● Load balancing and request routing to efficiently utilize resources ● Monitoring to make sure the service is still running well. ● Migration to new instances as they become available. ● Downsides - YAML
  • 6. Focus on both new economic models and ease of development and operations What should serverless be?
  • 7. Beyond Today’s Serverless ● We need a better name - not about serverless or even the abstraction over servers. ● Serverless about a model that matches supply with demand - James Ward
  • 8. Berkeley View on Serverless Computing ● Decoupled computation and storage AND computation and storage are also provisioned and priced independently ● Executing code without managing resource allocation ● Paying in proportion to resources used instead of for resources allocated Cloud Programming Simplified: A Berkeley View on Serverless Computing
  • 10. Challenges in True Serverless ● Almost impossible to auto scale data store ● Pricing model of many back-end services doesn’t match pricing model of application runtimes
  • 11. Where is serverless userful today? ● Parallel processing tasks—invoked on demand & intermittently, ● Low traffic applications—enterprise IT services, and spiky workloads ● Stateless web applications—serving static content form S3 (or similar) ● Orchestration functions—integration/coordination of calls to third-party services ● Composing chains of functions—stateless workflow management, connected via data dependencies ● Job scheduling—CRON jobs, triggers, etc.
  • 12. Serverless has become anonymous with Stateless Functions
  • 13. Common Limitation of Serverless? ● Functions are stateless, ephemeral, short-lived: expensive to lose computational context & rehydrate ● Durable state is always “somewhere else” ● No co-location of state and processing ● No direct addressability—all communication over external storage ● Limited options for managing & coordinating distributed state ● Limited options for modelling data consistency guarantees
  • 16. Abstract over State ● Similar to how Spark Abstracts State ● Currently we abstract over computing resources and communication with Kubernetes and Istio ● Future of Serverless will be Abstracting over State ● State will be automatically managed on IN and OUT ● State Managed by a Framework ● Monitor state management for automation
  • 18. Traditional CRUD Database Access Won’t Work ● Difficult to Impossible to manage DB Connection Pools ● Unconstrained DB access => hard to automate operations ● Hard to understand the intention of each access. ● Is this operation a read or write? ● Can it be cached? ● Can consistency be relaxed, or strong consistency needed? ● Can operations proceed during partitions/failures?
  • 19. Better Models for Distributed State ● CRDTs ● Counters ● Registers ● Sets ● Maps ● Event Sourcing ● Append only Logging
  • 20. What are CRDTs? Data types that guarantee convergence to the same value in spite of network delays, partitions and message reordering http://book.mixu.net/distsys/eventual.html
  • 21. CRDT’s Provide a Distinct View of Data ● Not just a place to dump values like a traditional Data Store ● Abstraction of the data type ● Data Structure that tells how to build the value
  • 22. CRDT Convergent Operations ● Associative (a+(b+c)=(a+b)+c) - grouping doesn't matter ● Commutative (a+b=b+a) - order of application doesn't matter ● Idempotent (a+a=a) - duplication does not matter
  • 23. Value of CRDTs in Distributed Systems ● Replicate data across the network without any synchronization mechanism ● Avoid distributed locks, two-phase commit, ● etc. ● Consistency without Consensus
  • 24. Event Sourcing in Stateful Serverless ● Event Sourcing is an ideal model for Serverless Computing ● Event Log tracks which events have been applied and what is the current state ● Snapshotting to avoid replay of entire event history
  • 25. State needs to be ACID 2.0 ● Associative ● Commutative ● Idempotent ● Distributed
  • 26. Depends on Shape of Data and Level of Consistency
  • 27. Primary Models for Stateful Service Architecture ● Actor Based Model ● Stateful Entites ● Workflow Paradigm
  • 29. Azure Durable Functions ● https://docs.microsoft.com/en-us/azure/azure-functions/durab le/durable-functions-overview ● Executed using Azure Function Runtime ● Built using Durable Task Framework ● Maintain execution state via Event Sourcing ● State is backed by Azure Store Tables ● Uses an Actor Like Programming Model
  • 30. Lightbend Cloud State ● https://cloudstate.io/ ● Built on top of Akka Actors with Actor Persistence and Clustering ● Leverages familiar paradigm of Actor Programming Model
  • 31.
  • 32.
  • 33. Cloud State - Low-Latency & High Throughput ● Managing in-memory durable session state across individual requests ● Low-latency serving of dynamic in-memory models ● Real-time stream processing ● Distributed resilient transactional workflows ● Shared collaborative workspaces ● Leader election, counting, voting
  • 34.
  • 35. Enables new Programming Models The promise of Stateful Serverless is revolutionary and will grow to dominate the future of Cloud - Jonas Bonér
  • 36. Resources ● Lightbend Cloud State ● Azure Durable Functions ● Flink Stateful Functions ● Microsoft Dapr ● Towards Stateful Serverless - Jonas Bonér ● Akka Distributed Data and CRDTs - Ryan Knight
  • 37. Thank you! Ryan Knight - Grand Cloud @knight_cloud