Items related to Effective Akka: Patterns and Best Practices

Effective Akka: Patterns and Best Practices - Softcover

 
9781449360078: Effective Akka: Patterns and Best Practices
View all copies of this ISBN edition:
 
 

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

"synopsis" may belong to another edition of this title.

Review:

Q&A with Jamie Allen, author of "Effective Akka: Patterns and Best Practices"

Q. Why is this an important book for people to read now

A. The advent of the many-core platform means that developers have more processing resources in the form of "cores" at their disposal than ever before. Traditional programming constructs do not allow developers to leverage these cores. As computers add more and more cores with each new platform released by hardware manufacturers, developers will need to find ways to maximize the utilization of these resources. Akka provides a platform for doing just that, and allowing your application to scale up and out as more resources become available.

Q. What will readers walk away with after reading "Effective Akka?"

A. After reading "Effective Akka," readers should have a firm grasp of the kinds of coding issues they may encounter when developing with actors, regardless of whether they're using Scala/Akka or Erlang. Many of the concepts are relevant to developers who are writing asynchronous code without actors as well. Effective Akka provides guidance with respect to coding style and best practices so that developers are able to avoid common pitfalls.

Q. What's so exciting and important about patterns and best prices?

A. The move to "reactive" solutions. Developers can perform much more work nowadays by using asynchrony-- not wasting threads that spawn blocking operations, instead defining work that can be applied automatically when such work is completed. Many technologies are emerging in this space, such as ReactiveJava, Node.js, Go, Clojure's core.async and Scala's futures, actors and async support. Never before have developers had so many useful tools at their disposal to write applications that are interactive, low-latency, fault tolerant, and scalable. Every language and platform is looking to provide a solution in this space.

Q. Can you give us a few tips when building high-performance software with Akka?

  1. Be very careful about closing over state from outside of a code block. Capture and stabilize such state by placing it into local values so that you know you will have an unchanged value at the time you actually need it.
  2. Keep your code simple. Make more atomic methods and functions that do only one thing, and combine them to accomplish your goals.
  3. Never reference the keyword "this" from inside an actor. Don't use it and don't register it elsewhere. Pretend the concept does not exist, where possible. Learn to think in terms of "ActorRef" and use them at all times, even when communicating with yourself.
  4. Create failure zones in your application by assigning thread pool resources to specific groups of actors. This way, if one actor is monopolizing a thread with a computationally-intense activity, only a limited subset of other actors are affected by not having that resource available to them.
  5. Avoid blocking as much as possible. Always write code to be asynchronous unless there is a specific block of code where blocking must occur. Put any such blocking tasks on their own threads, or use Scala's Managed Blocking to keep other resources from being starved of a thread.

Book Description:
Patterns and Best Practices

"About this title" may belong to another edition of this title.

  • PublisherO'Reilly Media
  • Publication date2013
  • ISBN 10 1449360076
  • ISBN 13 9781449360078
  • BindingPaperback
  • Edition number1
  • Number of pages72
  • Rating

Other Popular Editions of the Same Title

9789351102687: Effective Akka

Featured Edition

ISBN 10:  9351102688 ISBN 13:  9789351102687
Publisher: Shroff/O'Reilly, 2013
Softcover

Top Search Results from the AbeBooks Marketplace

Seller Image

Allen, Jamie
Published by O'Reilly Media (2013)
ISBN 10: 1449360076 ISBN 13: 9781449360078
New Softcover Quantity: 3
Seller:
GreatBookPrices
(Columbia, MD, U.S.A.)

Book Description Condition: New. Seller Inventory # 19836346-n

More information about this seller | Contact seller

Buy New
US$ 12.86
Convert currency

Add to Basket

Shipping: US$ 2.64
Within U.S.A.
Destination, rates & speeds
Stock Image

Jamie Allen
Published by O'Reilly (2013)
ISBN 10: 1449360076 ISBN 13: 9781449360078
New PAP Quantity: 3
Seller:
PBShop.store US
(Wood Dale, IL, U.S.A.)

Book Description PAP. Condition: New. New Book. Shipped from UK. Established seller since 2000. Seller Inventory # WO-9781449360078

More information about this seller | Contact seller

Buy New
US$ 15.51
Convert currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, rates & speeds
Seller Image

Allen, Jamie
Published by O'Reilly Media (2013)
ISBN 10: 1449360076 ISBN 13: 9781449360078
New Soft Cover Quantity: 1
Seller:
booksXpress
(Bayonne, NJ, U.S.A.)

Book Description Soft Cover. Condition: new. Seller Inventory # 9781449360078

More information about this seller | Contact seller

Buy New
US$ 16.48
Convert currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, rates & speeds
Stock Image

Allen, Jamie
Published by O'Reilly Media (2013)
ISBN 10: 1449360076 ISBN 13: 9781449360078
New Softcover Quantity: 1
Seller:
GF Books, Inc.
(Hawthorne, CA, U.S.A.)

Book Description Condition: New. Book is in NEW condition. Seller Inventory # 1449360076-2-1

More information about this seller | Contact seller

Buy New
US$ 18.43
Convert currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, rates & speeds
Stock Image

Allen, Jamie
Published by O'Reilly Media (2013)
ISBN 10: 1449360076 ISBN 13: 9781449360078
New Softcover Quantity: 1
Seller:
Book Deals
(Tucson, AZ, U.S.A.)

Book Description Condition: New. New! This book is in the same immaculate condition as when it was published. Seller Inventory # 353-1449360076-new

More information about this seller | Contact seller

Buy New
US$ 18.44
Convert currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, rates & speeds
Seller Image

Allen, Jamie
Published by O'Reilly Media 9/5/2013 (2013)
ISBN 10: 1449360076 ISBN 13: 9781449360078
New Paperback or Softback Quantity: 5
Seller:
BargainBookStores
(Grand Rapids, MI, U.S.A.)

Book Description Paperback or Softback. Condition: New. Effective Akka: Patterns and Best Practices 0.29. Book. Seller Inventory # BBS-9781449360078

More information about this seller | Contact seller

Buy New
US$ 18.47
Convert currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, rates & speeds
Stock Image

Allen, Jamie
Published by O'Reilly Media (2013)
ISBN 10: 1449360076 ISBN 13: 9781449360078
New Softcover Quantity: > 20
Seller:
Lucky's Textbooks
(Dallas, TX, U.S.A.)

Book Description Condition: New. Seller Inventory # ABLIING23Mar2411530330414

More information about this seller | Contact seller

Buy New
US$ 16.67
Convert currency

Add to Basket

Shipping: US$ 3.99
Within U.S.A.
Destination, rates & speeds
Stock Image

Jamie Allen (author), Meghan Blanchette (editor), Rebecca Demarest (illustrator)
ISBN 10: 1449360076 ISBN 13: 9781449360078
New paperback Quantity: 10
Seller:
Blackwell's
(London, United Kingdom)

Book Description paperback. Condition: New. Language: ENG. Seller Inventory # 9781449360078

More information about this seller | Contact seller

Buy New
US$ 15.45
Convert currency

Add to Basket

Shipping: US$ 5.63
From United Kingdom to U.S.A.
Destination, rates & speeds
Stock Image

Jamie Allen
Published by O'Reilly Media, Inc, USA (2013)
ISBN 10: 1449360076 ISBN 13: 9781449360078
New Paperback / softback Quantity: 3
Seller:
THE SAINT BOOKSTORE
(Southport, United Kingdom)

Book Description Paperback / softback. Condition: New. New copy - Usually dispatched within 4 working days. 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. Seller Inventory # B9781449360078

More information about this seller | Contact seller

Buy New
US$ 12.58
Convert currency

Add to Basket

Shipping: US$ 11.20
From United Kingdom to U.S.A.
Destination, rates & speeds
Stock Image

Allen, Jamie
Published by O'Reilly Media (2013)
ISBN 10: 1449360076 ISBN 13: 9781449360078
New Paperback Quantity: 1
Seller:
GoldenWavesOfBooks
(Fayetteville, TX, U.S.A.)

Book Description Paperback. Condition: new. New. Fast Shipping and good customer service. Seller Inventory # Holz_New_1449360076

More information about this seller | Contact seller

Buy New
US$ 21.89
Convert currency

Add to Basket

Shipping: US$ 4.00
Within U.S.A.
Destination, rates & speeds

There are more copies of this book

View all search results for this book