Friday, 15 May 2015

scala - Using Akka in separate library -


Maybe this is a stupid question, but if I develop a library that uses the uncomfortable features, then I Should my system be created in the library or user, pass it through the parameter? What is the best practice?

I recommend going into it as a built-in parameter, this way the library user can < / P>

He may choose to share a common actor system with another component of the application, for example.

If you are creating a complete framework you can provide a default which can be easily imported (like Play!).

No comments:

Post a Comment