hackhaton-space-stackHackhaton Space Stack
AcademyBuilder
Get Started
All terms
The Basics
  • Stack
  • Frontend & Backend
  • CLI
  • Monorepo
  • Server
  • Localhost
How AI Works
  • Context Window
  • Hallucination
  • Token
  • Prompt Caching
  • Session
  • Compaction
  • Embedding
  • Vector Database
  • RAG
  • Fine-tuning
  • Temperature
  • Inference
  • Reasoning
  • Multimodal
Building With AI
  • Agent
  • MCP
  • System Prompt
  • Skill
  • CLAUDE.md
  • Slash Command
  • Harness
  • Computer Use
  • Agents SDK
  • Voice Agents
  • OAuth
  • Vibe Coding
  • Permission Scope
  • Tool Calling
  • Prompt Injection
  • Eval
  • Guardrails
  • Sandbox
  • Progressive Disclosure
Code & Collaboration
  • Git
  • Commit
  • Branch
  • GitHub
  • Pull Request
  • Open Source
  • Markdown
  • Dependency
  • Merge
  • Fork
APIs & Connections
  • API
  • Auth
  • Database
  • ORM
  • SDK
  • Webhook
  • Endpoint
  • REST
  • HTTP Methods
  • Env File
  • Schema
  • JSON
  • YAML
  • Secret
  • Rate Limit
  • CORS
  • Cookie
  • Encryption
Shipping & Running
  • Deploy
  • Headless
  • Cron
  • DNS
  • CDN
  • Object Storage
  • Serverless
  • Edge
  • Worker
  • Runtime
  • Process
  • Daemon
  • Queue
  • Job
  • State
  • Cache
  • SSH
  • Build
  • Staging
  • Rollback
  • Docker
  • Feature Flag
  • Test
  • CI/CD
  • The Cloud
Debugging & Errors
  • Trace
  • Type Error
  • Stack Trace
  • Log
  • Bug
  • Patch
  • Latency
How Developers Think
  • DRY
  • YAGNI
  • KISS
  • Refactoring
  • Technical Debt
  • Async
← All terms

Type-safe, modern TypeScript scaffolding for full-stack web development

ThreadsGitHub

Info

  • Academy
  • Docs

Legal

  • Terms of Service
  • Privacy Policy

© 2026 Dzulhelmy Nazri

Shipping & Running

$defineworker--plain-english

Worker

TLDRA small program that runs one job on demand.

The waiter should not also be in the basement folding laundry.

A worker is a small program with one errand. The HTTP handler takes the click and answers. The worker sends the mail, talks to the slow API, chews a file, writes the summary. Then it is done.

You will hear the word in three hallways. Do not mash them.

  • A queue consumer — a back-office person who pulls the next job off a queue.
  • A Cloudflare Worker (or any edge isolate) — a tiny serverless script at the door.
  • A web worker — a helper thread in the browser so the tab does not freeze.

Same shape: one job, then out of the way. Different building.

At a hackathon the tell is a spinner that has nothing useful to show. If the user is waiting for work they do not need on screen, you wanted a worker and a line, not a fatter request handler. Signup can return "you're in." Welcome email can land thirty seconds later. The pitch does not care.

When the hallway floods — forty signups, forty receipts — you do not rewrite the frontend. You run more copies of the same small program. That is the whole scaling story people dress up with logos.

create-hackhaton-space-stack will give you routes that answer people. Workers are what you add when "answer people" and "do the slow thing" start punching each other. The CLI scaffolds the window. You decide what happens behind the wall.

What this unlocks

Once you can name the specialist, you stop stuffing every leftover into the request. The API stays a window. The worker is the person behind the wall who only ever does one ticket. Cheap. Focused. Disposable. Need a hundred? Spin a hundred. Need none? Run none.

The dining room stays open. The laundry finishes when it finishes.

Related

  • Serverless
  • Queue
  • Job
  • Edge
PrevEdge

Shipping & Running

NextRuntime