This presentation was recorded at GOTO Aarhus 2012 http://gotocon.com Jonas Bonér - Specialist at Large. Founder of Akka and AspectWerkz @jonasboner4510 ABSTRACT This talk will cover several different aspects of Java concurrency, including: - What Akka is, how it is implemented and how you can make use of it in your application - A walkthrough of some of the new Java concurrency features (in JSR166), in particular the new Fork/Join library - How Akka is utilizing these concurrency features in its Actor and Future libraries - New features of Akka 2 including self-healing actor systems, location transparency, routing/load-balancing and clustering TIMECODES 0:00 Introduction 0:12 Scale UP & Scale OUT 2:07 What is an Actor? 3:41 Program at a Higher Level 6:24 Distributable by Design 8:50 What can I use Actors for? 10:15 Carl Hewitt's definition 11:31 4 core Actor operations 14:24 CREATE • CREATE creates a new instance of an Actor 15:43 CREATE Actor 17:55 Actors can form hierarchies 19:04 Name resolution - like a file-system 22:18 SEND message 23:40 Full example 24:19 Remote deployment Just feed the ActorSystem with this configuration 26:49 BECOME 27:18 Why would I want to do that? 32:18 Routers 32:38 Router + Resizer 33:24 New concurrency utilities in Java 7 33:38 Algorithm 34:53 Other uses of Fork/Join 35:36 It started with a benchmark on our single 48-core box 35:48 Default dispatcher using ThreadPoolExecutor 39:56 Failure Recovery in Java/C/C# etc. 45:34 SUPERVISE Actor 46:26 Manage failure https://twitter.com/gotocon https://www.facebook.com/GOTOConference http://gotocon.com
Get notified about new features and conference additions.