Inside the gateway
Key: Container Component. An arrow says what one element does to or asks of the other. Select a box with a page of its own to open it.3 relationships and where each is in the code
3 relationships and where each is in the code
From a queued job to a finished one
Publishing to Stream
Worth knowing
- One runner serves development and production. It claims jobs from each in turn and sends results back to the one
the job came from. Each has its own token on the Worker,
DEMO_RUNNER_TOKEN_<deployment>. - Connect sets the token. In the back office, Connect makes a new token, saves it on the Worker through Cloudflare’s API, then saves it in the backend.
- A container only reads its tokens when it starts. If it refuses a token the Worker accepted, the Worker restarts it with the current ones.
- It can only record public addresses, not a site running on someone’s own machine.
- Title slides come from the back office. The runner opens that page without signing in, so Cloudflare Access has to let that one page through.
- The code:
runner/cloudflare/,scripts/demo-runner.tsandconvex/demoVideos.ts.

