From: David Vallner Date: 2006-11-09T08:01:13+09:00 Subject: Re: Why create web servers? --------------enigD9872AA7AD15A125D1159F77 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable CatLady [] wrote: > Hi, >=20 > Im just starting to get my feet wet with Ruby amd im having trouble=20 > understanding why someone would want to implement there own web server.= >=20 > I know theres a WEBrick object and a few others out there that allow yo= u=20 > to create web servers with ease, but why would anyone want to do that=20 > when theres stable and fully featured servers already out there? >=20 > Sorry for posting this here, I dont really see this as a rails question= =2E >=20 Getting WEBrick to serve HTML is only about umpty times easier to get Apache to serve Ruby. Of the reasons mentioned before, the Ruby integration is by far the most valuable. WEBrick is mostly a development server, not a production server - you don't need "full-featured", you don't need fast, nor a lot of other things. The advantage is that it makes it *trivially* easy to launch said webserver from Ruby code, and that it's trivially easy to run arbitrary Ruby code as part of operation of the webserver. You'll find that in fact, languages used for web programming -very- often have webservers written in those precisely for the ease of integration - Java has way too many servlet containers to mention (all of which implement HTTP), Python has CherryPy (first one to come to mind), Perl also probably has tons of those. They tend to make showing results of code in the respective language just so much more instantaneous that their existence is justified. David Vallner --------------enigD9872AA7AD15A125D1159F77 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) iD8DBQFFUmGxy6MhrS8astoRAsVBAJsHL311WBU/Yo0hXtksz3HV6cltowCfRNx3 035x20SX9AGZIXuzXuZjUmg= =hogn -----END PGP SIGNATURE----- --------------enigD9872AA7AD15A125D1159F77--