sinatra + jruby

84 views
Skip to first unread message

Kenny Stone

unread,
Dec 4, 2010, 4:21:00 PM12/4/10
to sina...@googlegroups.com
What is the recommended web server with jruby and sinatra?

Secondly, are there any event machine based web servers that sinatra can use?  I'm trying to avoid thread synchronization with the EM reactor loop.

Thanks,

Kenny Stone

Konstantin Haase

unread,
Dec 4, 2010, 5:18:08 PM12/4/10
to sina...@googlegroups.com

On Dec 4, 2010, at 22:21 , Kenny Stone wrote:

> Secondly, are there any event machine based web servers that sinatra can use? I'm trying to avoid thread synchronization with the EM reactor loop.

There is an experimental version of thin (actually, just the HTTP parser is written in C, so it is not that experimental) and there will be some future release supporting JRuby officially.

Konstantin

Jason Rogers

unread,
Dec 4, 2010, 9:32:40 PM12/4/10
to sina...@googlegroups.com
We use Mongrel and Jetty.

> --
> You received this message because you are subscribed to the Google Groups
> "sinatrarb" group.
> To post to this group, send email to sina...@googlegroups.com.
> To unsubscribe from this group, send email to
> sinatrarb+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/sinatrarb?hl=en.
>

--
Jason Rogers

"I am crucified with Christ: nevertheless I live;
yet not I, but Christ liveth in me: and the life
which I now live in the flesh I live by the faith of
the Son of God, who loved me, and gave
himself for me."
    Galatians 2:20

Karl Baum

unread,
Dec 4, 2010, 9:54:01 PM12/4/10
to sina...@googlegroups.com

Mike Abner

unread,
Dec 5, 2010, 6:32:56 PM12/5/10
to sina...@googlegroups.com
We use Tomcat.

Zachary Scott

unread,
Dec 5, 2010, 6:43:41 PM12/5/10
to sina...@googlegroups.com
I would love to see some documentation about jruby in the sinatra book!

Perhaps in the deployment section, or where ever else jruby specific
implementations take place!

> +unsub...@googlegroups.com.


> > For more options, visit this group at
> http://groups.google.com/group/sinatrarb?hl=en.
> >
>
>
> --
>
> You received this message because you are subscribed to the
> Google Groups "sinatrarb" group.
> To post to this group, send email to
> sina...@googlegroups.com.
> To unsubscribe from this group, send email to sinatrarb

> +unsub...@googlegroups.com.


> For more options, visit this group at
> http://groups.google.com/group/sinatrarb?hl=en.
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "sinatrarb" group.
> To post to this group, send email to sina...@googlegroups.com.
> To unsubscribe from this group, send email to sinatrarb

> +unsub...@googlegroups.com.

signature.asc

WaYdotNET

unread,
Dec 6, 2010, 5:06:14 AM12/6/10
to sinatrarb
we use glassfish

On 6 Dic, 00:43, Zachary Scott <zachary.s.sc...@gmail.com> wrote:
> I would love to see some documentation about jruby in the sinatra book!
>
> Perhaps in the deployment section, or where ever else jruby specific
> implementations take place!
>
> On Sun, 2010-12-05 at 15:32 -0800, Mike Abner wrote:
> > We use Tomcat.
>
> > On Sat, Dec 4, 2010 at 6:54 PM, Karl Baum <karl.b...@gmail.com> wrote:
> >         We use trinidad.
>
> >        https://github.com/calavera/trinidad
>
> >         On Dec 4, 2010, at 9:32 PM, Jason Rogers wrote:
>
> >         > We use Mongrel and Jetty.
>
> >         > On Sat, Dec 4, 2010 at 4:21 PM, Kenny Stone
>  signature.asc
> < 1KVisualizzaScarica

Tom Purl

unread,
Dec 7, 2010, 1:18:49 PM12/7/10
to sina...@googlegroups.com
>> On Sat, Dec 4, 2010 at 4:21 PM, Kenny Stone
><[3]kennet...@gmail.com> wrote:
>>> What is the recommended web server with jruby and sinatra?

I'm sorry if someone else already asked this, but when you ask about
servers, what are you requirements other than event machine
compatibility? Are you trying to run a large cluster of small apps
(like you would with Thin and lighttpd in the C Ruby world)? Or are
you trying to run something within an organization that has already
standardized on an app server like Websphere?

The short answer is that pretty much anything will work well, but it
depends. I'm running some Sinatra apps on top of JBoss 5 because I
don't control the app server. However, it does work very well with
Sinatra apps.

HTH!

Tom Purl

Kenny Stone

unread,
Dec 7, 2010, 1:48:36 PM12/7/10
to sina...@googlegroups.com
I'm looking for simple (but not webrick).

The event machine compatibility is a 'nice to have'.  I can work around that.  Sounds like the 'thin' guys are pretty close to having a nice jruby solution.

Thanks for all the replies.

Kenny


--

Paul Walker

unread,
Dec 9, 2010, 4:35:43 AM12/9/10
to sina...@googlegroups.com
We use Tomcat and Winstone for production/demo deployment as we actually have a mix of Java code and servlets.  For pure ruby development, our app runs in WeBrick/Mongrel and requires all the jars at startup when it recognizes it's in that context.  I would LOVE to get Jetty working again for development mode and actually take in the source of multiple Java projects including jruby-rack source, but I haven't cracked that nut yet.

Also, Mizuno is a pretty solid thing to watch right now if you're Jetty bent and don't have to worry about actual Java code: https://github.com/matadon/mizuno

We use buildr (http://buildr.apache.org/) to piece everything together on the buildbox.  It's not been easy, but at least it gives use code control of the builds.

I second Zachary's sentiment though, much more discussion and then documentation re JRuby from would be awesome.  I certainly have not found a clean solution.  I would think that there would be more Java shops making the transition to JRuby in some form or another, but I live in the enterprise world right now...and it doesn't seem to be :-(.

~paul

Tobias Crawley

unread,
Dec 9, 2010, 2:15:58 PM12/9/10
to sinatrarb
Another option is TorqueBox (http://torquebox.org) - a robust, simple
to use rails/rack app server built on top of JBoss.

Tobias
> > For more options, visit this group athttp://groups.google.com/group/sinatrarb?hl=en.

Don Hill

unread,
Dec 9, 2010, 7:42:09 PM12/9/10
to sina...@googlegroups.com

How about jetty it use to be a 580k jar. Doesn't feel like a sevlet engine

Reply all
Reply to author
Forward
0 new messages