Effect on the Backend
One real backend server on Node, built with Effect 4, one part per post. It is the sequel to Learning Effect, for TypeScript developers who know the basics and want to see Effect carry a server.
The core idea comes first: Effect 4 moved a lot under a backend. HTTP, SQL and RPC now live inside the effect package, you write your own layers, and fewer things are Effects. From there each part adds one piece to the same server: Effect.fn, HTTP, Schema at the boundary, HttpApi, typed errors as status codes, config, layers, SQL and transactions, auth, tests, retries, background jobs, OpenTelemetry and deploy. Each one starts from the plain Node version and ends with what the types now tell you.
The code is public. Every part is a tag in the effect-on-the-backend repo, and every sample in a post comes from it and passes the type check.
Read it in order. Part 1 sets up the repo and the Effect 4 changes every later part builds on.
18 parts,oldest first
- What changed in Effect 4 when you build a backendNov 8, 2026 Effect on the Backend · 7 min
- Effect.fn: functions with names and tracesNov 9, 2026 Effect on the Backend · 7 min
- A Node server in 20 linesNov 10, 2026 Effect on the Backend · 7 min
- Schema at the boundaryNov 11, 2026 Effect on the Backend · 6 min
- HttpApi: define the API onceNov 12, 2026 Effect on the Backend · 7 min
- Typed errors become status codesNov 13, 2026 Effect on the Backend · 6 min
- Config and secretsNov 14, 2026 Effect on the Backend · 5 min
- Wiring a real app with layersNov 15, 2026 Effect on the Backend · 6 min
- SQL and migrations with effect/sqlNov 16, 2026 Effect on the Backend · 6 min
- Transactions and scopesNov 17, 2026 Effect on the Backend · 5 min
- Auth middleware and a CurrentUser serviceNov 18, 2026 Effect on the Backend · 4 min
- Testing handlers with @effect/vitestNov 19, 2026 Effect on the Backend · 4 min
- Timeouts, retries and ScheduleNov 20, 2026 Effect on the Backend · 6 min
- Background jobs and graceful shutdownNov 21, 2026 Effect on the Backend · 7 min
- Logs, spans and metrics with OpenTelemetryNov 22, 2026 Effect on the Backend · 7 min
- RPC or HttpApi?Nov 23, 2026 Effect on the Backend · 7 min
- Shipping itNov 24, 2026 Effect on the Backend · 9 min
- Effect vs Hono and Express: the verdictNov 25, 2026 Effect on the Backend · 10 min