# Production-grade app architecture with Effect (Workshop Part 1 – Effect Days 2025 )

> 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 2025-04-29 · 2:40:20 · S tier · Effect

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

## Summary

The workshop develops application structure through Effect [services](/lore/services-capture-dependencies) and [Layers](/lore/layers-make-dependencies-explicit). It starts with dependency requirements and shows how a service tag identifies an implementation in the environment.

Examples supply different cache implementations to different subprograms. The discussion then covers construction order, [resource cleanup](/lore/scopes-own-resources), and sharing service instances. Layer composition combines outputs and requirements so the application can assemble its dependencies.

## Section notes

- [3:44](https://www.youtube.com/watch?v=upXJJ9maWPc\&t=224s): The workshop outlines its progression from services to more advanced Layer composition.
- [27:14](https://www.youtube.com/watch?v=upXJJ9maWPc\&t=1634s): Service tag identifiers must distinguish services within the application.
- [1:26:10](https://www.youtube.com/watch?v=upXJJ9maWPc\&t=5170s): Providing a cache to a subprogram changes that program's environment.
- [1:55:23](https://www.youtube.com/watch?v=upXJJ9maWPc\&t=6923s): Service construction must account for ordering, cleanup, and memoization.
- [2:23:43](https://www.youtube.com/watch?v=upXJJ9maWPc\&t=8623s): Merge and provideMerge combine Layer outputs and dependencies in different ways.

## Key concepts

- [services](/lore/services-capture-dependencies)
- [Layers](/lore/layers-make-dependencies-explicit)
- [resource cleanup](/lore/scopes-own-resources)

## Our take

Maxwell Brown builds an app out of services, then provides them with layers, including layers that own resources and layers that depend on other layers. It is the clearest walk through the service-and-layer shape this stack uses everywhere.

## Related videos

- [Structured Concurrency: The hidden power behind Effect | Antoine Coulon (Effect Days 2025)](/tube/structured-concurrency-hidden-power-behind-effect)
- [Cluster, Workflows & Cloudflare Durable Objects](/tube/cluster-workflows-cloudflare-durable-objects)
- [Effect on the Frontend: When, Why, How | Sandro Maglione (Effect Days 2025)](/tube/effect-on-frontend-when-why-how)
- [Production-Grade TypeScript by Johannes Schickling (Effect Days 2024)](/tube/production-grade-typescript-by-johannes-schickling)

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