Help Needed with Effect's Dependency Injection and Layer System

Hello community,

I am currently diving deeper into Effect's dependency injection system with its layer system, and I would need some help tomorrow. I have followed the documentation at:
https://effect.website/docs/requirements-management/layers/#composing-layers

I managed to get the tutorial code working, and I wanted to make my example more complex by adding a service that would have a database and logger injected into it.

My goal is to achieve a layered architecture like this: controller->(service, logger)->db->(configService, Logger).

However, I'm struggling with the layers to make it work. If someone has some experience with Effect's dependency injection system and would like to do a good deed, that would be really cool.

Thanks in advance!
Effect Documentation
Learn how to use layers in Effect to manage service dependencies and build efficient, clean dependency graphs for your applications.
Managing Layers
Was this page helpful?