Archive of "Scala"

Akka – How to use the Ask pattern

Akka – Ask pattern In Akka you would often like to use some form of request-response. In this blog I will show some how this can be done and what you should think about. Plain tell – tell The easiest way to implement request response is just using tell In the above code the TimeTeller…

Read More...

Creating a SettingsActor for configuration properties using Akka Extensions

Creating a SettingsActor ¬†for configuration properties¬†using Akka Extensions Recently, I followed a Typesafe Akka training and one of the little gems that I took home from the training was how to create a SettingsActor using the Akka Extensions mechanism. Using a SettingsActor gives one easy access to configuration properties but it also gives you a…

Read More...

What is a self type in Scala?

What is a self type in Scala? In Scala you do not need any fancy framework to do dependecy injection. Scala provides you with the option to mixin traits. When you search the internet how to do dependency injection in Scala you will find terms like traits, mixin, self types and cake pattern. In this…

Read More...