Learning Akka by Jason Goodwin

By Jason Goodwin

Key Features

  • Build networked functions that self-heal
  • Scale out your functions to deal with extra site visitors faster
  • An easy-to-follow consultant with a few examples to make sure you get the easiest commence with Akka

Book Description

Software this day has to paintings with extra facts, extra clients, extra cores, and extra servers than ever. Akka is a disbursed computing toolkit that allows builders to construct right concurrent and dispensed purposes utilizing Java and Scala comfortably, functions that scale throughout servers and reply to failure by means of self-healing. in addition to simplifying improvement, Akka allows a number of concurrency improvement styles with specific help and structure derived from Erlang's proposal of actors (lightweight concurrent entities). Akka is written in Scala, which has turn into the programming language of selection for improvement at the Akka platform.

Learning Akka goals to be a entire walkthrough of Akka. This publication will take you on a trip via all of the ideas of Akka that you simply desire so that it will start with concurrent and disbursed purposes or even construct your own.

Beginning with the concept that of Actors, the e-book will take you thru concurrency in Akka. relocating directly to networked functions, this e-book will clarify the typical pitfalls in those tricky troublesome areas whereas educating you the way to take advantage of Akka to beat those issues of ease.

The publication is a simple to stick with example-based advisor that might boost your simple wisdom of Akka and enable you to in employing a similar to real-world scenarios.

What you'll learn

  • Use Akka to beat the demanding situations of concurrent programming
  • Resolve the problems confronted in dispensed computing with the aid of Akka
  • Scale purposes to serve a excessive variety of concurrent users
  • Make your process fault-tolerant with self-healing applications
  • Provide a well timed reaction to clients with effortless concurrency
  • Reduce expenses through construction extra effective multi-user applications
  • Maximise community potency by way of scaling it

About the Author

Jason Goodwin is a developer who's essentially self-taught. His entrepreneurial spirit led him to check enterprise in school, yet he all started programming while he was once 15 and regularly had a excessive point of curiosity in expertise. This curiosity led his occupation to take a number of significant alterations clear of the company part and again into software program improvement. His trip has led him to engaged on high-scale allotted structures. He loves to create digital tune in his unfastened time.

He was once first brought to an Akka venture at a Scala/Akka shop―mDialog―that equipped video advert insertion software program for significant publishers. the corporate was once got by means of Google finally. He has additionally been an influential technologist in introducing Akka to an important Canadian telco to assist them serve their buyers with extra resilient and responsive software program. He has adventure of training Akka and useful and concurrent programming techniques to small groups there. he's presently operating through Adecco at Google.

Table of Contents

  1. Starting existence as an Actor
  2. Actors and Concurrency
  3. Getting the Message Across
  4. Actor Lifecycle – dealing with country and Failure
  5. Scaling Up
  6. Successfully Scaling Out – Clustering
  7. Handling Mailbox Problems
  8. Testing and Design
  9. A Journey's End

Show description

Read or Download Learning Akka PDF

Best java books

Java 7 Concurrency Cookbook

Over 60 easy yet enormously powerful recipes for gaining knowledge of multithreaded software improvement with Java 7
* grasp all that Java 7 has to supply for concurrent programming
* familiarize yourself with thread administration, the Fork/Join framework, concurrency sessions and lots more and plenty extra during this ebook and publication
* a pragmatic Cookbook filled with recipes for attaining an important Java Concurrency initiatives

In element

Java is still the worldwide common for constructing quite a few functions and company software program, and the release of Java 7 brings with it intriguing new features for concurrent programming in terms of the concurrency utilities enhancement. this permits builders to utilize their purposes with parallel activity functionality. "Java 7 Concurrency Cookbook" covers all parts of the Java concurrency API, supplying crucial recipes for making the most of the interesting new capabilities.

On your laptop, you could take heed to track whenever you edit a notice record and browse your emails, unexpectedly! the reason is, your working method permits the concurrency of projects, very like the Java platform which deals a variety of periods to execute concurrent projects inside of a Java application. "Java 7 Concurrency Cookbook" covers crucial beneficial properties of the Java concurrency API, with specific emphasis at the new features of model 7.

With every one model, Java raises the to be had performance to facilitate improvement of concurrent courses. This booklet covers crucial and worthwhile mechanisms incorporated in model 7 of the Java concurrency API, so that you could be capable of use them at once on your applications.

"Java 7 Concurrency Cookbook" contains recipes to assist you to in attaining every thing from the fundamental administration of threads and projects, to the recent Fork /Join framework, via synchronization mechanisms among projects, forms of concurrent initiatives that Java can execute, info buildings that has to be utilized in concurrent functions and the sessions of the library that may be customized.

With the step by step examples during this ebook you’ll be capable to observe crucial and invaluable positive factors of the Java 7 concurrency API.

What will you study from this e-book
* grasp the fundamentals of thread administration and synchronization sooner than diving into better point concurrency projects
* become familiar with interesting new concurrency gains of Java 7, together with the Phaser type and the Fork/Join Framework
* effectively delegate thread administration to executors
* customise one of the most priceless sessions of the Java concurrency API with real-world examples
* discover ways to use high-level Java utilities to regulate synchronization among threads
* Get a sneak peek at utilizing Eclipse and NetBeans for debugging concurrency code
* steer clear of issues of information inconsistency via studying the information constructions you need to use in concurrent functions
* reap the benefits of an advantage appendix filled with counsel that each programmer should still give some thought to whilst constructing a concurrent software


"Java 7 Concurrency Cookbook" is a pragmatic Cookbook filled with real-world suggestions. Intermediate–advanced point Java builders will study from task-based recipes to take advantage of Java’s concurrent API to application thread secure solutions.

Making Java Groovy


Making Java Groovy is a pragmatic instruction manual for builders who are looking to mixture Groovy into their daily paintings with Java. It starts off through introducing the most important variations among Java and Groovy—and how one can use them on your virtue. Then, it courses you step by step via lifelike improvement demanding situations, from internet purposes to net companies to machine purposes, and indicates how Groovy makes them more straightforward to place into production.

About this Book

You don't want the complete strength of Java while you're writing a construct script, an easy method application, or a light-weight net app—but that's the place Groovy shines brightest. This stylish JVM-based dynamic language extends and simplifies Java so that you can pay attention to the duty handy rather than handling minute information and pointless complexity.

Making Java Groov is a realistic consultant for builders who are looking to make the most of Groovy of their paintings with Java. It begins by means of introducing the most important variations among Java and Groovy and the way to take advantage of them for your virtue. Then, you'll concentrate on the events you face on a daily basis, like eating and developing RESTful net companies, operating with databases, and utilizing the Spring framework. You'll additionally discover the good Groovy instruments for construct strategies, trying out, and deployment and how you can write Groovy-based domain-specific languages that simplify Java development.

Written for builders accustomed to Java. No Groovy adventure required.

Purchase of the print booklet contains a loose booklet in PDF, Kindle, and ePub codecs from Manning Publications.

What's Inside
• more straightforward Java
• Closures, developers, and metaprogramming
• Gradle for builds, Spock for trying out
• Groovy frameworks like Grails and Griffon

About the Author

Ken Kousen is an self reliant advisor and coach focusing on Spring, Hibernate, Groovy, and Grails.

Table of Contents
<ol><h5>PART 1: on top of things WITH GROOVY</h5> • Why upload Groovy to Java?
• Groovy by means of instance
• Code-level integration
• utilizing Groovy good points in Java
<h5>PART 2: GROOVY TOOLS</h5> • construct approaches
• trying out Groovy and Java initiatives
<h5>PART three: GROOVY within the genuine WORLD</h5> • The Spring framework
• Database entry
• RESTful internet prone
• construction and trying out internet applications

Beginning Java Programming: The Object-Oriented Approach

A finished Java consultant, with samples, routines, case reviews, and step by step instructionBeginning Java Programming: the thing orientated strategy is an easy source for buying began with one of many world's such a lot enduringly renowned programming languages. in accordance with sessions taught through the authors, the e-book begins with the fundamentals and steadily builds into extra complex recommendations.

Cocoon 2 Programming: Web Publishing with XML and Java

Because of the tireless efforts of open-source builders, Cocoon has fast received visibility because the preeminent XML-based net publishing framework. regrettably, its documentation continues to be an important shortcoming. in case you are new to Cocoon, gaining a feeling of precisely what you are able to do with it may be tough, and really getting all started may be even tougher.

Extra resources for Learning Akka

Sample text

PartialFunction on the REPL: scala> val pf: PartialFunction[Any, Unit] = { case _: String => println("Got a String") } pf: PartialFunction[Any,Unit] = scala> pf("hey") Got a String • Reply to sender: In the example actor code, we then access the sender ActorRef via the sender() method. We can reply to the sender by sending it a message. We send back a "Pong" in this case. ): We send the message to the sender with the tell method that is invoked via the ! method. You'll note if you read the Java section that the sender must be specified, but here we are omitting any reference to a sender as it's implicit.

Feel free to explore other options. Typesafe has many user-submitted Activator templates that will demonstrate various technologies and approaches used together. To create a new Activator template, in a terminal/command prompt, type: activator new You will see the following. Choose from these featured templates or enter a template name: • minimal-akka-java-seed • minimal-akka-scala-seed • minimal-java • minimal-scala • play-java • play-scala You can hit Tab to view a list of all templates. Select the minimal-scala or minimal-java project depending on your language preference.

In Scala, which is still read as 'tell'. We define that there is nobody to respond to for this message as a parameter of the tell method in Java. In Scala, outside of an actor, this is implicit. noSender()); //Scala actorRef ! SetRequest("key", "value") [ 27 ] Starting Life as an Actor Because we are using TestActorRef, the call to tell will not continue until the request is processed. This is fine for a look at our first actor but it's important to note that this example does not expose the asynchronous nature of the Actor's API.

Download PDF sample

Rated 4.01 of 5 – based on 12 votes