Inderjot Singh

Cloudlab

Small experiments on Cloudflare, plus this site

The premise

It holds an email sender, a few sandboxes and this homepage.

How it plays

  1. Shot 01RequestA request arrives at a Worker running close to the visitor.
  2. Shot 02VerifyThe Worker checks a signature before doing anything.
  3. Shot 03StoreState goes to a database or a durable object at the edge.
  4. Shot 04ActThe Worker sends an email or runs a multi-step workflow.
  5. Shot 05ReplyA small response goes back with the result.

5 shots, in order

Shot on

  • Cloudflare Workers
  • D1
  • Durable Objects
  • Workflows
  • Email Sending

Screen test · Signed request

Send a request through the Worker

Invented example, not real data

Signature
  1. RequestPOST /send
  2. Step 1verify signaturewaiting
  3. Step 2check message sizewaiting
  4. Step 3send emailwaiting
  5. Response—
Idle. Press Run to roll the take.