While Aleph's event model is slightly different from what Ring was
originally designed for (the servlet API), I think it would be really
easy to use with Ring.  In Aleph you explicitly respond to a request,
while in Ring you return a response map.  Unless I'm missing out on
something, you can hookup the two approximately like this:

(defn aleph-to-ring-handler [req]
  (respond! req (ring-handler req)))

Where respond! is the aleph function to send a response matching a
given request.

That said, I think Aleph is less than a month old and it is changing
lots, so you probably don't want to use it for anything less than R&D
right now.  Checkout ztellman's client branch to see where it's going
currently.

-Jeff

On Jul 20, 4:17 am, gary b <gary.b...@gmail.com> wrote:
> Conjure cannot be used with Aleph.  Conjure is based on Ring.  Ring
> does not currently support the evented programming model used by
> Aleph.
>
> You can build a scalable app with Conjure on Jetty.  You don't need an
> evented server like Aleph or node.js to build a scalable app.
>
> On Jul 18, 5:26 pm, Victor S <victor.s...@gmail.com> wrote:
>
>
>
> > Can conjure be used to build web app over aleph? Or what does it take
> > to build highly scalable web apps in clojure similar to node.js and
> > express.js?

-- 
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

Reply via email to