Akka Actors: Need an example to understand some basics

I'm tinkering with Akka and need some advice how to implement something specific i have in mind. I want to have an actor which i can send a DownloadFile(URI, File) message and downloads it. Since this can be paralleled, I don't want to download file after file but have a limit of concurrent downloads.

Whats the intended way to model something like this with Akka? Other things that come to mind are: What happens if one of the "worker" actor dies for some reason? How to retry the download? Etc. etc.

I know this is a very huge question but i hope someone takes the time to answer it! Thank you!

15
задан Wallkobacka 4 January 2011 в 14:04
поделиться