5 ms·
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 (i
by mantrax5 12y ago
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?
- pron 12y agoThere's a lot of information on the blog[1] and in the documentation. 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-strands/ http://blog.paralleluniverse.co/2014/02/06/fibers-threads-st...