PLATTEN WEB-APP LAB · START HERE

One request.
Follow every handoff.

First see what the system does. Then read the syntax that makes it happen. Explore the web servers, application code and database already running in this lab.

01 / TRACE THE MECHANICS

Where does this request go?

Read-only examples

    WHAT HAPPENS

    Now look at the syntax

    A focused excerpt matching this lab’s route; surrounding configuration and error handling are omitted.

    Continue the lesson →

    02 / CHECK THE REAL RESPONSE

    Open endpoint ↗

    Choose a route, predict the result, then send the request.

    No request sent yet.

    Status, content type and elapsed time come from this browser request. They are not server-performance benchmarks. The display limits large responses.

    Your path through web apps

    Start at the top; return to the full app after each layer.

    01 / HTTP + NGINX

    Route the request.

    The URL chooses a path. Nginx can return a file, pass PHP work to FastCGI, or proxy HTTP to another service. Not every request touches a database.

    Inspect a static response →
    02 / PHP

    Turn input into output.

    Practice variables, forms, loops and escaped output in the visual dojo. Its animations are browser simulations. Compare them with a real server calculation here.

    Practice PHP →
    03 / APACHE

    Compare server arrangements.

    Here, Nginx proxies to Apache, which runs embedded PHP. The PHP-FPM route uses a separate PHP worker. These are two arrangements in this lab, not requirements for every deployment.

    Compare Apache and FPM →
    04 / C# + ASP.NET CORE

    Give the API a job.

    An endpoint matches a route and returns a result. The health endpoint probes SQL Server with a 3-second timeout and reports the open reservation ledger depth. Try the address-translation lesson for input validation in C#.

    Explore the C# calculation →
    05 / SQL

    Ask a precise question.

    Learn filtering and joins, then inspect the inventory returned by the real C# API. The SQL dojos use disposable browser data and simulated plans; inventory reads the lab’s SQL Server.

    Start SQL basics →
    06 / THE WHOLE APP

    Connect the layers.

    Roll Rush renders HTML in PHP using results from the C# API. Inventory lives in SQL Server; the tree diagram is a teaching model. Its reservation and reset actions change shared lab state.

    Open Roll Rush →

    CHECK YOUR UNDERSTANDING

    Can you explain the boundaries?

    Does Apache sit between PHP-FPM and C#?

    No. Nginx routes normal PHP pages to PHP-FPM. The separate /apache/ route goes to Apache. Roll Rush’s PHP code calls the C# service directly on the internal network.

    Why does the health endpoint run a real SQL query?

    A static health string stays green even when the database is down. This handler runs a 3-second bounded SELECT COUNT(*) FROM dbo.Reservations WHERE UndoneAtUtc IS NULL probe so this request reports a database failure instead of a successful health response.

    Does changing browser text change trusted server data?

    No. A browser can send arbitrary input. Server validation and authorization decide what is accepted. Production writes also need appropriate access controls, concurrency rules and recovery; a classroom simulation is not proof of those controls.

    Is the B+ tree picture a view of SQL Server’s actual pages?

    No. It is a C# teaching model. Inventory queries use SQL Server, but the tree’s four-record splits and page layout are simulated to make the mechanics visible.

    Read the primary references

    Route descriptions reflect this lab’s configuration. The drawings explain the architecture; they are not distributed tracing or CPU/RAM instrumentation.