SlideShare a Scribd company logo
Building Massively Scalable
Applications with Akka
                      Vikas Hazrati
                    Inphina Technologies




                                    1
what?




 Platform for next generation, event driven,
scalable and fault tolerant architectures on the
                     JVM.




                                              2
akka
A actor-based concurrency framework
Provides solutions for non blocking concurrency
Written in Scala, also works in Java
 Open source
 Now at 1.3-RC2 (to be released this weekend)


Lead developer and founder: Jonas Boner
JRockit, AspectWerkz, AspectJ, Terracotta


                                                  3
issues



concurrency

  scalability

fault tolerance



                      4
why akka

simpler concurrency

    event driven

scale up or scale out

   fault tolerance

      remoting

 scala and java api
                               5
aha actors!
message-Passing Concurrency


                                  share NOTHING


isolated lightweight processes


                communicates through messages


asynchronous and non-blocking
                                             6
actors
defined in the 1973 paper by Carl Hewitt
popularized by Erlang


alleviates the dev
from explicit locking
and thread management


easy to write concurrent and parallel systems
actors like objects BUT dont share state
                                                7
actor models
Thread-based
Event-based
       • Very lightweight


       • can easily create millions on a single
       workstation


       (6.5   million on 4 G RAM)

                                              8
9
defining an actor




               10
firing messages
bang bang bang




                              11
send anything




           12
fault tolerance
let it crash
linked set of actors




                                    13
all for one




         14
one for one




         15
supervisor hierarchies




                    16
fault management




              17
other concepts

                 Akka STM


Remote Actors




                 Akka Serialization
   Persistence



                                      18
problem statement




               19
considerations




            20
hmm...

   STM – X

Serialization – X

Persistence – X

Remoting – ?/X



                        21
22
23
24
issues




maxing out on the os threads




                               25
dispatchers
thread based – dedicated os thread
  bound


event based – backed by pool of
 threads


priority event based
work stealing
                                     26
27
ala carte'




        28
used in ...




         29
more information




http://akka.io/docs/akka/1.3-RC1/intro


http://thoughts.inphina.com/tag/akka/



                                         30
Everyone ! “Thanks”



vhazrati@inphina.com
@vhazrati




                               31

More Related Content

PPTX
Getting groovier-with-vertx
PPT
Ch5 threads galvin
PPT
A Reflective Platform for Highly Adaptable Multi-Cloud Systems
PDF
Lightning talk unikernels
PPTX
Unik: Unikernel Backend to Cloud Foundry
PPSX
Jisc RSC Eastern VLE Forum Nov 2013 'MIS Integration'
PPTX
Upgrade to moodle2 event 30th march 2012
PPT
Jisc RSC Eastern Technical Managers forum 'Janet' presentation
Getting groovier-with-vertx
Ch5 threads galvin
A Reflective Platform for Highly Adaptable Multi-Cloud Systems
Lightning talk unikernels
Unik: Unikernel Backend to Cloud Foundry
Jisc RSC Eastern VLE Forum Nov 2013 'MIS Integration'
Upgrade to moodle2 event 30th march 2012
Jisc RSC Eastern Technical Managers forum 'Janet' presentation

Viewers also liked (14)

PDF
Pick1 for Transport for London v1.0
PDF
Real World Akka Actor Recipes JavaOne 2013
PDF
Testing Your Application On Google App Engine
PDF
Paolo Privitera - DigitalWeek 2011 - Marketing Innovation 2011 - Doochoo Pick1
PDF
How Reactive Streams & Akka Streams change the JVM Ecosystem
PPTX
Developing distributed applications with Akka and Akka Cluster
PPTX
Akka Actor presentation
PDF
Reactive Stream Processing with Akka Streams
PDF
Akka - A Brief Intro
PDF
Lightbend Lagom: Microservices Just Right
PDF
Introducing Akka
KEY
Introduction to Actor Model and Akka
PDF
Understanding Akka Streams, Back Pressure, and Asynchronous Architectures
PDF
Akka in 100 slides or less
Pick1 for Transport for London v1.0
Real World Akka Actor Recipes JavaOne 2013
Testing Your Application On Google App Engine
Paolo Privitera - DigitalWeek 2011 - Marketing Innovation 2011 - Doochoo Pick1
How Reactive Streams & Akka Streams change the JVM Ecosystem
Developing distributed applications with Akka and Akka Cluster
Akka Actor presentation
Reactive Stream Processing with Akka Streams
Akka - A Brief Intro
Lightbend Lagom: Microservices Just Right
Introducing Akka
Introduction to Actor Model and Akka
Understanding Akka Streams, Back Pressure, and Asynchronous Architectures
Akka in 100 slides or less
Ad

Similar to Building Massively Scalable Applications With Akka (20)

PPTX
Docker Demystified for SB JUG
PPTX
Supporting Concurrency Abstractions in High-level Language Virtual Machines
PPTX
Keynote at Gluecon 2011 by Marten Mickos, CEO, Eucalyptus Systems
PDF
Martin Odersky: What's next for Scala
PPTX
Issues of OpenStack multi-region mode
PDF
Think evo and use evo
PDF
Javaforum 20110915
PDF
How Java 19 Influences the Future of Your High-Scale Applications .pdf
PDF
Quantum - Virtual networks for Openstack
PDF
UniK - a unikernel compiler and runtime
PDF
Build Cloud Applications with Akka and Heroku
PDF
Peyton jones-2011-parallel haskell-the_future
PDF
Simon Peyton Jones: Managing parallelism
PDF
[Tech Talks] Typesafe Stack Introduction
PDF
Introduction to hazelcast
PDF
We all need friends and Akka just found Kubernetes
PPTX
Java Class1
PDF
Agile Lab_BigData_Meetup_AKKA
PDF
Lund security workshop_presentation
PDF
Dockerfy Your CI/CD - DevOpsDays Austin 2014
Docker Demystified for SB JUG
Supporting Concurrency Abstractions in High-level Language Virtual Machines
Keynote at Gluecon 2011 by Marten Mickos, CEO, Eucalyptus Systems
Martin Odersky: What's next for Scala
Issues of OpenStack multi-region mode
Think evo and use evo
Javaforum 20110915
How Java 19 Influences the Future of Your High-Scale Applications .pdf
Quantum - Virtual networks for Openstack
UniK - a unikernel compiler and runtime
Build Cloud Applications with Akka and Heroku
Peyton jones-2011-parallel haskell-the_future
Simon Peyton Jones: Managing parallelism
[Tech Talks] Typesafe Stack Introduction
Introduction to hazelcast
We all need friends and Akka just found Kubernetes
Java Class1
Agile Lab_BigData_Meetup_AKKA
Lund security workshop_presentation
Dockerfy Your CI/CD - DevOpsDays Austin 2014
Ad

More from IndicThreads (20)

PPTX
Http2 is here! And why the web needs it
ODP
Understanding Bitcoin (Blockchain) and its Potential for Disruptive Applications
PPT
Go Programming Language - Learning The Go Lang way
PPT
Building Resilient Microservices
PPT
App using golang indicthreads
PDF
Building on quicksand microservices indicthreads
PDF
How to Think in RxJava Before Reacting
PPT
Iot secure connected devices indicthreads
PDF
Real world IoT for enterprises
PPT
IoT testing and quality assurance indicthreads
PPT
Functional Programming Past Present Future
PDF
Harnessing the Power of Java 8 Streams
PDF
Building & scaling a live streaming mobile platform - Gr8 road to fame
PPTX
Internet of things architecture perspective - IndicThreads Conference
PDF
Cars and Computers: Building a Java Carputer
PPTX
Scrap Your MapReduce - Apache Spark
PPT
Continuous Integration (CI) and Continuous Delivery (CD) using Jenkins & Docker
PPTX
Speed up your build pipeline for faster feedback
PPT
Unraveling OpenStack Clouds
PPTX
Digital Transformation of the Enterprise. What IT leaders need to know!
Http2 is here! And why the web needs it
Understanding Bitcoin (Blockchain) and its Potential for Disruptive Applications
Go Programming Language - Learning The Go Lang way
Building Resilient Microservices
App using golang indicthreads
Building on quicksand microservices indicthreads
How to Think in RxJava Before Reacting
Iot secure connected devices indicthreads
Real world IoT for enterprises
IoT testing and quality assurance indicthreads
Functional Programming Past Present Future
Harnessing the Power of Java 8 Streams
Building & scaling a live streaming mobile platform - Gr8 road to fame
Internet of things architecture perspective - IndicThreads Conference
Cars and Computers: Building a Java Carputer
Scrap Your MapReduce - Apache Spark
Continuous Integration (CI) and Continuous Delivery (CD) using Jenkins & Docker
Speed up your build pipeline for faster feedback
Unraveling OpenStack Clouds
Digital Transformation of the Enterprise. What IT leaders need to know!

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Machine learning based COVID-19 study performance prediction
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
MYSQL Presentation for SQL database connectivity
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Spectroscopy.pptx food analysis technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Approach and Philosophy of On baking technology
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Cloud computing and distributed systems.
PPTX
A Presentation on Artificial Intelligence
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Encapsulation_ Review paper, used for researhc scholars
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
20250228 LYD VKU AI Blended-Learning.pptx
Assigned Numbers - 2025 - Bluetooth® Document
Machine learning based COVID-19 study performance prediction
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
MYSQL Presentation for SQL database connectivity
The AUB Centre for AI in Media Proposal.docx
Empathic Computing: Creating Shared Understanding
Spectroscopy.pptx food analysis technology
Review of recent advances in non-invasive hemoglobin estimation
Approach and Philosophy of On baking technology
A comparative analysis of optical character recognition models for extracting...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Cloud computing and distributed systems.
A Presentation on Artificial Intelligence
gpt5_lecture_notes_comprehensive_20250812015547.pdf

Building Massively Scalable Applications With Akka