In this chapter, we covered a lot of technologies. We installed the Scala IDE plugin for Eclipse IDE so that we could write Scala code in Eclipse IDE and enjoy many of Eclipse's features. To build the project, we installed SBT. We installed the sbteclipse plugin for SBT because Scala IDE does not have built-in support for SBT. SBTEclipse creates and updates Scala IDE projects that use an SBT build file.
We learned about the Actor
model, a model where various actors send messages to each other. Each actor has a single method that handles all the messages. Instead of communicating directly with actor instances, actor references called ActorRef
instances are used. If you use ActorRef
instances, the code wouldn't care much whether an actor is running locally or remotely on a network. We wrote a unit test using a DSL to test the internals of an actor. Finally, we wrote the main program that used ask-pattern
and Future
objects to wait for replies.
In the next chapter, we will take a detailed...