Skip to main content
CodeOath

Backend in .NET · Chapter 9

One service or many

About this chapter

A service that has grown starts to raise the question of splitting stock, orders and billing into separate services. This chapter weighs the two choices using measured costs: what a call over the network adds, what splitting really buys, waiting on another service or handing work to a queue, how to keep a failure from spreading, and the modular monolith between the extremes, with five questions to ask before splitting.

Who it is for: Backend developers and senior candidates who are asked to defend a monolith or a split in design discussions and want reasons that rest on costs.

You will be able to

  • Describe what splitting a monolith into services gains and what it costs.
  • Explain why a call across the network is a different kind of operation from a function call.
  • Choose between a synchronous call and a queue for work that crosses a service boundary.
  • Explain how retries and circuit breakers help one service survive another's failure.
  • Describe a modular monolith and say when it is the better answer.

The key idea: Splitting a system does not remove complexity, it moves it from the code into the network and the operations around it. The decision is sound when a problem that separate deployment would solve is already felt, and weak when it is made in advance.

In this chapter

  1. The question every growing service meets
  2. What each one is
  3. What splitting buys
  4. What splitting costs, measured
  5. Waiting for the other service, or not
  6. Resilience: making "need not fail together" true
  7. The modular monolith, and the question that decides it
  8. Before you split: five questions
  9. Mistakes that recur

Locked: needs a plan

You can read chapter 1 free. Chapter 9 is the next one.

What you can do now, free: re-read chapter 1 and try its problems.

What a plan gives you: all chapters of the track you pick and their checks. Professional, one role is ₹329 a month or ₹2,299 a year. It renews until you cancel, and you can cancel any time. Paid plans open at launch.

Why is this locked?

Chapter 1 of every track is free, so you can see how the track reads. The rest of a track and its checks come with a plan, or open as you pass each chapter's check.

The price is for one period, a month or a year. A plan renews until you cancel.

Back to the track