On Sat, Jun 29, 2013 at 7:47 AM, Ravindra Jaju <ravindra.j...@gmail.com> wrote:
> I want to deploy a small web app - serving mostly static content. I'm using
> Luminus (http://www.luminusweb.net/) - which is quite neat in the way it
> builds itself from well-known components.
>
> I'm having trouble deciding how to deploy it. I want some automation while
> deploying upgrades, and would like it to be light-weight. Jetty, http-kit,
> or immutant?
> (I tried immutant - but it seems to be taking up too much memory for my
> comfort, on my modest server.)
>
> Jetty and http-kit - I would like to hear about how I can deploy them as
> nice system daemons, with monitoring etc. so that they can be brought up
> automatically if something goes wrong. I'm also unable to find out how I can
> do a re-deploy without restarting.

If you are looking for advanced features like hot redeploy, you
probably want to consider if you really are after a "small" solution
or not -- if you can't tolerate that small downtime, are you sure you
won't need the clustering, XA transaction capabilities, and other
advanced features that a toolkit like immutant brings to the table
soon?

Regardless, you could use the `ring.reload` middleware in production,
or bring your own solution to the table for code reloading and use a
var as your ring handler to allow dynamic change.  (eg: in cgrand's
moustache, `(app #'my-handler-function)` allows redefining the handler
fn at runtime, transparently.)

Given either of those solutions you can then use jetty, netty,
http-kit, or anything else.  Personally, though, if you really want
automated deployment and zero-downtime upgrades, I would totally look
to a full blown - and heavy - stack. :)

--
Daniel Pittman
♲ Made with 100 percent post-consumer electrons

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to