SlideShare une entreprise Scribd logo
1  sur  40
Télécharger pour lire hors ligne
AN EVENTFUL TOUR FROM ENTERPRISE
INTEGRATION TO SERVERLESS
Marius Bogoevici (@mariusbogoevici)
Christian Posta (@christianposta)
9 May, 2018
About Us
Christian Posta
@christianposta
Chief Architect - Red Hat
Marius Bogoevici
@mariusbogoevici
Chief Architect - Red Hat
What we’re going to talk about
● Event-driven architectures have been around for a bit; what are they, why are they
powerful, and why are they back “en-vogue”
● Messaging is often used as a backbone for event-based distributed systems; what
options do we have for cloud-native event-driven architectures?
● Integration is a necessary capability for any organization; how does streaming,
cloud-native architectures and microservices fit in?
● Is Functions the next utopian architecture? Where does functions fit in a world of
microservices?
Unfortunately, we cannot predict the future. As an
organization, we must be able to observe and experiment
in our environments and react accordingly. We need to be
agile.
On the other hand we must be mindful of our resources;
we want to eliminate waste, reduce time to experiment,
and make it cheap so we can increase our returns
We cannot build complex systems from complex parts.
We must keep our components as simple and
understandable as possible.
We live in an event-driven world
Pop quiz!
Universal panacea
Solution to
● technical challenges
● business complexity
● bring agility, utilization,
clarity into balance
Event-Driven Architecture is a ...
Request-reply and event-driven interaction
Interaction: ephemeral and
synchronous
Highly coupled
Low composability
Simplified model
Low tolerance to failure
Interaction: persistent and
asynchronous
Decoupled
Highly composable
Complex model
High tolerance to failure
What is an event?
● Action or occurrence, something that happened in the past
○ ‘Order created’, ‘user logged in’, ‘
● Event characteristics:
○ Immutable
○ Optionally persistent
○ Shareable
● Event types: [1]
○ Notification
○ State Transfer (Command)
○ Event-Sourcing/CQRS
[1] https://martinfowler.com/articles/201701-event-driven.html
Designing systems with events
● EDA: event-centric approach in system design
○ Treating events as part of your domain model
○ Designing components as event handlers and
emitters
● EDA is aligned with the goals of domain-driven design
○ Enforce isolation and decoupling between bounded
contexts
○ Properly designed events can create an expressive
ubiquitous language
● EDA creates highly observable and extensible systems
● Event storming: events-first design
Events in the digital business
● We live in an event-driven world (literally), and that impacts how we do business
● Next-generation digital business is about agility and experimentation
○ Shifting focus from analyzing the status quo to understanding the change in
progress
○ Blurring the distinction between events and data
○ Architectural focus shifting from data-centric to event-driven
● Increased importance of bottom-up approaches in business event design
○ Complex event processing driven by experimentation, analytics, machine
learning
○ Emphasis on readiness to observe and collect events before ascribing them
a business meaning
Event-driven architectures reduce friction
● From a technical standpoint:
○ Building robust and resilient distributed architectures
● From a development process standpoint
○ High composability encourage agility and experimentation
● From a business standpoint:
○ Aligning digital business with the real world
Delivering events through
infrastructure
Event distribution infrastructure with
message brokers
● Publish subscribe semantics (vs queuing)
● Subscribers receive events at their own pace
● High utilization of consumers, regardless of event publish
● Persistent vs non-persistent
● Example: ActiveMQ, RabbitMQ, etc
Event distribution infrastructure with
message brokers
Types of events
● User activity tracking
● Infrastructure monitoring
● Business activity events
● Domain events
Event distribution infrastructure with
message brokers
Handling large explosion in event sources,
requires optimization in broker technology
● Decentralized processing
● Move indexing and bookkeeping to consumers
● Make fundamental data structure first class citizen (log data
structure)
● Replication and failover part of the protocol
● Example: Apache Kafka, Kinesis, etc
Event distribution infrastructure with
message brokers
Using events for integration
From ESBs to agile integration
Optimized for utilization
Centralized, tightly coupled
Mixing logic with infrastructure
Optimized for agility
Decentralized, decoupled
Separate messaging middleware from logic
Modern enterprise integration:
agile, decentralized, cloud-native
Optimized for agility
Decentralized, decoupled
Separate messaging middleware from logic
Preserves benefits of agility while optimizing resource
utilization
Clear separation of concerns between compute and
data infrastructure and application logic
Enterprise integration patterns for microservices
● Originally designed for building integrated solutions out of siloed
enterprise systems
● Applicable to general-purpose event-driven interaction
● Very well suited for building event-oriented distributed systems
(aka event-driven microservices) - e.g. with Apache Camel
Enterprise Integration and Streaming
● Perpetual data and event “streams” as a first class citizen
● Data in aggregate vs individual messages
● Small services working together to interpret large numbers of
streams
● Data in perpetual motion
● Eventual consistency as data synchronization pattern
● Examples: Apache Camel, Kafka Streams, stream-processing
frameworks
Modern enterprise integration:
agile, decentralized, cloud-native
Microservices and Functions
● Reduce the responsibility of a service to a specific business
functionality
● Allow parallelization of work
● Independently deployable (infra) and independently releasable
(business)
● Can optimize for increased utilization (separating out parts of the
code base that exhibit different i/o, throughput, latency needs)
● Re-use services where applicable
Microservices
Microservices
● Reduce overhead in running services
● Higher density/utilization gains
● Portable across deployment platforms
● Rich ecosystem (see Kubernetes!)
Containerization
Containers and microservices
● Microservices great at enabling agility from existing systems
● Well understood business, well understood boundaries
● Don’t optimize for microservices unless you have problems with
your application architecture
● Don’t complicate experimentation / value discovery with complex
architecture
What’s your usecase?
● Usually not well understood
● MVPs are throwaway
● Usage patterns unknown
● Adoption unpredictable
Exploratory use cases
● Low number of hours/minutes of use
● Event-driven, spikey utilization
● Lots of compute for very short period of time
Under-utilization use cases
● Webhook callbacks
● Scheduled tasks
● File processing
● Reacting to database changes
● Limited stream processing
Limited integration use cases
● Pay only for usage without regard
for topology (Serverless)
● Event driven by nature
● On demand
● Write only code, heavy lifting is
handled for you
● High parallelization
● High utilization
Functions as a Service (FaaS)
Functions as a Service (FaaS)
● Event-driven microservices
● Containers (on prem, in the cloud)
● Functions
● Serverless (databases, message queues, caches, etc)
As you move to cloud native, you have options.
Thanks for coming to our talk!
Christian Posta
@christianposta
Chief Architect - Red Hat
Marius Bogoevici
@mariusbogoevici
Platform Architect - Red Hat
plus.google.com/+RedHat
linkedin.com/company/red-hat
youtube.com/user/RedHatVideos
facebook.com/redhatinc
twitter.com/RedHat
THANK YOU

Contenu connexe

Tendances

API Gateways are going through an identity crisis
API Gateways are going through an identity crisisAPI Gateways are going through an identity crisis
API Gateways are going through an identity crisis
Christian Posta
 
Kubernetes Ingress to Service Mesh (and beyond!)
Kubernetes Ingress to Service Mesh (and beyond!)Kubernetes Ingress to Service Mesh (and beyond!)
Kubernetes Ingress to Service Mesh (and beyond!)
Christian Posta
 
Evolving the Engineering Culture to Manage Kafka as a Service | Kate Agnew, O...
Evolving the Engineering Culture to Manage Kafka as a Service | Kate Agnew, O...Evolving the Engineering Culture to Manage Kafka as a Service | Kate Agnew, O...
Evolving the Engineering Culture to Manage Kafka as a Service | Kate Agnew, O...
HostedbyConfluent
 
Continuous Intelligence for Customer Service Using Kafka Event Streams | Simo...
Continuous Intelligence for Customer Service Using Kafka Event Streams | Simo...Continuous Intelligence for Customer Service Using Kafka Event Streams | Simo...
Continuous Intelligence for Customer Service Using Kafka Event Streams | Simo...
HostedbyConfluent
 

Tendances (20)

A microservices journey - Round 2
A microservices journey - Round 2A microservices journey - Round 2
A microservices journey - Round 2
 
API Gateways are going through an identity crisis
API Gateways are going through an identity crisisAPI Gateways are going through an identity crisis
API Gateways are going through an identity crisis
 
Istio: solving challenges of hybrid cloud
Istio: solving challenges of hybrid cloudIstio: solving challenges of hybrid cloud
Istio: solving challenges of hybrid cloud
 
Microservices Journey NYC
Microservices Journey NYCMicroservices Journey NYC
Microservices Journey NYC
 
PHX DevOps Days: Service Mesh Landscape
PHX DevOps Days: Service Mesh LandscapePHX DevOps Days: Service Mesh Landscape
PHX DevOps Days: Service Mesh Landscape
 
Microservices and APIs
Microservices and APIsMicroservices and APIs
Microservices and APIs
 
Intro to Knative
Intro to KnativeIntro to Knative
Intro to Knative
 
Remix
RemixRemix
Remix
 
Service-mesh options with Linkerd, Consul, Istio and AWS AppMesh
Service-mesh options with Linkerd, Consul, Istio and AWS AppMeshService-mesh options with Linkerd, Consul, Istio and AWS AppMesh
Service-mesh options with Linkerd, Consul, Istio and AWS AppMesh
 
API World: The service-mesh landscape
API World: The service-mesh landscapeAPI World: The service-mesh landscape
API World: The service-mesh landscape
 
Kubernetes Ingress to Service Mesh (and beyond!)
Kubernetes Ingress to Service Mesh (and beyond!)Kubernetes Ingress to Service Mesh (and beyond!)
Kubernetes Ingress to Service Mesh (and beyond!)
 
Leveraging Envoy Proxy and GraphQL to Lower the Risk of Monolith to Microserv...
Leveraging Envoy Proxy and GraphQL to Lower the Risk of Monolith to Microserv...Leveraging Envoy Proxy and GraphQL to Lower the Risk of Monolith to Microserv...
Leveraging Envoy Proxy and GraphQL to Lower the Risk of Monolith to Microserv...
 
Microservices Patterns and Anti-Patterns
Microservices Patterns and Anti-PatternsMicroservices Patterns and Anti-Patterns
Microservices Patterns and Anti-Patterns
 
Communication in a Microservice Architecture
Communication in a Microservice ArchitectureCommunication in a Microservice Architecture
Communication in a Microservice Architecture
 
Multicluster Kubernetes and Service Mesh Patterns
Multicluster Kubernetes and Service Mesh PatternsMulticluster Kubernetes and Service Mesh Patterns
Multicluster Kubernetes and Service Mesh Patterns
 
Evolving the Engineering Culture to Manage Kafka as a Service | Kate Agnew, O...
Evolving the Engineering Culture to Manage Kafka as a Service | Kate Agnew, O...Evolving the Engineering Culture to Manage Kafka as a Service | Kate Agnew, O...
Evolving the Engineering Culture to Manage Kafka as a Service | Kate Agnew, O...
 
Securing the Cloud Native Stack
Securing the Cloud Native StackSecuring the Cloud Native Stack
Securing the Cloud Native Stack
 
High Productivity Platform
High Productivity PlatformHigh Productivity Platform
High Productivity Platform
 
20160317 lagom sf scala
20160317 lagom sf scala20160317 lagom sf scala
20160317 lagom sf scala
 
Continuous Intelligence for Customer Service Using Kafka Event Streams | Simo...
Continuous Intelligence for Customer Service Using Kafka Event Streams | Simo...Continuous Intelligence for Customer Service Using Kafka Event Streams | Simo...
Continuous Intelligence for Customer Service Using Kafka Event Streams | Simo...
 

Similaire à An eventful tour from enterprise integration to serverless and functions

How to Overcome Data Challenges When Refactoring Monoliths to Microservices
How to Overcome Data Challenges When Refactoring Monoliths to MicroservicesHow to Overcome Data Challenges When Refactoring Monoliths to Microservices
How to Overcome Data Challenges When Refactoring Monoliths to Microservices
VMware Tanzu
 
Agile Gurugram 2023 | Observability for Modern Applications. How does it help...
Agile Gurugram 2023 | Observability for Modern Applications. How does it help...Agile Gurugram 2023 | Observability for Modern Applications. How does it help...
Agile Gurugram 2023 | Observability for Modern Applications. How does it help...
AgileNetwork
 

Similaire à An eventful tour from enterprise integration to serverless and functions (20)

Microservices, containers and event driven architecture - key factors in agil...
Microservices, containers and event driven architecture - key factors in agil...Microservices, containers and event driven architecture - key factors in agil...
Microservices, containers and event driven architecture - key factors in agil...
 
Microservices, containers and event driven architecture - key factors in agil...
Microservices, containers and event driven architecture - key factors in agil...Microservices, containers and event driven architecture - key factors in agil...
Microservices, containers and event driven architecture - key factors in agil...
 
Microservices, containers and event driven architecture - key factors in agil...
Microservices, containers and event driven architecture - key factors in agil...Microservices, containers and event driven architecture - key factors in agil...
Microservices, containers and event driven architecture - key factors in agil...
 
Ledingkart Meetup #1: Monolithic to microservices in action
Ledingkart Meetup #1: Monolithic to microservices in actionLedingkart Meetup #1: Monolithic to microservices in action
Ledingkart Meetup #1: Monolithic to microservices in action
 
Introduction to Microservices Architecture - SECCOMP 2020
Introduction to Microservices Architecture - SECCOMP 2020Introduction to Microservices Architecture - SECCOMP 2020
Introduction to Microservices Architecture - SECCOMP 2020
 
JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...
JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...
JS Fest 2019/Autumn. Anton Cherednikov. Choreographic or orchestral architect...
 
Surviving microservices
Surviving microservicesSurviving microservices
Surviving microservices
 
How to Overcome Data Challenges When Refactoring Monoliths to Microservices
How to Overcome Data Challenges When Refactoring Monoliths to MicroservicesHow to Overcome Data Challenges When Refactoring Monoliths to Microservices
How to Overcome Data Challenges When Refactoring Monoliths to Microservices
 
Overcoming Data Gravity in Multi-Cloud Enterprise Architectures
Overcoming Data Gravity in Multi-Cloud Enterprise ArchitecturesOvercoming Data Gravity in Multi-Cloud Enterprise Architectures
Overcoming Data Gravity in Multi-Cloud Enterprise Architectures
 
Microservice
MicroserviceMicroservice
Microservice
 
Docker microservices and the service mesh
Docker microservices and the service meshDocker microservices and the service mesh
Docker microservices and the service mesh
 
Deconstructing Monoliths with Domain Driven Design
Deconstructing Monoliths with Domain Driven DesignDeconstructing Monoliths with Domain Driven Design
Deconstructing Monoliths with Domain Driven Design
 
1 (1).pptx
1 (1).pptx1 (1).pptx
1 (1).pptx
 
Agile Gurugram 2023 | Observability for Modern Applications. How does it help...
Agile Gurugram 2023 | Observability for Modern Applications. How does it help...Agile Gurugram 2023 | Observability for Modern Applications. How does it help...
Agile Gurugram 2023 | Observability for Modern Applications. How does it help...
 
Introduction to event based microservices
Introduction to event based microservicesIntroduction to event based microservices
Introduction to event based microservices
 
Microservices as an evolutionary architecture: lessons learned
Microservices as an evolutionary architecture: lessons learnedMicroservices as an evolutionary architecture: lessons learned
Microservices as an evolutionary architecture: lessons learned
 
Reactive - Is it really a Magic Pill?
Reactive - Is it really a Magic Pill?Reactive - Is it really a Magic Pill?
Reactive - Is it really a Magic Pill?
 
Microservices for Application Modernisation
Microservices for Application ModernisationMicroservices for Application Modernisation
Microservices for Application Modernisation
 
Ato Z of Microservices Architecture by Systango
Ato Z of Microservices Architecture by SystangoAto Z of Microservices Architecture by Systango
Ato Z of Microservices Architecture by Systango
 
How to Choose an Integration Platform Vendor for Your Business
How to Choose an Integration Platform Vendor for Your BusinessHow to Choose an Integration Platform Vendor for Your Business
How to Choose an Integration Platform Vendor for Your Business
 

Plus de Christian Posta

Role of edge gateways in relation to service mesh adoption
Role of edge gateways in relation to service mesh adoptionRole of edge gateways in relation to service mesh adoption
Role of edge gateways in relation to service mesh adoption
Christian Posta
 

Plus de Christian Posta (13)

Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and Istio
 
Understanding Wireguard, TLS and Workload Identity
Understanding Wireguard, TLS and Workload IdentityUnderstanding Wireguard, TLS and Workload Identity
Understanding Wireguard, TLS and Workload Identity
 
Compliance and Zero Trust Ambient Mesh
Compliance and Zero Trust Ambient MeshCompliance and Zero Trust Ambient Mesh
Compliance and Zero Trust Ambient Mesh
 
Cilium + Istio with Gloo Mesh
Cilium + Istio with Gloo MeshCilium + Istio with Gloo Mesh
Cilium + Istio with Gloo Mesh
 
Multi-cluster service mesh with GlooMesh
Multi-cluster service mesh with GlooMeshMulti-cluster service mesh with GlooMesh
Multi-cluster service mesh with GlooMesh
 
Cloud-Native Application Debugging with Envoy and Service Mesh
Cloud-Native Application Debugging with Envoy and Service MeshCloud-Native Application Debugging with Envoy and Service Mesh
Cloud-Native Application Debugging with Envoy and Service Mesh
 
The Truth About the Service Mesh Data Plane
The Truth About the Service Mesh Data PlaneThe Truth About the Service Mesh Data Plane
The Truth About the Service Mesh Data Plane
 
Deep Dive: Building external auth plugins for Gloo Enterprise
Deep Dive: Building external auth plugins for Gloo EnterpriseDeep Dive: Building external auth plugins for Gloo Enterprise
Deep Dive: Building external auth plugins for Gloo Enterprise
 
Role of edge gateways in relation to service mesh adoption
Role of edge gateways in relation to service mesh adoptionRole of edge gateways in relation to service mesh adoption
Role of edge gateways in relation to service mesh adoption
 
Navigating the service mesh landscape with Istio, Consul Connect, and Linkerd
Navigating the service mesh landscape with Istio, Consul Connect, and LinkerdNavigating the service mesh landscape with Istio, Consul Connect, and Linkerd
Navigating the service mesh landscape with Istio, Consul Connect, and Linkerd
 
Chaos Debugging for Microservices
Chaos Debugging for MicroservicesChaos Debugging for Microservices
Chaos Debugging for Microservices
 
Intro Istio and what's new Istio 1.1
Intro Istio and what's new Istio 1.1Intro Istio and what's new Istio 1.1
Intro Istio and what's new Istio 1.1
 
The Hardest Part of Microservices: Calling Your Services
The Hardest Part of Microservices: Calling Your ServicesThe Hardest Part of Microservices: Calling Your Services
The Hardest Part of Microservices: Calling Your Services
 

Dernier

+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
 
%+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
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 

Dernier (20)

%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
 
+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...
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
%+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...
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Vancouver Psychic Readings, Attraction spells,Br...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%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
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 

An eventful tour from enterprise integration to serverless and functions

  • 1. AN EVENTFUL TOUR FROM ENTERPRISE INTEGRATION TO SERVERLESS Marius Bogoevici (@mariusbogoevici) Christian Posta (@christianposta) 9 May, 2018
  • 2. About Us Christian Posta @christianposta Chief Architect - Red Hat Marius Bogoevici @mariusbogoevici Chief Architect - Red Hat
  • 3. What we’re going to talk about ● Event-driven architectures have been around for a bit; what are they, why are they powerful, and why are they back “en-vogue” ● Messaging is often used as a backbone for event-based distributed systems; what options do we have for cloud-native event-driven architectures? ● Integration is a necessary capability for any organization; how does streaming, cloud-native architectures and microservices fit in? ● Is Functions the next utopian architecture? Where does functions fit in a world of microservices?
  • 4. Unfortunately, we cannot predict the future. As an organization, we must be able to observe and experiment in our environments and react accordingly. We need to be agile.
  • 5. On the other hand we must be mindful of our resources; we want to eliminate waste, reduce time to experiment, and make it cheap so we can increase our returns
  • 6. We cannot build complex systems from complex parts. We must keep our components as simple and understandable as possible.
  • 7. We live in an event-driven world
  • 8. Pop quiz! Universal panacea Solution to ● technical challenges ● business complexity ● bring agility, utilization, clarity into balance Event-Driven Architecture is a ...
  • 9. Request-reply and event-driven interaction Interaction: ephemeral and synchronous Highly coupled Low composability Simplified model Low tolerance to failure Interaction: persistent and asynchronous Decoupled Highly composable Complex model High tolerance to failure
  • 10. What is an event? ● Action or occurrence, something that happened in the past ○ ‘Order created’, ‘user logged in’, ‘ ● Event characteristics: ○ Immutable ○ Optionally persistent ○ Shareable ● Event types: [1] ○ Notification ○ State Transfer (Command) ○ Event-Sourcing/CQRS [1] https://martinfowler.com/articles/201701-event-driven.html
  • 11. Designing systems with events ● EDA: event-centric approach in system design ○ Treating events as part of your domain model ○ Designing components as event handlers and emitters ● EDA is aligned with the goals of domain-driven design ○ Enforce isolation and decoupling between bounded contexts ○ Properly designed events can create an expressive ubiquitous language ● EDA creates highly observable and extensible systems ● Event storming: events-first design
  • 12. Events in the digital business ● We live in an event-driven world (literally), and that impacts how we do business ● Next-generation digital business is about agility and experimentation ○ Shifting focus from analyzing the status quo to understanding the change in progress ○ Blurring the distinction between events and data ○ Architectural focus shifting from data-centric to event-driven ● Increased importance of bottom-up approaches in business event design ○ Complex event processing driven by experimentation, analytics, machine learning ○ Emphasis on readiness to observe and collect events before ascribing them a business meaning
  • 13. Event-driven architectures reduce friction ● From a technical standpoint: ○ Building robust and resilient distributed architectures ● From a development process standpoint ○ High composability encourage agility and experimentation ● From a business standpoint: ○ Aligning digital business with the real world
  • 15. Event distribution infrastructure with message brokers ● Publish subscribe semantics (vs queuing) ● Subscribers receive events at their own pace ● High utilization of consumers, regardless of event publish ● Persistent vs non-persistent ● Example: ActiveMQ, RabbitMQ, etc
  • 16. Event distribution infrastructure with message brokers
  • 17. Types of events ● User activity tracking ● Infrastructure monitoring ● Business activity events ● Domain events
  • 18. Event distribution infrastructure with message brokers
  • 19. Handling large explosion in event sources, requires optimization in broker technology ● Decentralized processing ● Move indexing and bookkeeping to consumers ● Make fundamental data structure first class citizen (log data structure) ● Replication and failover part of the protocol ● Example: Apache Kafka, Kinesis, etc
  • 20. Event distribution infrastructure with message brokers
  • 21. Using events for integration
  • 22. From ESBs to agile integration Optimized for utilization Centralized, tightly coupled Mixing logic with infrastructure Optimized for agility Decentralized, decoupled Separate messaging middleware from logic
  • 23. Modern enterprise integration: agile, decentralized, cloud-native Optimized for agility Decentralized, decoupled Separate messaging middleware from logic Preserves benefits of agility while optimizing resource utilization Clear separation of concerns between compute and data infrastructure and application logic
  • 24. Enterprise integration patterns for microservices ● Originally designed for building integrated solutions out of siloed enterprise systems ● Applicable to general-purpose event-driven interaction ● Very well suited for building event-oriented distributed systems (aka event-driven microservices) - e.g. with Apache Camel
  • 25. Enterprise Integration and Streaming ● Perpetual data and event “streams” as a first class citizen ● Data in aggregate vs individual messages ● Small services working together to interpret large numbers of streams ● Data in perpetual motion ● Eventual consistency as data synchronization pattern ● Examples: Apache Camel, Kafka Streams, stream-processing frameworks
  • 26. Modern enterprise integration: agile, decentralized, cloud-native
  • 28. ● Reduce the responsibility of a service to a specific business functionality ● Allow parallelization of work ● Independently deployable (infra) and independently releasable (business) ● Can optimize for increased utilization (separating out parts of the code base that exhibit different i/o, throughput, latency needs) ● Re-use services where applicable Microservices
  • 30. ● Reduce overhead in running services ● Higher density/utilization gains ● Portable across deployment platforms ● Rich ecosystem (see Kubernetes!) Containerization
  • 32. ● Microservices great at enabling agility from existing systems ● Well understood business, well understood boundaries ● Don’t optimize for microservices unless you have problems with your application architecture ● Don’t complicate experimentation / value discovery with complex architecture What’s your usecase?
  • 33. ● Usually not well understood ● MVPs are throwaway ● Usage patterns unknown ● Adoption unpredictable Exploratory use cases
  • 34. ● Low number of hours/minutes of use ● Event-driven, spikey utilization ● Lots of compute for very short period of time Under-utilization use cases
  • 35. ● Webhook callbacks ● Scheduled tasks ● File processing ● Reacting to database changes ● Limited stream processing Limited integration use cases
  • 36. ● Pay only for usage without regard for topology (Serverless) ● Event driven by nature ● On demand ● Write only code, heavy lifting is handled for you ● High parallelization ● High utilization Functions as a Service (FaaS)
  • 37. Functions as a Service (FaaS)
  • 38. ● Event-driven microservices ● Containers (on prem, in the cloud) ● Functions ● Serverless (databases, message queues, caches, etc) As you move to cloud native, you have options.
  • 39. Thanks for coming to our talk! Christian Posta @christianposta Chief Architect - Red Hat Marius Bogoevici @mariusbogoevici Platform Architect - Red Hat