Composable Futures With Akka Featuring Java, Scala and Akka Code Examples This book explains how to write concurrent programs that can run in. Composable Futures With Akka is intended for ‘the rest of us’ – Java and Scala programmers who would like to quickly learn how design. Writing concurrent programs that can run in multiple threads and on multiple cores is crucial but daunting. Composable futures provide a convenient abstraction.

| Author: | Mikalar Yokus |
| Country: | Slovenia |
| Language: | English (Spanish) |
| Genre: | Medical |
| Published (Last): | 7 June 2006 |
| Pages: | 497 |
| PDF File Size: | 20.76 Mb |
| ePub File Size: | 4.43 Mb |
| ISBN: | 774-8-35050-345-6 |
| Downloads: | 92126 |
| Price: | Free* [*Free Regsitration Required] |
| Uploader: | Tygoktilar |
What are composable futures? Akka futures are being subsumed into Scala 2.
A chapter is dedicated to java. Multicore concurrency requires multi-threaded programming, but that is hard to do properly. This book explains how to write concurrent programs that can run in multiple threads and on multiple cores. Akka futures is integrated with Akka actors for distributed computing.

Akka Futures can also be preset to a value or exception when created. Composable Futures with Akka 2.
You can also use the SBT console to try code snippets interactively. Some familiarity with git is assumed. Special considerations for programming with futures are discussed.
Composable Futures with Akka 2.0
Further information for programming in each language is provided, usually with code snippets. Target Audience Composable Futures with Akka 2. About Contents Change history No longer available.
Mike has written three books and over fifty articles on software technology. Akka futures integrate easily with existing software projects.
Composable Futures with Akka | Mike Slinn’s Weblog
Cmposable book provides complete reference information about the classes and methods for working fufures Akka futures. He has been recognized as a software expert in US federal court. Existing projects can use this technique to rapidly leverage the extra functionality of Akka futures, and thereby extend the functionality of legacy software. If you know Java and are learning Scala, comparing the two programs will be instructive.
Mike is a hands-on architect who enjoys programming and mentoring. Composable futures mean that operations on a future or a collection of futures can be chained together without blocking; for example, transformations such as map can be applied to a composable future.
Other implementations of futures are limited. You should either be familiar with programming using Java generics or some Scala before reading this book. The value of an Akka Future will normally become available sometime akoa creation, or it may incorporate an exception raised during computation. The Akka and Twitter implementations are much more advanced. An overview of futures is provided through code examples. Java composabld Scala can both use Akka Futures The futures implementation bundled in the free, open source Akka alka is written in Scala.
Mike has consulted on many legal cases and performed project failure analysis, and has researched and testified in cases involving intellectual property issues such as patent infringement and trade secret misappropriation. He is often engaged to turn around projects and can provide interim technical leadership for companies in transition.
In general, futures are preferred for one-off, uncoordinated, stateless jobs, which can range in duration from a web request of 5ms to data processing jobs of hours or more. The Promises chapter in the book includes a case study that shows how easy it is to integrate Akka futures into existing code. Each method of the Akka futures implementation is covered in detail; first introduced with short explanation, then followed by the Java signature and the Scala signature.
Dozens of complete working code examples are provided with the book, at least one per method in each language. Similar programs were written in Java and Scala. About The Author Mike Slinn is a principal at Micronautics Research Corp- orationa contract software development firm that focuses on cutting-edge enterprise software technology.
Practical code examples are used to teach concepts, backed up by ‘just enough’ theory.
Composable Futures with Akka
Actors are generally preferred for coordinated or stateful activities. The futures implementation bundled in the free, open source Akka stack is written in Compowable. The futures implementation provided by Akka 1.
The code is provided as a git repository, which you can update any time. Akka futures has a Java API, and it provides Java programs with almost every bit of the same futures capability available to Scala programs.

When to use futures and when to use actors? Both blocking and non-blocking operations can be performed on Akka futures.
For example, transformations and operations on collections of futures are supported, along with numerous asynchronous callbacks. Mike Slinn is a principal at Micronautics Research Corp- orationa contract software development firm that focuses on cutting-edge enterprise software technology. Java programmers do not require prior experience with Scala; Scala programmers do not need to know Java.
