Hypothetical scenario. Northwind’s workers can now receive requests, and another team offers to own price formatting as a separate service. Dev likes the clearer deployment boundary. Priya asks what the visitor sees when that new service is slow.
Dev: “Independent deployment would let the formatting team release separately.”
Maya: “What customer or ownership problem justifies another call inside this deadline?”
Keep the browsing scope and existing request budget. You will compare an internal module with a remote service, then make the API’s result, failure behavior and remaining time explicit. A useful interface does not automatically require another deployment.
Does this responsibility need a network boundary?
A module groups responsibilities behind an interface inside a deployment. A separately deployed service exposes an interface across a communication boundary. Both can support clear ownership, but only the second necessarily introduces remote availability, addressing, serialization and deadline concerns into this request path.
Northwind can first keep formatting as a module in each catalogue worker. This does not forbid a later service. It asks which concrete requirement needs independent deployment, scaling, access control or ownership strongly enough to justify another remote dependency. Merely naming responsibilities is insufficient evidence for distribution.
The product-record service is already a real boundary in the hypothetical brief. It owns the authoritative record supplied to the catalogue. The catalogue owns how an eligible representation reaches the visitor. A useful API explains the record’s meaning and freshness evidence, not just the spelling of a request field.
Describe the result before choosing its encoding
For one product read, Northwind needs an identifier, the selected market and currency, a product version and enough evidence to evaluate the sixty-second price-age rule. State what missing, withdrawn and temporarily unavailable mean. An empty list that ambiguously means either “no matching products” or “dependency failed” prevents the caller from making an honest presentation decision.
HTTP provides request and response semantics. An RPC interface presents named operations whose arguments and results cross a process boundary. Choosing JSON over HTTP or Protocol Buffers with gRPC changes representation and tooling, but neither choice decides who owns the price or what a timeout proves.
HTTP Semantics supplies the protocol vocabulary. Application contracts add the interpretation relevant to Northwind. For example, successful protocol delivery does not establish that the application returned the requested market, and a validly encoded response can still violate the freshness rule.
Make the price boundary own a contract
Hypothetical scenario. Compare keeping price formatting as a catalogue module with moving it behind a separately deployed formatter. Both consume the same source product revision and market selection. The separate deployment earns its boundary only if independent ownership, release cadence or scaling justifies an additional synchronous failure dependency.
| Contract part | Example | Compatibility obligation |
|---|---|---|
| Input | product Q7, market UK, source revision 12 | Preserve selection meaning |
| Output | formatted amount, currency, revision 12 | Keep evidence unchanged |
| Unavailable | no permitted representation | Caller chooses product outcome |
The formatter owns presentation, not the authoritative price. Its reply must retain currency, source revision and evidence time; generating a new response timestamp cannot refresh old source evidence. A versioned contract also defines whether unknown optional fields may be ignored and how a new required field is introduced without breaking older callers.
Timeout and cancellation belong in the interface review. The catalogue chooses the remaining allowance and the permitted unavailable result. The formatter stops useful work when cancellation can be honored; cancellation does not retract an independently committed action. If checkout is later introduced, place its spending or reservation invariant at an authoritative transaction boundary rather than asking a display service to enforce it.
Draw what the new service makes you wait for
The previous lesson’s application calculation was 10 ms ingress, 20 ms preparation, 40 ms product lookup and 10 ms assembly: eighty milliseconds total. Suppose a remote formatting call adds a selected 35 ms after the product result arrives. It depends on that result, so the two calls cannot simply be made parallel without changing the operation.
Hypothetical worked example. The application path becomes 10 + 20 + 40 + 35 + 10 = 115 ms. Substituting into the cold-path ledger gives 290 − 80 + 115 = 325 ms, leaving 400 − 325 = 75 ms. These chosen terms include the added call’s communication and remote wait; do not add that same communication time again elsewhere.
At fifteen catalogue reads per second, one product call and one formatting call produce 15 × 2 = 30 downstream calls per second. The formatter receives fifteen of those, not thirty. If the catalogue instead makes three formatting calls per read, formatting demand is 15 × 3 = 45 per second before retries. A small interface design choice can change component demand without changing visitor count.
Cross the boundary with the remaining time
The selected cold-path budget left 190 ms for application waiting after setup, transfer and presentation reservations. Ingress, preparation and the product lookup consume 10 + 20 + 40 = 70 ms. Keeping 10 ms for assembly leaves 190 − 70 − 10 = 110 ms for the formatter under that model.
The selected 35 ms formatter fits inside that allowance, but a fresh 400 ms formatter timeout does not. A caller should constrain downstream waiting by the remaining parent allowance and a suitable return reserve. Real measurements should replace the selected phases and include request dispatch and scheduling that the simplified accounting may omit.
gRPC’s deadline guidance describes this propagation concern. Cancellation must reach activities that can stop; it should not be treated as proof of rollback. Although the present operation is read-only, later write workflows will need to distinguish stopped waiting from known failure of an effect.
A name identifies a service; discovery supplies candidates
Service discovery maps a logical service identity to reachable destinations. Selection then chooses among suitable candidates. Northwind’s regional proxy handled worker selection; a catalogue worker calling the product service still needs its own way to find and use that service. A resolved address does not establish record correctness or application readiness.
A service mesh can move some communication policy into infrastructure. It does not remove application ownership of field meaning, allowable degradation or authorization. Putting timeouts in a proxy and a client library also requires a consistent policy; two independent retry layers can multiply work. The later overload lesson will quantify that amplification.
In the wild: interfaces and deadlines solve different problems
HTTP and gRPC provide documented mechanisms for exchanging requests and bounding waits. Their public specifications and guides are useful because they make behavior inspectable. They do not tell Northwind whether formatting deserves a separate team-owned service. That architectural decision still depends on change patterns, deployment needs and the failure cost created by the boundary.
Compatibility belongs in the interface decision too. Adding an optional field is different from changing the meaning of an existing price field. State which clients can encounter which versions and how an older caller behaves. A successful deployment of the server alone does not establish that all callers understood the changed result.
When a secondary responsibility becomes required
Hypothetical failure scenario. The formatting service is unavailable. Product records remain healthy, but the catalogue waits until the visitor deadline expires because formatting was made a required serial dependency. The team intended organizational independence and instead increased the ways browsing could fail.
Possible revisions include keeping formatting local, returning an approved simpler representation or providing an independently justified service with explicit failure behavior. Do not silently omit currency or present an ambiguous price as degradation. The product requirement determines which fallback is acceptable; the network architecture must implement that decision.
Choose a boundary for a reason you can test
Separate a service when a concrete need for independent change, ownership or scaling outweighs the added communication and operations burden. Keep a module when cohesive responsibilities can evolve together and remote independence adds little. Neither choice is permanently correct for every stage of the product.
Northwind’s immediate design keeps price formatting local while retaining the existing product-service contract. The artefact passed forward is an explicit catalogue representation: public product fields, market, currency and version, with no private session data. That makes the next edge-caching question precise: which responses may be reused for which visitors, and for how long?
Challenge the proposed mechanism
A new formatter requires a field that old catalogue workers never send. How should deployment proceed?
Reveal the design reasoning
First deploy a compatible receiver or negotiated contract, then update callers, observe adoption and only later require the new form. Keep the old representation available during rollback. A simultaneous deploy is not a compatibility mechanism.
Decision and reconsideration: Keep the module until independent operation has a stated benefit. A split requires an owner for compatibility, deadlines and unavailable behavior.
Review the proposed split
The formatter needs the product result. Can both calls be parallelized to recover the added 35 ms?
Respect the data dependency
Not under the stated interface. The formatter cannot process a result that has not arrived. Change the operation or keep it local; drawing parallel arrows does not eliminate the dependency.
The formatter starts after 70 ms of the 190 ms application allowance. What remains with assembly reserved?
Subtract work already spent
190 − 70 − 10 = 110 ms. The selected formatter duration is 35 ms, but the allowable wait cannot restart the browser’s whole 400 ms clock.
A service mesh is installed. Who decides whether an omitted currency is acceptable?
Keep meaning with the application contract
The application and product owners must define an acceptable representation. Communication infrastructure can enforce some policy, but cannot infer whether an incomplete price is honest or usable.
Northwind has defined what a catalogue response means across its services. Page 09 asks when an edge location may reuse that response. The reuse policy must preserve the same market, currency and freshness contract.
Northwind decision log
Keep formatting local until independent deployment has a concrete justification.
Specify product identity, market, currency, version and failure meaning at the existing API.
Pass a public representation contract to the edge-caching decision.
Go deeper: responsibilities across a network
- Book chapter: Microservices in Action, chapter 3: Architecture of a microservice application — Morgan Bruce and Paulo A. Pereira. Relate service shape to collaboration.
- Book chapter: The same book, chapter 4: Designing new features — the same authors. Examine ways to scope responsibilities before extracting them.
- Video lecture: Load balancing with NGINX — NGINX. Revisit the proxy boundary and distinguish destination selection from API meaning.
- Primary document: Deadlines — gRPC. Follow the parent allowance through a downstream operation.