Sorry, my question may have been a little terse. I hope my elaboration following is more suitable.
Assume I have a bunch of actors in the same actorSystem that are routees for some function that requires database access: say for example that a client sends the router a request that can be decomposed into sub-requests, each with a key. The routees read their assigned key from the database, perform some computation and write the result back. Each of them thus needs access to the collection in question, which can be derived from a connection which in turn is derived from the driver.
The way I read the documentation, I should instantiate the driver only once; same with the connection. Consequently, if my understanding is correct, the routees must be provided with the connection to use.
Is the best way to make sure that they have the connection via dependency injection from a singleton object, or is there some other way? Or do I misunderstand the documentation?