Re: [jruby-user] Which Rack web server?
Theo Hultberg <[email protected]> Fri, 1 May 2015 14:17:49 +0200
| Newsgroups | gmane.comp.lang.jruby.user |
|---|---|
| Message-ID | <CAMR1f-e-mzdOq4N55uKQok5dJeduyvu5-jKnOaXvgmw39rJ19w@mail.gmail.com> |
--bcaec5161b4f908b6805150434c6 Content-Type: text/plain; charset=UTF-8 IIRC Fishwife also does not support Java 6 because of it's use of Jetty 9. On the other hand both Ruby 1.8 and Java 6 are EOL, so I don't think anyone can be blamed for not supporting them anymore. I guess you could argue that JRuby in 1.8 mode is not EOL just because MRI 1.8 is EOL, though, but still, legacy code bases that can't be updated will also require legacy versions of dependencies. T# On Thu, Apr 30, 2015 at 10:50 AM, Christian MICHON < [email protected]> wrote: > Fishwife seems to be a well maintained product. > > Yet it may not work with legacy rack applications, as it is not compatible > with ruby 1.8 mode. In 1.8 mode, you'll get systematically the following > 500 error: > [qtp1296674576-15] ERROR fishwife.RackServlet - On service: uninitialized > constant Fishwife::RackServlet::ASCII_8BIT > > But thanks for mentioning this gem Theo. :-) > > On Thu, Apr 30, 2015 at 9:21 AM, Theo Hultberg <[email protected]> wrote: > >> Christian, my bad, last I checked it was dead, but looking at the repo >> now it has had some activity. That said, the diff between now and two years >> ago is just updates between maintenance releases of Jetty and a setting for >> the min number of threads, so I'll revise my statement to "it basically >> hasn't been updated in years". That doesn't mean that it's bad or unstable, >> just that it might be hard to get bugs fixed. >> >> T# >> >> On Thu, Apr 30, 2015 at 8:10 AM, Christian MICHON < >> [email protected]> wrote: >> >>> @Theo: >>> >>> A small correction is needed on this specific sentence: "Mizuno is the >>> precursor to Fishwife, and it hasn't been updated in years" >>> >>> Mizuno had a new release 1 week ago and the last one before was less >>> than 9 months ago... >>> >>> >>> On Thu, Apr 30, 2015 at 8:00 AM, Theo Hultberg <[email protected]> wrote: >>> >>>> Our experience is that there doesn't exist a good, correct, performant >>>> rack server for JRuby. We've used most of them, for two use cases: embedded >>>> status APIs in long running applications and as the primary interface for >>>> applications with a HTTP API. >>>> >>>> We package our applications as standalone JAR files with JRuby and all >>>> gems, and run them with `java -jar ...`, and this rules our some of the >>>> options. Either because some servers just don't work when run that way >>>> because they assume they will be able to muck about with the file system >>>> any way they like, or because they need to be in control, they need to be >>>> the container of the application. >>>> >>>> These are the servers we've tried, and our experience. If your use case >>>> is different, for example serving Rails apps, this may not be your >>>> experience: >>>> >>>> * Fishwife is the only one we've found that doesn't have significant >>>> bugs and can be embedded. It's not perfect, but it works well for us. >>>> >>>> * Mizuno is the precursor to Fishwife, and it hasn't been updated in >>>> years. >>>> >>>> * Puma is nice and I'd really like to use it, but the error handling is >>>> buggy. It has often filled up disks with error messages. I think the worst >>>> of this has been fixed, but in our experience it doesn't handle connection >>>> errors very well. We stay well away from Puma. >>>> >>>> * Jubilee showed some great promise but then development stopped. We >>>> haven't tried the last released version, but the last version we tried had >>>> significant bugs around request body handling. >>>> >>>> * rack-jetty was abandoned several years ago and doesn't handle request >>>> bodies over 4 KiB. >>>> >>>> * I'm not aware of any major bugs in Trinidad, but it doesn't work when >>>> embedded. >>>> >>>> * Torquebox is also not embeddable, and version 4 is starting to feel >>>> like vaporware. >>>> >>>> * WEBrick works surprisingly well for status APIs that don't get called >>>> very often. >>>> >>>> As I said, our use case is very different from serving a Rails >>>> application, so your experience will probably be different. >>>> >>>> T# >>>> >>>> On Wed, Apr 29, 2015 at 12:04 AM, Benjamin Ortega <[email protected] >>>> > wrote: >>>> >>>>> We use Trinidad (multithreaded) and are satisfied with it. It's fast >>>>> enough and it scales and can be monitored nicely. We use Passenger for MRI >>>>> apps and have considered standardizing on Passenger or puma for everything, >>>>> but don't have any specific plans to do so. >>>>> >>>>> FWIW I think you have to buy Passenger Enterprise to run your app >>>>> multithreaded on Passenger. >>>>> >>>>> On Tue, Apr 28, 2015 at 4:34 PM, Christian MICHON < >>>>> [email protected]> wrote: >>>>> >>>>>> Mizuno (jetty). >>>>>> - fastest from what I measured with apache-bench on my machines >>>>>> - simplest configuration (almost none) >>>>>> >>>>>> Only drawback: CTRL-C does not work well on Windows (the java process >>>>>> will be detached and will keep running), you might need to implement a >>>>>> shutdown hook in your app. >>>>>> >>>>>> On Mon, Apr 27, 2015 at 9:29 PM, Doug Hathaway <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> Tomcat deployed via Warbler. >>>>>>> >>>>>>> On Mon, Apr 27, 2015 at 12:55 PM, John Joseph Bachir < >>>>>>> [email protected]> wrote: >>>>>>> >>>>>>>> Which Rack web server are folks using with JRuby? Any particularly >>>>>>>> bad or good experiences? >>>>>>>> >>>>>>>> I suppose the only ones that support threading are Puma and >>>>>>>> Passenger? >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> *Doug Hathaway* >>>>>>> http://www.dadesystems.com/ >>>>>>> [email protected] >>>>>>> (407) 680-3631 >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Christian >>>>>> >>>>> >>>>> >>>> >>> >>> >>> -- >>> Christian >>> >> >> > > > -- > Christian > --bcaec5161b4f908b6805150434c6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">IIRC Fishwife also does not support Java 6 because of it&#= 39;s use of Jetty 9. On the other hand both Ruby 1.8 and Java 6 are EOL, so= I don't think anyone can be blamed for not supporting them anymore. I = guess you could argue that JRuby in 1.8 mode is not EOL just because MRI 1.= 8 is EOL, though, but still, legacy code bases that can't be updated wi= ll also require legacy versions of dependencies.<div><div><div><div><br></d= iv><div>T#</div></div></div></div></div><div class=3D"gmail_extra"><br><div= class=3D"gmail_quote">On Thu, Apr 30, 2015 at 10:50 AM, Christian MICHON <= span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>></span> wrote:<br><blockquote= class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc soli= d;padding-left:1ex"><div dir=3D"ltr">Fishwife seems to be a well maintained= product.<div><br></div><div>Yet it may not work with legacy rack applicati= ons, as it is not compatible with ruby 1.8 mode. In 1.8 mode, you'll ge= t systematically the following 500 error:<div>[qtp1296674576-15] ERROR fish= wife.RackServlet - On service: uninitialized constant Fishwife::RackServlet= ::ASCII_8BIT<br></div><div><br></div><div>But thanks for mentioning this ge= m Theo. :-)</div></div></div><div class=3D"gmail_extra"><div><div class=3D"= h5"><br><div class=3D"gmail_quote">On Thu, Apr 30, 2015 at 9:21 AM, Theo Hu= ltberg <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"= _blank">[email protected]</a>></span> wrote:<br><blockquote class=3D"gmai= l_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left= :1ex"><div dir=3D"ltr">Christian, my bad, last I checked it was dead, but l= ooking at the repo now it has had some activity. That said, the diff betwee= n now and two years ago is just updates between maintenance releases of Jet= ty and a setting for the min number of threads, so I'll revise my state= ment to "it=C2=A0basically hasn't been updated in years". Tha= t doesn't mean that it's bad or unstable, just that it might be har= d to get bugs fixed.<span><font color=3D"#888888"><div><br></div><div>T#</d= iv></font></span></div><div><div><div class=3D"gmail_extra"><br><div class= =3D"gmail_quote">On Thu, Apr 30, 2015 at 8:10 AM, Christian MICHON <span di= r=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blan= k">[email protected]</a>></span> wrote:<br><blockquote class=3D= "gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding= -left:1ex"><div dir=3D"ltr">@Theo:<div><br></div><div>A small correction is= needed on this specific sentence: "<span style=3D"font-size:12.800000= 1907349px">Mizuno is the precursor to Fishwife, and it hasn't been upda= ted in years"</span><div><span style=3D"font-size:12.8000001907349px">= <br></span></div><div><span style=3D"font-size:12.8000001907349px">Mizuno h= ad a new release 1 week ago and the last one before was less than 9 months = ago...<br></span><div><br></div></div></div></div><div class=3D"gmail_extra= "><div><div><br><div class=3D"gmail_quote">On Thu, Apr 30, 2015 at 8:00 AM,= Theo Hultberg <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" ta= rget=3D"_blank">[email protected]</a>></span> wrote:<br><blockquote class= =3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd= ing-left:1ex"><div dir=3D"ltr"><div>Our experience is that there doesn'= t exist a good, correct, performant rack server for JRuby. We've used m= ost of them, for two use cases: embedded status APIs in long running applic= ations and as the primary interface for applications with a HTTP API.</div>= <div><br></div><div>We package our applications as standalone JAR files wit= h JRuby and all gems, and run them with `java -jar ...`, and this rules our= some of the options. Either because some servers just don't work when = run that way because they assume they will be able to muck about with the f= ile system any way they like, or because they need to be in control, they n= eed to be the container of the application.</div><div><br></div><div>These = are the servers we've tried, and our experience. If your use case is di= fferent, for example serving Rails apps, this may not be your experience:</= div><div><br></div>* Fishwife is the only one we've found that doesn= 9;t have significant bugs and can be embedded. It's not perfect, but it= works well for us.<div><br></div><div>* Mizuno is the precursor to Fishwif= e, and it hasn't been updated in years.<br><div><br></div><div>* Puma i= s nice and I'd really like to use it, but the error handling is buggy. = It has often filled up disks with error messages. I think the worst of this= has been fixed, but in our experience it doesn't handle connection err= ors very well. We stay well away from Puma.</div><div><br></div><div>* Jubi= lee showed some great promise but then development stopped. We haven't = tried the last released version, but the last version we tried had signific= ant bugs around request body handling.</div><div><br></div><div>* rack-jett= y was abandoned several years ago and doesn't handle request bodies ove= r 4 KiB.</div><div><br></div><div>* I'm not aware of any major bugs in = Trinidad, but it doesn't work when embedded.</div><div><br></div><div>*= Torquebox is also not embeddable, and version 4 is starting to feel like v= aporware.</div><div><br></div><div>* WEBrick works surprisingly well for st= atus APIs that don't get called very often.</div><div><br></div><div>As= I said, our use case is very different from serving a Rails application, s= o your experience will probably be different.</div><span><font color=3D"#88= 8888"><div><br></div><div>T#</div></font></span></div></div><div><div><div = class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Wed, Apr 29, 2015 a= t 12:04 AM, Benjamin Ortega <span dir=3D"ltr"><<a href=3D"mailto:ben.ort= [email protected]" target=3D"_blank">[email protected]</a>></span> wrote:= <br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-lef= t:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">We use Trinidad (multit= hreaded) and are satisfied with it. It's fast enough and it scales and = can be monitored nicely. We use Passenger for MRI apps and have considered = standardizing on Passenger or puma for everything, but don't have any s= pecific plans to do so.<div><br><div><div><div>FWIW I think you have to buy= Passenger Enterprise to run your app multithreaded on Passenger.</div></di= v></div></div></div><div><div><div class=3D"gmail_extra"><br><div class=3D"= gmail_quote">On Tue, Apr 28, 2015 at 4:34 PM, Christian MICHON <span dir=3D= "ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">c= [email protected]</a>></span> wrote:<br><blockquote class=3D"gma= il_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-lef= t:1ex"><div dir=3D"ltr">Mizuno (jetty).<div>- fastest from what I measured = with apache-bench on my machines</div><div>- simplest configuration (almost= none)</div><div><br></div><div>Only drawback: CTRL-C does not work well on= Windows (the java process will be detached and will keep running), you mig= ht need to implement a shutdown hook in your app.</div></div><div class=3D"= gmail_extra"><div><div><br><div class=3D"gmail_quote">On Mon, Apr 27, 2015 = at 9:29 PM, Doug Hathaway <span dir=3D"ltr"><<a href=3D"mailto:dmh.dade@= gmail.com" target=3D"_blank">[email protected]</a>></span> wrote:<br><b= lockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px = #ccc solid;padding-left:1ex"><div dir=3D"ltr">Tomcat deployed via Warbler.<= /div><div class=3D"gmail_extra"><span><br><div class=3D"gmail_quote">On Mon= , Apr 27, 2015 at 12:55 PM, John Joseph Bachir <span dir=3D"ltr"><<a hre= f=3D"mailto:[email protected]" target=3D"_blank">johnjosephbachir@= gmail.com</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style= =3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir= =3D"ltr">Which Rack web server are folks using with JRuby? Any particularly= bad or good experiences?<div><br></div><div>I suppose the only ones that s= upport threading are Puma and Passenger?</div></div> </blockquote></div><br><br clear=3D"all"><div><br></div></span><span><font = color=3D"#888888">-- <br><div><div dir=3D"ltr"><b>Doug Hathaway</b><div><a = href=3D"http://www.dadesystems.com/" target=3D"_blank">http://www.dadesyste= ms.com/</a></div><div><a href=3D"mailto:[email protected]" target=3D"_bl= ank">[email protected]</a><br><a href=3D"tel:%28407%29%20680-3631" value= =3D"+14076803631" target=3D"_blank">(407) 680-3631</a><br></div></div></div= > </font></span></div> </blockquote></div><br><br clear=3D"all"><div><br></div></div></div><span><= font color=3D"#888888">-- <br><div>Christian<br></div> </font></span></div> </blockquote></div><br></div> </div></div></blockquote></div><br></div> </div></div></blockquote></div><br><br clear=3D"all"><div><br></div></div><= /div><span><font color=3D"#888888">-- <br><div>Christian<br></div> </font></span></div> </blockquote></div><br></div> </div></div></blockquote></div><br><br clear=3D"all"><div><br></div></div><= /div><span class=3D"HOEnZb"><font color=3D"#888888">-- <br><div>Christian<b= r></div> </font></span></div> </blockquote></div><br></div> --bcaec5161b4f908b6805150434c6--