Download Akka in Action by Raymond Roestenburg PDF

By Raymond Roestenburg

Akka is a Scala-based toolkit that simplifies constructing concurrent allotted purposes. excellent for high-volume functions that have to scale quickly, Akka is a good origin for event-driven structures that are looking to scale elastically up and out on call for, either on multi-core processors and throughout server nodes.
Akka in motion is a entire instructional on construction message-oriented structures utilizing Akka. The booklet takes a hands-on process, the place each one new proposal is by way of an instance that indicates the way it works, tips to enforce the code, and the way to check it. Readers will discover a message-oriented event-driven program in Akka and in addition take on key concerns like find out how to version immutable messages and area types, and practice styles like occasion Sourcing, and CQRS. The ebook concludes with useful suggestion on how you can music and customise a procedure equipped with Akka.

Show description

Read or Download Akka in Action PDF

Similar enterprise applications books

The Story of Managing Projects: An Interdisciplinary Approach

Undertaking administration has been practiced for hundreds of thousands of years, yet just recently have enterprises all started to use systematic administration instruments and strategies to control complicated initiatives. ultra-modern ways to undertaking administration will be traced on to methodologies designed through the U. S. army and division of protection within the years after international struggle II.

Software Estimation Best Practices, Tools & Techniques: A Complete Guide for Software Project Estimators

Software program Estimation most sensible Practices, instruments & options covers all aspects of software program estimation. It presents an in depth clarification of a few of the equipment for estimating software program dimension, improvement attempt, rate, and time table, together with a complete clarification of try out attempt estimation. This distinctive table reference, for the beginner to specialist, additionally deals course on which tools are best for every of the various software program venture forms more often than not accomplished and standards for choosing software program estimation instruments.

Implementing Microsoft Dynamics AX 2012 with Sure Step 2012

Microsoft Dynamics AX is a accomplished firm source making plans (ERP) answer for midsize and bigger corporations that empowers humans to paintings successfully, deal with switch, and compete globally. Microsoft Dynamics yes Step is an implementation technique, a toolset, and an program to aid Dynamics companions (AX, CRM, NAV, GP, and SL) effectively enforce their Dynamics options corresponding to Dynamics AX.

Successes and Failures of Knowledge Management

Successes and screw ups of data administration highlights examples from throughout a number of industries, demonstrating the place the perform has been carried out well―and no longer so well―so others can research from those circumstances in the course of their wisdom administration trip. wisdom administration offers with how most sensible to leverage wisdom either internally and externally in firms to enhance decision-making and facilitate wisdom trap and sharing.

Additional info for Akka in Action

Sample text

The Main object is a simple Scala App that you can run just like any other Scala App. It's similar to a Java class with a main method. Below is the listing of the Main class: ©Manning Publications Co. We welcome reader comments about anything in the manuscript - other than typos and other simple mistakes. These will be cleaned up during production of the book by copyeditors and proofreaders. actorOf( Props(new RestInterface()), "httpInterface" ) newHttpServer(api) ! Bind(interface = host, port = port) } A Spray-can App Load a configuration file Get some HTTP configuration values Create the top level REST Interface actor Start a Spray HTTP server Main extends App with the SprayCanHttpServerApp trait.

Right now it always fails since it is not implemented yet, as is expected in Red-Green-Refactor style, where you first make sure the test fails (Red), then implement the code to make it pass (Green), after which you might refactor the code to make it nicer. First we will test the silent actor in a single-threaded environment. We've included the TestKit already since we are also going to test if everything works well in a multi-threaded environment a bit later, which is not necessary if you only use the TestActorRef .

ActorOf(props, "filter-1") filter filter filter filter filter filter filter filter filter ! ! ! ! ! Event(1) Event(2) Event(1) Event(3) Event(1) Event(4) Event(5) Event(5) Event(6) val eventIds = receiveWhile() { case Event(id) if id <= 5 => id } eventIds must be(List(1, 2, 3, 4, 5)) expectMsg(Event(6)) } Send a couple of events, including duplicates Receive messages until the case statement does not match anymore Assert that the duplicates are not in the result The test uses a receiveWhile method to collect the messages that the testActor receives until the case statement matches.

Download PDF sample

Rated 4.34 of 5 – based on 37 votes