Modal Made Crystal Clear · chapter 2: The Big Picture: How Modal Thinks

Life of a request

2026-10-08

The container exists, and bills, only from boot through the last idle second. Stages 2 to 4 together are the cold start; a warm container skips straight to stage 5.

Below: the paragraph from the book that builds this idea, then the diagram itself (Figure 2.2), and a recap. About a minute of reading.

The schema is the anatomy; now watch it move. What actually happens between calling f.remote() and getting your result back? Seven stages, shown in figure 2.2, and the billing line under them is worth as much attention as the stages themselves.

Figure 2.2: Life of a request. The container exists, and bills, only from boot through the last idle second. Stages 2 to 4 together are the cold start; a warm container skips straight to stage 5.
Figure 2.2: Life of a request. The container exists, and bills, only from boot through the last idle second. Stages 2 to 4 together are the cold start; a warm container skips straight to stage 5.

Recap

  • The idea: The container exists, and bills, only from boot through the last idle second.
  • The picture: Figure 2.2, from chapter 2 ("The Big Picture: How Modal Thinks") of Modal Made Crystal Clear.
  • Go deeper: the chapter builds this step by step, with recipes and sources at the end.

This diagram is one of many in Modal Made Crystal Clear.

Every chapter opens with the gist, draws the hard ideas, and ends with recipes and sources.

Get the book

All diagrams