From: Dmitri Kondratiev Date: 2006-09-25T06:57:29+09:00 Subject: Re: Looking for Webric example code Eleanor McHugh wrote: > On 23 Sep 2006, at 23:06, Dmitri Kondratiev wrote: >> Thanks a lot James! This is exactly what I was looking for! (or >> maybe I >> should go to ROR directly, without stoping at WEBrick?...) > > WEBrick is very good for writing quick and dirty HTTP servers - > especially if all you want to do is mount some code at a given URL > and return some output nicely wrapped with HTTP headers etc. Writing > complex web applications with vanilla WEBrick is a little more > challenging but can be done however you're probably better off using > RoR, Camping or one of the other frameworks. > > Ellie > > Eleanor McHugh > Games With Brains > ---- > raise ArgumentError unless @reality.responds_to? :reason Thanks for update! I am thinking about using Webric for lightweight REST-full protocol between WEB peers. In other words I need embedable WEB server that will allow sevral apps exchange messages using simple protocol on top of HTTP (get & post + params). The main question here: can Webric be embeded in another application so threads of this app will not be blocked and will continue to work without starvation. In fact, application I am talking about may use variable number of threads growing from 1 to 100 at different times (these in addition to Webric threads). -- Posted via http://www.ruby-forum.com/.