Hacker News new | past | comments | ask | show | jobs | submit login

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).




Kemal: Fast, Effective, Simple web framework for Crystal Website: http://kemalcr.com/

P.S: I'm the author of Kemal :)


So 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...) 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?


Even 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


Is it possible to pass a cookie (session id) using websockets with kemal? or do I have to manage authentication manually?


I use to send my JWT token to check validity of the user's session


Actually, 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.


Here's a great blog post about Kemal and Websockets :) http://kemalcr.com/blog/2016/11/13/benchmarking-and-scaling-...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: