Indic threads pune12-akka-actors
Upcoming SlideShare
Loading in...5
×
 

Indic threads pune12-akka-actors

on

  • 887 views

The 7th Annual IndicThreads Pune Conference was held on 14-15 December 2012. http://pune12.indicthreads.com/

The 7th Annual IndicThreads Pune Conference was held on 14-15 December 2012. http://pune12.indicthreads.com/

Statistics

Views

Total Views
887
Views on SlideShare
887
Embed Views
0

Actions

Likes
0
Downloads
2
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Indic threads pune12-akka-actors Indic threads pune12-akka-actors Presentation Transcript

  • Implementing Lock Free Concurrency with AKKASameer Arora
  • Agenda● Actor Model for Concurrency.● Actors V Threads.● Sleeping Barber Problem.● Introduction to Akka.● Demo● Questions & Feedback 2
  • Actors● Are Objects that communicate only by means of Asynchronous messagepassing.● Do not expose their state to other objects/actors.● Provide a Non Blocking,highly performant event-driven programming model . 3
  • Actors V Threads● Writing Concurrent programs using Threads is too hard to write and test.● Shared Memory Model causes Race Conditions, Lowered throughput, deadlocks.● Actors are Lightweight - consume ~600 bytes memory.● Do not map one-to-one with OS Threads.● Actors remain in a suspended state – function via Schedulers running underneath.● Actors Offer a Lock-free approach to concurrency – helps in Scaling and increased 4 Throughput.
  • Sleeping Barber Problem 5
  • AKKA● Provides a Run time for Actors Programming model.● Manages the Actors life-cycle● Has API for Java and Scala .● Provides Integration with Spring Integration,Apache Camel, Google Guice etc. 6
  • DemoSleeping Barber problem with AkkaSimple Routing Application on Akka 7
  • Questions/Comments/Feedback 8