Akka Presentation Schule@synyx
Upcoming SlideShare
Loading in...5
×
 

Akka Presentation Schule@synyx

on

  • 1,295 views

Demonstration of a web crawler implemented using Akka. Link to the sources coming soon.

Demonstration of a web crawler implemented using Akka. Link to the sources coming soon.

Statistics

Views

Total Views
1,295
Views on SlideShare
1,295
Embed Views
0

Actions

Likes
0
Downloads
6
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Adobe PDF

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

Akka Presentation Schule@synyx Akka Presentation Schule@synyx Presentation Transcript

  • Florian Hopfhttp://blog.florian-hopf.de
  • Download Page Link downloaded already?Parse Links & Content Index Content
  • Sequential Example
  • 1. Scale Up
  • Thread A Page Thread B Store
  • Synchronize Thread A Page Thread B and Suffer Store
  • Actor-Framework
  • Message Passing Concurrency
  • Thread A Thread B Actor A Actor B
  • Master Page Fetch Store Index Page Page Page Indexed Page Content IndexingParsing Actor Actor
  • Simple Example
  • Actors are accessed by references
  • Reference Actor Instance
  • Reference Actor Actor n Instance Instance Actor Instances
  • Fetching Pages in parallel
  • 2. Scale Out
  • References can pointto remote machines
  • akka {     actor {     deployment {     /serviceA/aggregation {     router = "round­robin"     nr­of­instances = 10     target {     nodes =  ["akka://app@10.0.0.2:2552",  "akka://app@10.0.0.3:2552"]     }     }     }     }    }
  • 3. Fault Tolerance
  • Actors are supervised by their parent
  • Master Page Store Page IndexingParsing Actor Actor
  • Reference Actor Instance
  • Master Page Store Page IndexingParsing Actor Actor
  • Reference Actor Instance
  • Actions:EscalateResumeRestart Stop
  • Network fail on download
  • Master Page Store Page IndexingParsing Actor Actor
  • ResumePageParsingActor, resend message
  • Indexing Failure, I/O Error
  • Master Page Store Page IndexingParsing Actor Actor
  • Restart Master
  • Scaling Up Scaling OutFault Tolerance
  • Software Transactional Memory Durable Mailboxes
  • http://akka.io