3 ms·
There'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 he
by pron 12y ago
There'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...