[Kc] Decoupling HTTP and interface

Andrew Hanenkamp sterling at hanenkamp.com
Mon Mar 24 12:27:06 PDT 2008


I know that if you want to use an existing framework like Catalyst or Jifty
you can deploy to different kinds of web servers interchangeably by just
tweaking your configuration or running a different command. For example,
Jifty is typically tested using HTTP::Server::Simple and then deployed using
FastCGI (I believe there is a mod_perl implementation is also available).
I'm pretty certain that Catalyst has a similar set of options available
(been a couple years, so my memory is a little fuzzy).

If you don't want to use a framework, then I don't know of anything. In such
cases, I've only ever written my own abstractions and haven't contributed
those abstractions back to CPAN (I know, I'm a failure).

Cheers,
Andrew

On Mon, Mar 24, 2008 at 2:08 PM, Kit Peters <popefelix at gmail.com> wrote:

> So I'm building a RESTful server in Perl to run under Apache2 and
> mod_perl 2.  And it occurs to me that my favorite method of debugging,
> perl -d, is not available in this setup, as all the Perl code is being
> executed by Apache and mod_perl, which are setting up their own
> environment that I can't duplicate easily.  So then it occurs to me
> that the better thing to do would be to work out the behaviour outside
> of Apache and mod_perl altogether.  I could then just make up GET
> strings on the command line or whatever.  For Apache's part, I could
> write my mod_perl handlers to call the subs from my text interface.
>
> So, before I go reinventing the wheel, has anyone done this already?
> Is there some code out there already that I can integrate into this
> project?
>
> KP
>
> --
> GPG public key fingerpint: 1A12 04B6 0C80 306A B292 14FD 2C7A 1037 F666
> 46A7
> _______________________________________________
> kc mailing list
> kc at pm.org
> http://mail.pm.org/mailman/listinfo/kc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/kc/attachments/20080324/5047ec35/attachment.html 


More information about the kc mailing list