Copyright
Brief Table of Contents
Table of Contents
Preface
Acknowledgments
About this Book
Chapter 1. Introducing Akka
1.1. What is Akka?
1.2. Actors: a quick overview
1.3. Two approaches to scaling: setting up our example
1.4. Traditional scaling
1.4.1. Traditional scaling and durability: move everything to the database
1.4.2. Traditional scaling and interactive use: polling
1.4.3. Traditional scaling and interactive use: polling
1.5. Scaling with Akka
1.5.1. Scaling with Akka and durability: sending and receiving messages
1.5.2. Scaling with Akka and interactive use: push messages
1.5.3. Scaling with Akka and failure: asynchronous decoupling
1.5.4. The Akka approach: sending and receiving messages
1.6. Actors: one programming model to rule up and out
1.6.1. An asynchronous model
1.6.2. Actor operations
1.7. Akka actors
1.7.1. ActorSystem
1.7.2. ActorRef, mailbox, and actor
1.7.3. Dispatchers
1.7.4. Actors and the network
1.8. Summary
Chapter 2. Up and running
2.1. Clone, build, and test interface
2.1.1. Build with sbt
2.1.2. Fast-forward to the GoTicks.com REST server
2.2. Explore the actors in the app
2.2.1. Structure of the app
2.2.2. The actor that handles the sale: TicketSeller
2.2.3. The BoxOffice actor
2.2.4. RestApi
2.3. Into the cloud
2.3.1. Create the app on Heroku
2.3.2. Deploy and run on Heroku
2.4. Summary
Chapter 3. Test-driven development with actors
3.1. Testing actors
3.2. One-way messages
3.2.1. SilentActor examples
3.2.2. SendingActor example