I've browsed around about Quasar fiber yesterday and it seems that it's more lightweight than Java thread based on the following demo. My questions would be:

  • Are there any scenarios that thread is more appropriate than fiber?
  • On what scenarios should I avoid using Fiber?

1 Answer 1


A fiber should be used when its body blocks very often waiting on other fibers. For long-running computations that rarely block, traditional threads are preferable - http://docs.paralleluniverse.co/quasar/

So for something like multiple network IO threads that all block each other frequently, use fibers. For something more long running which doesn't get blocked as much (i.e. some background task) use a regular thread.

The other thing to consider is integration. Spring integrates well with standard java thread library, but may not with Quasar's library.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.