2 ms·
Crystal is a super cool project and doing websockets with Kemal (Crystals Sinatra equivalent) was one of the easiest ways of hosting websockets I've encountered
by WJW 9y ago
Crystal is a super cool project and doing websockets with Kemal (Crystals Sinatra equivalent) was one of the easiest ways of hosting websockets I've encountered so far.
That said, I'm eagerly waiting for true paralellism support since the use case we have in mind would greatly benefit from that. Some of the testing tools are also not quite as polished as Rspec (yet).
- cyberferret 9y agoActually, the two projects I am currently working on use Websockets, and for certain, Crystal is the fastest and easiest way to prototype a Websockets server, and then turn it into a production server in quick time.
- sdogruyol 9y agoHere's a great blog post about Kemal and Websockets :) http://kemalcr.com/blog/2016/11/13/benchmarking-and-scaling-websockets-handling-60000-concurrent-connections/ http://kemalcr.com/blog/2016/11/13/benchmarking-and-scaling-...
- sdogruyol 9y agoKemal: Fast, Effective, Simple web framework for Crystal Website: http://kemalcr.com/ http://kemalcr.com/ P.S: I'm the author of Kemal :)
- WJW 9y agoSo cool! I really enjoy working with Kemal. :) The State of Crystal at v0.21 article (https://crystal-lang.org/2017/02/24/state-of-crystal-at-0.21.html https://crystal-lang.org/2017/02/24/state-of-crystal-at-0.21...) stated that multithreading with work stealing was coming "soon" and that you already managed to run kemal in parallel. Can you share anything about the current state of that project?
- sdogruyol 9y agoEven though it's experimental I've successfully compiled Kemal with multi-thread support. The throughput was OK. It's promising and will definitely help CPU bound apps :) You can check the wiki for more info https://github.com/crystal-lang/crystal/wiki/Threads-support https://github.com/crystal-lang/crystal/wiki/Threads-support
- nurettin 9y agoIs it possible to pass a cookie (session id) using websockets with kemal? or do I have to manage authentication manually?
- solisoft 9y agoI use to send my JWT token to check validity of the user's session