Learning Akka : build fault-tolerant, concurrent, and distributed applications with Akka /
Build fault tolerant concurrent and distributed applications with AkkaAbout This Book Build networked applications that self-heal Scale out your applications to handle more traffic faster An easy-to-follow guide with a number of examples to ensure you get the best start with AkkaWho This Book Is For...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2015.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Starting Life as an Actor; What's in this book?; Chapter overview; What is Akka; Actor Model origins; What's an Actor anyway?; Actors and Message passing; The Evolution of supervision and fault tolerance in Erlang; The Evolution of distribution and location transparency; What we will build; Example 1
- handling distributed state; Example 2
- getting lots of work done; Setting up your environment; Choosing a language; Installing Java
- Oracle JDK8
- Installing on WindowsInstalling on OSX; Installing on Linux or Unix (Universal instructions); Ensuring Java is configured in your environment; Installing Scala; Installing Typesafe Activator; Windows; Linux/Unix/OSX; OSX; Creating a new project; Installing an IDE; Install IntelliJ CE; Eclipse; Creating your first Akka application
- setting up the SBT project; Adding Akka to build.sbt; A note on getting the right Scala version with %%; Adding other Dependencies from Maven Central; Creating your first Actor; Making the Message first; Defining Actor response to the Message
- Validating the code with unit testsAkka Testkit; Running the test; Homework; Summary; Chapter 2: Actors and Concurrency; Reactive system design; The 4 reactive tenets; Responsive; Elastic; Resilient; Event-driven/message-driven; Reactive Tenet Correlation; Anatomy of an Actor; Java Actor API; Scala Actor API; Creating an actor; Props; Promises, futures, and event-driven programming models; Blocking versus event-driven APIs; Skills check-point; Having an Actor respond via a future; Java example; Scala example; Blocking threads in tests; Understanding futures and promises
- Future
- expressing failure and latency in typesPreparing the DB and messages; The messages; Implementing the DB functionality; Enabling remoting; Main; Publishing the messages; Starting the DB; Producing the client; Scaffolding the project; Modifying build.sbt; Building the client; Testing; Homework; General learning; Project homework; Summary; Chapter 3: Getting the Message Across; Setting the stage with an example problem; Sketching the project; Core functionality; Messaging delivery; Messages should be immutable; Ask message pattern; Designing with Ask
- Callbacks execute in another execution contextTimeouts are required; Timeout stacktraces aren't useful; Ask has overhead; Complexity of Actors and Ask; Tell; Designing with Tell; Forward; Pipe; Homework; General learning; Project homework; Summary; Chapter 4: Actor Lifecycle
- Handling State and Failure; The 8 Fallacies of Distributed Computing; The network is reliable; Bandwidth is infinite; The network is secure; Network topology doesn't change; There is one administrator; Transport cost is zero; The network is homogeneous; Failure; Isolating failure; Redundancy; Supervision