KingCode
KingCode

Reputation: 878

Is there a clojure Ring adapter for Vertx?

I am using clojure with Vertx and can see my request/response roundtrip. However I would like to leverage the Ring framework, which comes with only a Jetty adapter. Does anyone know of a ready made one for Vertx? I am interested in learning how to write my own, but am short of time to research it.

Upvotes: 0

Views: 926

Answers (4)

joshua
joshua

Reputation: 4198

There is a clojure module here thats being actively developed. There is a ring adapter here .

Upvotes: 1

Jake Pearson
Jake Pearson

Reputation: 27737

You can also check out. https://github.com/RallySoftware/netty-ring-adapter It is a drop in replacement for Jetty using Netty.

Upvotes: 2

Tomek Lipski
Tomek Lipski

Reputation: 166

I don't believe so - although such adapter would be ultimately cool!

Have you checked http-kit? It seems to be fairly performance-effective (haven't checked it myself though) and is 99.9% Ring-compatible.

Upvotes: 1

amalloy
amalloy

Reputation: 92117

I don't know anything about vertx myself, but you should be aware that Jetty is certainly not the only webserver that ring can interoperate with: it's the only one bundled into ring proper, but a quick google search reveals a handful of other adapters, eg for netty, simpleweb, mongrel2, and finagle. I did find a discussion about vertx/clojure interop on the google group, though. Looks half-baked and perhaps never finished, but worth looking into at least.

Upvotes: 1

Related Questions