I'm highly interested in all of this, but I can't understand a damn thing from the article.
How does Quasar implement fibers? How is code transformed to CSP (is it at all?) Where are the yielding points, etc?
How does Quasar implement fibers? How is code transformed to CSP (is it at all?) Where are the yielding points, etc?
While fibers support CSP just like in Go (and can run Erlang-like fibers), in the code here they don't. They simply use fiber-blocking (rather than thread-blocking) IO. So the servlet container assigns a fiber per request, and the call to the microservices (via Apache HTTP client) blocks the fiber but not the thread.
[1]: In particular: http://blog.paralleluniverse.co/2014/02/06/fibers-threads-st...