CS FundamentalsHardProduct-company placement · system design
An order flow touches payment, inventory and shipping services. In design 1 each service reacts to events from the others; in design 2 one coordinator calls each service in turn and handles failures. Which statement is correct?
- A. Design 1 is orchestration, and it gives one place to see the whole flow end to end
- B. Design 2 is choreography, and it removes any single point of control from the flow
- C. 1 is choreography (loose, harder to trace); 2 is orchestration (flow in one place)
- D. Both designs are orchestration, since the services still communicate with each other
Correct answer: C. 1 is choreography (loose, harder to trace); 2 is orchestration (flow in one place)
Choreography spreads the workflow across event reactions (few direct dependencies, but the end-to-end flow is implicit). Orchestration puts it in a central coordinator, easier to follow and change but a component every step depends on.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A producer emits 10,000 events per second into a stream whose consumer can process 2,000 per second. Which reactive-streams mechanism lets…
- A table of user events is sharded by event date, and all writes for today land on one shard, which is overloaded while others sit idle…
- Match each cost-of-quality category with an example. P. Prevention Q. Appraisal R. Internal failure S. External failure 1. Reworking a…
- An inspection of 500 delivered forms finds 25 defects, and each form has 10 opportunities for a defect. What is the…
- What value does this Command pattern code print? python v = [0] class Add: def init(s, n): s.n = n def do(s): v[0] += s.n def undo(s)…
- Counting each if, while and conditional expression as one decision (V(G) = decisions + 1), what is the cyclomatic complexity of g, and…