Template: path chapter
After this you can answer: Write the one question this chapter prepares the reader to answer.
Picture it
Section titled “Picture it”One small diagram (about 8 boxes at most) that a reader could redraw from memory. Use the real MiniTickets names. The “where it sits” diagram is generated from the book’s data, so it can never disagree with the map:
flowchart LR alb["Application Load Balancer"] public_subnets["Public subnets"] browser["Browser"] https_listener["HTTPS listener"] cloudfront["CloudFront distribution"] cloudfront_listener["HTTP listener with the origin header"] alb_sg["ALB security group"] alb -->|lives in| public_subnets browser -->|TCP 443| alb alb -->|TCP 443| https_listener cloudfront -->|TCP 80| alb alb -->|TCP 80| cloudfront_listener alb -->|uses| alb_sg more["+1 more: see the table"] alb -.- more classDef focus stroke-width:3px class alb focus classDef off stroke-dasharray:5 5 class alb,cloudfront,cloudfront_listener off
Optional, only if it really helps a first-time reader: ONE line that starts with “Think of it like…”, next to the real term, never instead of it.
See this piece on the map →How it works
Section titled “How it works”- What happens first, in one or two plain sentences.
- What happens next. Explain any new word the first time you use it.
- What happens last, and what the reader gets back.
In MiniTickets
Section titled “In MiniTickets”Our real names, ports, values and files. Every fact here is checked against the code, and
code is linked like this: apps/api/src/app.ts → buildApp.
Who talks to this piece, and the exact rule that allows each connection, comes from the data:
| From → to | What happens | What allows it |
|---|---|---|
| Application Load Balancer → Public subnetsonly when entryEnabled = true | one ALB node in each public subnet |
|
| Browser → Application Load Balanceronly when cdnEnabled = false | HTTPS on port 443; plain HTTP on port 80 only gets a redirect |
|
| Application Load Balancer → HTTPS listeneronly when cdnEnabled = false | the ALB hands each request to the listener for its port |
|
| CloudFront distribution → Application Load Balanceronly when cdnEnabled = true | fetches from the origin over plain HTTP on port 80, adding the X-Origin-Verify header |
|
| Application Load Balancer → HTTP listener with the origin headeronly when cdnEnabled = true | the ALB hands each request to its :80 listener |
|
| Application Load Balancer → ALB security grouponly when entryEnabled = true | the ALB's network interfaces use the ALB security group |
|
| Application Load Balancer → CloudWatch alarmsonly when entryEnabled = true | target 5xx + ALB 5xx ≥ 5 in 5 minutes → alb-5xx |
|
See it in AWS
Section titled “See it in AWS”The click path, for example: ECS → Clusters → the cluster → Services → the service. Name the field to look at.
One read-only command (describe, get or list only). book:check rejects commands that change anything.
The file and function that create this piece, as a code link.
Break it
Section titled “Break it”| Symptom | Cause | Where to look |
|---|---|---|
| What the user or the logs show | What is really wrong | Console page, log group or command |
| A second symptom | Its cause | Where to look |
Say it in an interview
Section titled “Say it in an interview”Follow-ups
Section titled “Follow-ups”A follow-up question an interviewer would ask next
A short answer. Mention a failure or a trade-off where you can.
A question about what breaks
What fails, what the user sees, and how we would notice.
A question about a different choice
Why we did not pick the other option, and when we would.
Advanced: IAM, config, CLI and code
Extra detail for the curious: IAM policies, configuration values, more CLI, code references. Nothing here is needed to follow the next chapter.
Checkpoint
Section titled “Checkpoint”Answer these without scrolling up. If one feels hard, reread that section.
- A question about what this piece is.
- A question about why MiniTickets needs it.
- A question about how it works, step by step.
- A question about what breaks, and where you would look.
- A question that links this chapter to an earlier one.
Redraw it from memory: the diagram from 'Picture it'
Try this: one small task, on the map or in the local stack
The “Next” link at the bottom of the page goes to the next chapter of the path.
Read this book online: https://book.theversehub.in/