Effect CommunityEC
Effect Communityβ€’3y agoβ€’
37 replies
Martin

Understanding Contexts and Services for External Libraries

Hey! I am trying to understand the core concepts (scopes, layers, contexts, etc).

Let's say that I am using an external library that interact with some kind of external service (let's say a db).

I have to:
- Create a context for the services (I have more than this one)
- Create the services
- Use acquireRelease where acquire creates an instance of my Database (external library) and connects to it. Then release disconnects it

Is it correct or am I completely wrong?
Was this page helpful?