© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Sharing a Service Instance Across ManagedRuntime and Default Runtime - Effect Community
EC
Effect Community
•
6mo ago
Janosch
Sharing a Service Instance Across ManagedRuntime and Default Runtime
How would I go about having the same instance of a service in both a ManagedRuntime for forked execution as well as in the default runtime
? I need
ManagedRuntime.make(MyLayer)
ManagedRuntime.make(MyLayer)
and
.pipe(Layer.provide(MyLayer))
.pipe(Layer.provide(MyLayer))
to not reinitialize the layer
.
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Replacing a Default Service in `ManagedRuntime`
EC
Effect Community / 🚀-effect
9mo ago
Unsafely Sharing a Runtime
EC
Effect Community / 🚀-effect
2y ago
Explanation of ManagedRuntime vs. Runtime
EC
Effect Community / 🚀-effect
2y ago
Default Service Implementations in Managed Runtimes
EC
Effect Community / 🚀-effect
7mo ago