# Alchemy, Infrastructure as Effects | Office Hours 27 🔥

> For agents: start with the [agent guide](https://ratstack.sh/llms.txt). Every page is Markdown by default; add `Accept: text/html` for HTML.

[Effect | TypeScript for the AI Era](https://www.youtube.com/@effect-ts) · Published 2026-04-29 · 1:16:00 · S tier · Alchemy and infrastructure as code

[Watch on YouTube](https://www.youtube.com/watch?v=fPSxB7ZgSJw) · [All RatTube videos](/tube)

## Summary

Sam Goodwin presents [Alchemy](/lore/infrastructure-as-effects)'s move from asynchronous TypeScript to infrastructure built with Effect. The session discusses documentation for coding agents and compares keeping deployment state with checking deployed resources directly.

The later discussion examines resource providers, including reading state, custom differences, and replacement decisions. It also covers stages for separate environments. These pieces connect infrastructure declarations with the [services](/lore/services-capture-dependencies) an application uses.

## Section notes

- [1:56](https://www.youtube.com/watch?v=fPSxB7ZgSJw\&t=116s): Goodwin introduces the Effect-based second version of Alchemy.
- [13:18](https://www.youtube.com/watch?v=fPSxB7ZgSJw\&t=798s): Markdown-native documentation supports agents following setup steps.
- [26:49](https://www.youtube.com/watch?v=fPSxB7ZgSJw\&t=1609s): The discussion compares stateful deployment with checking existing resources.
- [54:41](https://www.youtube.com/watch?v=fPSxB7ZgSJw\&t=3281s): Resource providers implement reads, differences, and lifecycle operations.
- [1:08:27](https://www.youtube.com/watch?v=fPSxB7ZgSJw\&t=4107s): Stages separate deployment environments.

## Key concepts

- [Alchemy](/lore/infrastructure-as-effects)
- [services](/lore/services-capture-dependencies)

## Our take

Sam Goodwin builds a stack from zero with Alchemy and Effect: runtime code next to infrastructure, Durable Objects and WebSockets, testing, Alchemy against Terraform, and decoupling infrastructure with layers. The best single video on infrastructure as Effects.

## Related videos

- [Fork Every Business: Sam Goodwin on Alchemy, Effect and AI](/tube/sam-goodwin-alchemy-effect-ai)
- [What is Alchemy? Zero-to-Production Infrastructure in TypeScript & Effect | Office Hours 27](/tube/what-is-alchemy-zero-to-production)
- [Alchemy vs Terraform + Decoupling Infrastructure with Layers](/tube/alchemy-terraform-infrastructure-with-layers)
- [Production-grade app architecture with Effect (Workshop Part 1 – Effect Days 2025 )](/tube/production-grade-app-architecture-with-effect)

Summary based on the transcript. Written 2026-11-15.
