Please enable JavaScript.
Coggle requires JavaScript to display documents.
5 Service Orchestration and Choreography on Google Cloud Coursera - Coggle…
5 Service Orchestration and Choreography on Google Cloud Coursera
Objective:
Coordinate (microservices)
services communication
Patterns: Orchestration and Choreography
GCP Services: Workflows, Eventarc,
Cloud Tasks, and Cloud Scheduler
SOA [architectural style]
Each Service for a business function
Interoperability and Discoverability
Implemented using messaging
over defined service interfaces
ESB for
Protocol transformation,
Message transformation,
Message routing
Managed by Centralized team
Bottleneck
Microservices
Benefits
Scale separately
Agile (Simpler to develop)
Polyglot (Any programming lang and tech)
An alternative
decentralized approach
to decomposing applications into services
Challenges
Spider web of
point-to-point communication
Latency
Integration and Debugging
Soln: ServiceMesh
Sidecar for communication and cross-cutting concerns
Frequent deployment
DevOps is critical
HTTP Protocol for Service communication
Event Driven
Event => An immutable fact
Event Channel (intermediary)
Bottleneck?
(Similar to ESB?)
Not a centralized across all Apps
Managed by same dev team
(not by a centralized team)
Simplify Auditing and Control
Event Processor
Benefits
Decoupled
Due to event channel
Fault tolerant / Resilient
Async comm over Sync
Push based over Poll
Efficient, Simpler
Latecy => From Sync(MS) comm to Async
Microservices coordination
Pattern
Orchestration
Workflows
(Google Cloud's Orchestration Service)
Choreography
Pub Sub
Fully managed real-time messaging service
Pub-sub lite
Zonal support 2. Self provisioning
Event arc
Fully managed eventing system
Eventarc supports many Google Cloud products as event sources
An abstraction layer
on top of Pub/Sub
Uses Pub/Sub as its transport layer
Rule-based interfaced to select the source,
filter and destination of a trigger
With Pub/Sub, you must write code to
ingest events and manage topics and subscriptions
Eventarc when you want
a standardized event format
CloudEvent SDKs
Eventarc automatically creates and manages
Pub/Sub topics and subscriptions to facilitate event delivery
CNCF CloudEvents format
(Cloud Native Computing Foundation)
Common metadata format for describing event data
Interoperability across services
Cloud Tasks => Manage asynchronous HTTP requests
Cloud scheduler => Manage scheduled jobs