Effective Akka
Book information
Description
Avoid common mistakes when building distributed, asynchronous, high-performance software with the Akka toolkit and runtime. With this concise guide, author Jamie Allen provides a collection of best practices based on several years of using the actor model. The book also includes examples of actor application types and two primary patterns of actor usage, the Extra Pattern and Cameo Pattern. Allen, the Director of Consulting for Typesafe—creator of Akka and the Scala programming language—examines actors with a banking-service use case throughout the book, using examples shown in Akka and Scala. If you have any experience with Akka, this guide is essential. Delve into domain-driven and work-distribution actor applications Understand why it’s important to have actors do only one job Avoid thread blocking by allowing logic to be delegated to a Future Model interactions as simply as possible to avoid premature optimization Create well-defined interactions, and know exactly what failures can occur Learn why you should never treat actors as you would an ordinary class Keep track of what goes on in production by monitoring everything Tune Akka applications with the Typesafe Console Copyright......Page 4 Table of Contents......Page 5 Distributed......Page 7 High Performance......Page 8 Conventions Used in This Book......Page 9 Safari? Books Online......Page 10 Acknowledgments......Page 11 Domain-driven......Page 13 Work Distribution......Page 14 Routers and Routees......Page 15 BalancingDispatcher Will Be Deprecated Soon!......Page 19 Work Distribution Messages Are ?Commands?......Page 20 The Problem......Page 21 Avoiding Ask......Page 23 Capturing Context......Page 24 Sending Yourself a Timeout Message......Page 26 The Cameo Pattern......Page 32 How to Test This Logic......Page 35 Single Responsibility Principle......Page 37 Create Specific Supervisors......Page 38 Keep the Error Kernel Simple......Page 40 Failure Zones......Page 41 Avoid Blocking......Page 43 Futures Delegation Example......Page 44 Pre-defining Parallel Futures......Page 46 Sequential Futures......Page 47 Futures and ExecutionContext......Page 48 Push, Don?t Pull......Page 49 Managed Blocking in Scala......Page 51 Start Simple......Page 52 Optimize with Mutability......Page 54 Prepare for Race Conditions......Page 56 Create Specialized Messages......Page 58 Create Specialized Exceptions......Page 59 Beware the ?Thundering Herd?......Page 60 Avoid Using this......Page 61 The Companion Object Factory Method......Page 62 Don?t Close Over Variables......Page 64 Use Immutable Messages with Immutable Data......Page 65 Help Yourself in Production......Page 66 Use Semantically Useful Logging......Page 67 Use Unique IDs for Messages......Page 69 Fixing Starvation......Page 70 Throughput Setting......Page 72 Edge Cases......Page 73 About the Author......Page 74
Similar books
Reactive Design Patterns
2017 · EPUB
Effective Akka
2013 · PDF
How to Survive A Move: by Hundreds of Happy People Who Did and Some Things to Avoid, From a Few Who Haven't Unpacked Yet
2005 · EPUB
Effective Akka
2013 · PDF
Effective Akka
2013 · EPUB
Effective Akka
2013 · PDF
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF