Coordinating Microservices Flashcards

1
Q

What are the 2 primary patterns for coordinating communication between Microservices?

A
  1. Orchestration pattern
  2. Choreography pattern

The Orchestration pattern is centralized (i.e. an orchestrator coordinates the communication between services). Cloud Workflows can be used to to implement the Orchestration pattern.

The Choreography pattern is decentralized (i.e. services coordinate communication with other services on their own). Pub/Sub can be used to implement the Choreography pattern.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Eventarc?

A

Eventarc is a fully managed eventing system that makes building event-driven applications easy. Eventarc supports many GCP services as event sources. Eventarc uses Pub/Sub as its transport layer.

Eventarc is an abstraction layer on top of Pub/Sub that provides significant benefits when designing event-driven applications.

When using Eventarc, most Google Cloud or custom services can act as an event producer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Workflows?

A

Workflows is a fully-managed orchestration platform that executes services in the order that you define.

The workflow handles retries or exceptions thrown by APIs, improving the reliability of the entire process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The steps that need to be executed in your Workflows instance are specified in a YAML or JSON file.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Cloud Tasks?

A

Cloud Tasks is similar to Pub/Sub. However, Cloud Tasks differs in that it has full control of the task execution. In other words, Cloud Tasks controls when the task/service is executed, whereas with Pub/Sub, the publisher has 0 control over the consumer service.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What Google service can you use if you need to schedule jobs to execute at fixed intervals?

A

Cloud Scheduler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly