Skip to content
Aesthetic Infra

Learn how systems run, then run them yourself.

Aesthetic Infra is where developers, and anyone curious about systems, learn infrastructure by doing: read a clear explanation, check what you understood, then practice it in a lab.

One topic, three steps: Lambda cold starts

From the article: Speeding up EC2 and Lambda boot time

  1. Read

    A cold start builds an environment and runs INIT before your handler. In this example the user waits about 2.5 s, and 1.8 s of that is INIT.

    Build environment
    500 ms
    INIT
    1800 ms
    Handler
    200 ms
    (Illustrative numbers)

    INIT repeats on every new environment, so it is the part worth removing.

    Read the full article
  2. Check

    Traffic jumps five-fold at 9 a.m. Which setting takes INIT off the first request without changing code?

  3. Run

    Measure one cold start, then take INIT off the request path for the live alias.

    aws lambda invoke --function-name tickets-api out.jsonaws logs tail /aws/lambda/tickets-api | grep REPORTREPORT … Duration: 200.00 ms … Init Duration: 1800.00 msaws lambda put-provisioned-concurrency-config \  --function-name tickets-api --qualifier live \  --provisioned-concurrent-executions 5
    1. Cold start measured: the REPORT line shows Init Duration
    2. Provisioned Concurrency is ready on the live alias
    3. A request to live runs without Init Duration

    Not run yet

Follow one request through the stack

Each article covers one stop on the path a request takes, from the user's device to the code that answers it. Pick a stop to see what it covers.

  1. User

Edge

Where the request enters AWS. Caching and the global network decide how long the trip from the user takes.

Questions it answers

  • Which leg of the trip is slow?
  • When does CloudFront help, and when does Global Accelerator?

Article: AWS acceleration: pick the right service for the slow leg

Read, check, practice, discuss

Four ways to learn on Aesthetic Infra. Articles are open today; questions, labs and discussion are in development.

  • Articles

    Guides on cloud, networking and infrastructure that explain how things work underneath, not just which buttons to press.

    Browse articles

    Available

  • Questions and quizzes

    Short questions after each topic, each with the reasoning behind the answer, so you know what you actually understood.

    In development

  • Hands-on labs

    Tasks you complete directly on the platform, with checks that tell you when your setup works.

    In development

  • Discussion and publishing

    Ask and answer questions under each topic, and publish your own articles for others to learn from.

    In development

Latest articles

Every article is published in English and Vietnamese.

All articles

Start with one topic.

Pick an article and read it end to end. Questions and labs for each topic will open here as they are ready.