from Hacker News

Asynchronous ruby framework for websockets, eventsource and streaming

by lifo on 8/30/11, 1:14 PM with 14 comments

  • by lifo on 8/30/11, 1:32 PM

    Cramp is a fully asynchronous web framework that's very good at dealing with thousands of open connections. It supports WebSockets (latest protocol) and Server-sent Events out of the box. Optionally, supports using Ruby 1.9 fibers to prevent spaghetti evented code - which means seamless Active Record integration.
  • by sshconnection on 8/30/11, 4:22 PM

    Goliath has a websockets branch and also supports eventsource and streaming pretty easily. If it's something you need, definitely look into Goliath as well.

    http://www.igvita.com/2011/08/26/server-sent-event-notificat... https://github.com/postrank-labs/goliath/tree/websockets

  • by petercooper on 8/30/11, 1:30 PM

    HN meta point here. This link was posted 18 days ago too, but with a forward slash at the end: http://news.ycombinator.com/item?id=2874982 (nonetheless it gets an upvote again for being cool). Potential fix/update for news.arc on this issue or just a useful trick to let slide? :-)
  • by chetan51 on 8/30/11, 2:43 PM

    1. Does this work with Rails?

    2. Generally, the "Hello World" for a real-time framework is a simple chat application.

  • by hamidpalo on 8/30/11, 1:35 PM

    I would really love to see some perf comparisons vs C# or Java.
  • by bascule on 8/30/11, 5:21 PM

    This looks cool, but I wish it were http://socket.io compatible