Book Image

Akka Essentials

By : Munish K. Gupta
Book Image

Akka Essentials

By: Munish K. Gupta

Overview of this book

<p>Developers/Architects need to manage the fine balance between the ever increasing load and ever decreasing response latency. Applications need to be designed for Internet scale, which means you need to be skilled in building large distributed, scalable, and concurrent applications. Whether you are building the next Facebook or working for a Fortune 500 organization, you need to be ready to design scalable, concurrent, and fault-tolerant applications. Akka is a toolkit and runtime for building highly concurrent, distributed, and fault-tolerant event-driven applications on the JVM.<br /><br />"Akka Essentials" will show you the current challenges with Java Scalability and concurrency model and how Akka&rsquo;s Actor Model can help you design and build applications that are inherently scalable and fault-tolerant. Whether you are building new applications or want to refactor an existing application, you will learn the right techniques to build and scale up in no time.</p>
Table of Contents (19 chapters)
Akka Essentials
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Introduction to Akka
Index

What are typed actors?


A typed actor has two parts—a publicly defined interface, and secondly, an implementation of the interface. Calls to the publicly defined interface are delegated asynchronously to the private instance of the implementation. In effect, the public interface provides the service contract that bridges the Actor Model to the object-oriented paradigm.

The explicit public interface makes the actors more clear and concise, lending an object-oriented design paradigm to the Actor Model, as opposed to an event-driven design paradigm. So, if you have existing Plain Old Java Object (POJO) code or are writing an object-oriented application, typed actors allow you to integrate the Actor Model within the existing object-oriented paradigm.

For converting the POJO bean objects into asynchronous actors that process method calls, or writing strict contract-based, object-oriented applications, typed actors can be used. Typed actors are on the cusp where the Actor Model meets the POJO world...