1 min readJun 8, 2020
Yes, you probably want to encapsulate the dependencies. But the option to track effects via environment is also there.
Anyway, the new ZIO layers changed a lot in the possible designs. See an update in another article: https://blog.softwaremill.com/managing-dependencies-using-zio-8acc1539e276