Podcast
Questions and Answers
Which design approach involves one service acting as the 'orchestrator' and handling communication between services?
Which design approach involves one service acting as the 'orchestrator' and handling communication between services?
- High cohesion
- Choreography
- Orchestration (correct)
- Loose coupling
Which form of communication is typically associated with an event-based pattern where a service emits an event that other services react to?
Which form of communication is typically associated with an event-based pattern where a service emits an event that other services react to?
- Serial processing communication
- Asynchronous communication (correct)
- Synchronous communication
- Request/response communication
Which microservices design pattern is associated with synchronous request/response communication?
Which microservices design pattern is associated with synchronous request/response communication?
- Choreography
- Loose coupling
- Orchestration (correct)
- High cohesion
Which microservices design pattern is commonly known as reactive design?
Which microservices design pattern is commonly known as reactive design?
Which design approach is well suited for request-response driven workflows but makes services more dependent on each other?
Which design approach is well suited for request-response driven workflows but makes services more dependent on each other?
Which style of communication involves a client initiating a request and waiting for a response?
Which style of communication involves a client initiating a request and waiting for a response?
Which style of communication is associated with an event-based pattern where a service emits an event that other services react to?
Which style of communication is associated with an event-based pattern where a service emits an event that other services react to?
Which design approach does a web server/API gateway NOT fulfill?
Which design approach does a web server/API gateway NOT fulfill?
Which design approach involves services being invoked in serial order with blocking calls, where the orchestrator waits for a response before calling the next service?
Which design approach involves services being invoked in serial order with blocking calls, where the orchestrator waits for a response before calling the next service?
Which design approach makes services more dependent on each other due to its serial processing?
Which design approach makes services more dependent on each other due to its serial processing?
Which design approach attempts to avoid dependencies between services and moves communication between services to an asynchronous producer/consumer paradigm?
Which design approach attempts to avoid dependencies between services and moves communication between services to an asynchronous producer/consumer paradigm?
In a choreography design, how are events communicated between services?
In a choreography design, how are events communicated between services?
What is the advantage of choreography design in terms of system throughput?
What is the advantage of choreography design in terms of system throughput?
How does the choreography design remove the single point of failure in the system?
How does the choreography design remove the single point of failure in the system?
Which design approach allows for a more efficient request/response behavior in workflows?
Which design approach allows for a more efficient request/response behavior in workflows?
What is the term used to describe a design that combines both orchestration and choreography approaches?
What is the term used to describe a design that combines both orchestration and choreography approaches?
In a choreography design, do event producers need to know the interface of consumer services?
In a choreography design, do event producers need to know the interface of consumer services?
What is the purpose of a distributed queue in systems with a choreography design?
What is the purpose of a distributed queue in systems with a choreography design?
Which design approach removes the single orchestrator and distributes the control logic to the individual services?
Which design approach removes the single orchestrator and distributes the control logic to the individual services?
Flashcards are hidden until you start studying
Study Notes
Microservices Design Patterns
- Orchestration design approach involves one service acting as the 'orchestrator' and handling communication between services.
- Event-driven pattern is associated with asynchronous event-based communication, where a service emits an event that other services react to.
- Request-response pattern is associated with synchronous request/response communication.
Communication Styles
- Request-response style involves a client initiating a request and waiting for a response.
- Event-driven style is associated with an event-based pattern where a service emits an event that other services react to.
Design Approach Characteristics
- Orchestration design approach is well suited for request-response driven workflows but makes services more dependent on each other.
- Choreography design approach attempts to avoid dependencies between services and moves communication between services to an asynchronous producer/consumer paradigm.
- Choreography design enables events to be communicated between services through an event bus or message queue.
- Choreography design increases system throughput by allowing services to process events in parallel.
- Choreography design removes the single point of failure in the system by distributing control logic to individual services.
Hybrid Design Approach
- Hybrid approach combines both orchestration and choreography design approaches.
Choreography Design
- In a choreography design, event producers do not need to know the interface of consumer services.
- A distributed queue is used in systems with a choreography design to buffer and route events between services.
- Choreography design removes the single orchestrator and distributes the control logic to individual services, making services less dependent on each other.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.