Sharing layers across workers via a "prelude" Effect in alchemy

samgoodwin89 · x · 2026-08-20

@harrysolovay shares composition pattern experiments with @alchemyrun: when sharing layers across workers/Durable Objects, he creates a "prelude" effect that executes during the infra run and returns a layer, which he then provides to the runtime run. Typed, a prelude is an Effect<Layer<RIn>>.

Original post →

More from coding & agent

coding & agent channel →