Hi Haddock,

Fibers as such do not prevent you from blocking. Pretty much like in Akka, 
if you use blocking I/O you block the underlying thread, which is then of 
course not available for other fibers or actors. So async I/O it is. 
The fibers approach to it is to provide a FiberAsync wrapper, see the 
section "Transforming Asynchronous Operations into Fiber-Blocking 
Operations, and Fiber-Blocking IO" in the blog you refer to.

This is also a nice example for fibers value proposition - it provides this 
wrapper to allow you to continue to program in a sequential / imperative 
style, without using callbacks. This is true for fibers in general, the 
whole idea is that you introduce a sub-thread level unit of concurrency, 
but don't change the programming model - much like goroutines in go. 

When using Akka, you opted for a different model altogether already - async 
messaging. Therefore I don't think it would be a good fit, it would not be 
idiomatic Akka, in fact it would be a programming model contradicting 
Akka's ideas. To me, doing async I/O either with Future-based APIs and 
pipeTo, or using Reactive Streams, seems a much better fit for Akka.

Lutz


Am Montag, 26. Oktober 2015 11:39:20 UTC+1 schrieb Haddock:
>
> Hello,
>
> I find the idea of fibers in Quasar quite compelling, see this blog 
> <http://blog.paralleluniverse.co/2014/02/06/fibers-threads-strands/>. 
> With the use of fibers threads are prevented from waiting for the response 
> to calls causing blocking IO. Would you consider to implement that kind of 
> approach as well in Akka?
>
> Cheers, Haddock
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to