Akka essentials
By: Munish K. Gupta
Series: Community experience distilled; Community experience distilled
Publisher: Packt Pub.
Published: 2012
Place of publication: Birmingham
Language: eng
Number of pages: 517
ISBN-13: 9781849518291; 9781849518284
Subjects: Application software; Development; Java (Computer program language); Information resources management; Information Management; Logiciels d'application; Développement; Java (Langage de programmation); Gestion de l'information; COMPUTERS; Programming; General
Description: 4. Typed Actors; What are typed actors?; Defining an actor; Creating actors; An actor with a default constructor; An actor with a non-default constructor; Messaging model; Sending messages; Fire and forget messages; Send and receive messages; Stopping actors; Actor lifecycle monitoring; Lifecycle callbacks; Receiving messages; Supervisor strategy; Creating an actor hierarchy; Dispatchers and routers; Using dispatchers; application.conf; Using routers; Summary; 5. Dispatchers and Routers; Dispatchers; Dispatcher as a pattern; Executor in Java; Dispatchers in Akka; Types of dispatcher.

This is a step-by-step guide where each chapter will teach you a concept by explaining it with clear and lucid examples? each chapter can be read independently. This book is aimed at developers, architects who are building large distributed concurrent and scalable applications using Java/Scala. The book assumes knowledge of Java/JEE concepts but no knowledge of Actor model is assumed.
Notes: "A practical, step-by-step guide to learn and build Akka's actor-based, distributed, concurrent, and scalable Java applications."

Includes index.
Table of contents: title: Akka Essentials; Akka Essentials; Credits; About the Author; Acknowledgement; About the Reviewers; www.PacktPub.com; Support files, eBooks, discount offers and more; Why Subscribe?; Free Access for Packt account holders; Preface; The driving force of Akka's Actor Model; What this book covers; What you need for this book; Conventions; Reader feedback; Customer support; Downloading the example code; Errata; Piracy; Questions; 1. Introduction to Akka; Background; Microprocessor evolution; Concurrent systems; Container-based applications; Actor Model; Akka framework; Actor systems.; title: What is an actor?State; Behavior; Mailbox; Actor lifecycle; Fault tolerance; Location transparency; Transactors; Akka use cases; Summary; 2. Starting with Akka; Application requirements; Application design; Start development; Prerequisites; Java; Eclipse; Maven; Scala; Akka; Java application; Creating the Akka Maven project; Defining message classes; MapData.java; WordCount.java; ReduceData.java; Result.java; Defining actor classes; MapActor.java; ReduceActor.java; AggregateActor.java; MasterActor.java; Defining the execution class; MapReduceApplication.java; Scala application.; title: Defining message classesDefining actor classes; MapActor.scala; ReduceActor.scala; AggregateActor.scala; MasterActor.scala; Defining the execution class; MapReduceApplication.scala; Summary; 3. Actors; Actors; Defining an actor; Creating actors; Actor with default constructor; Actor with non-default constructor; Creating an actor within an actor hierarchy; Messaging model; Sending messages; Fire and forget messages; title: tell(); Send and receive messages; title: ask(); Receiving messages; Replying to messages; Forwarding messages; Stopping actors; Killing actors; Actor lifecycle monitoring; HotSwap.; title: DispatcherPinned dispatcher; Balancing dispatcher; Calling thread dispatcher; Types of mailboxes; Dispatcher usage; Thread pool executor; Fork join executor; Routers; Router usage; Router usage via application.conf; Router usage for distributed actors; Dynamically resizing routers; Custom router; Summary; 6. Supervision and Monitoring; Let It Crash; Actor hierarchy; Supervision; Supervision strategies; One-For-One strategy; All-For-One strategy; Lifecycle monitoring; Fault tolerance; Summary; 7. Software Transactional Memory; Transaction management; What is software transactional memory?