Skip to content
Agents: this page is Markdown at /effect-handbook/deep-dives/index.md · llms.txt · reading guide View raw

Deep Dives ​

Long-form guides build a working mental model across related Effect APIs. They complement the concise, module-by-module handbook chapters and include larger examples, operational guidance, and design tradeoffs.

Available guides ​

  • Reactivity — From Atoms to Mastery — follow Reactivity, Atom, AtomRegistry, AsyncResult (including combined stale values), AtomRef, hydration, and React integration from the dependency graph through a complete Todos feature. It assumes the Effect/Layer basics and is designed for application developers building reactive clients or SSR UI.
  • Adopting Effect in an Existing TypeScript Codebase — audit a Promise-based service, pin its behavior with characterization tests, migrate leaf-first behind an unchanged contract, and keep exactly one seam where Promise meets Effect.
  • Anatomy of a Real Effect Application — compose domain schemas, errors, services, Layers, configuration, resources, observability, an entrypoint, shutdown, and tests into one application.
  • Owning Lifetimes — Startup, Readiness, and Shutdown — give every resource and fiber one owner, treat startup as a transaction, separate liveness from readiness and draining, shut down through one path, and bridge into non-Effect hosts without leaking work.
  • Schema — From External Input to Domain and Back — follow encoded input through decoding, domain modeling, transformations, HTTP/RPC/SQL/persistence boundaries, evolution, and property tests.
  • Failure, Retry, Fallback, and Interruption — connect E, Cause, retry classification, fallback, interruption, finalizers, and operational policy.
  • Structured Concurrency Through a Bounded Worker — build and test a Queue-based worker with backpressure, supervised fibers, resource safety, and graceful shutdown.
  • Testing an Effect Application — validate services, Layers, typed failures, virtual time, resources, fibers, HTTP boundaries, and integration seams without global mocks.
  • Streaming Ingestion Without Accidental Buffering — preserve bounded memory and backpressure from input framing through decoding, batching, writes, recovery, and shutdown.
  • The Durability and Distribution Ladder — choose deliberately among Persistence, EventLog, Workflow, and Cluster, including delayed independent jobs, detached children, and explicit failure recovery.
  • Building a Production AI Capability — compose provider-neutral models, Schema-backed outputs and tools, strict or deferred validation boundaries, resilience, telemetry, testing, and MCP exposure.
  • Exposing an Effect Application over MCP — serve an existing Toolkit to AI clients over stdio and Streamable HTTP, distinguish long-lived dual-era from request-scoped stateless hosting, shape the catalog, authorize as an OAuth resource server, run human-in-the-loop round trips, and test the server in-process.

For quick lookup rather than a connected walkthrough, use the concise handbook, primitive chooser, and topic reference pages.

How deep dives fit the handbook ​

The concise topics remain the module-by-module lookup surface. Deep dives connect several modules into one mental model, retain the operational gotchas needed by the larger example, and link back to the concise reference for exhaustive API inventory. Authoring instructions live in the repository README.

Edition 4.1 · audited 2026-11-19 against Effect 4.1.4.