Using Celluloid for a statistic app

99 views
Skip to first unread message

Andy Willson

unread,
Nov 1, 2012, 11:03:27 PM11/1/12
to cellulo...@googlegroups.com
I read a lot about Celluloid and I'm trying to find out if I can use it for my project and what setup I should choose.

I would like to:

* Push JSON data to a server using TCP or UDP
* Store the data in a database
* Stream the data via Websockets to clients

I hope you can guide me into the right direction.

Thanks a lot.

Julien Ammous

unread,
Nov 5, 2012, 5:00:18 AM11/5/12
to cellulo...@googlegroups.com
Celluloid by itself won't do much for you in this regard but you can have a look at celluloid-io and reel.

Tony Arcieri

unread,
Nov 5, 2012, 4:11:54 PM11/5/12
to cellulo...@googlegroups.com
On Thu, Nov 1, 2012 at 8:03 PM, Andy Willson <awill...@gmail.com> wrote:
* Push JSON data to a server using TCP or UDP
* Store the data in a database
* Stream the data via Websockets to clients

You might consider using an HTTP API for pushing data to the server. Reel supports end-to-end streaming, so it'd be pretty easy to model the incoming data stream as chunked HTTP. Reel also supports Websockets.

For database access, use the database library of your choice (e.g. ActiveRecord, Sequel). For this to work correctly you should probably use an actor per connection. This is unfortunately underdocumented at the moment but something I'd love to get documented better ;)

--
Tony Arcieri

Reply all
Reply to author
Forward
0 new messages