Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What features does Pedestal have compared to other Clojure web frameworks?

Tags:

Recently Relevance announced Pedestal, a new web framework for Clojure.

How does this framework compare to other Clojure web frameworks such as Compojure, Webjure, Conjure, Moustache and so on, in terms of features, ease of application development, developer tools, etc.

See Comparison of Clojure web frameworks

like image 930
noahlz Avatar asked Mar 20 '13 20:03

noahlz


People also ask

What is pedestal application?

Pedestal is a set of libraries that we use to build services and applications. It runs in the back end and can serve up whole HTML pages or handle API requests. There are a lot of tools in that space, so why did we build Pedestal? We had two main reasons: Pedestal is designed for APIs first.

What is luminus Clojure?

Luminus is a Clojure micro-framework based on a set of lightweight libraries. It aims to provide a robust, scalable, and easy to use platform. With Luminus you can focus on developing your app the way you want without any distractions.

Is Clojure a framework?

ClojureHomePage is a unique framework in that it focuses almost entirely on creating a webpage utilizing Clojure for both the front and backend.


2 Answers

My take on it is Pedestal is more about separation of concerns from an architectural perspective than it is a feature set:

  • Clojure on the server and client side (via ClojureScript) allows you to put code (and thus logic) where it makes the most sense
  • http requests are decoupled from a specific thread in the server with the interceptor abstraction
  • separates application logic from rendering concerns
  • rendering control for state changes in the app via data flow

Those things are big advantages over the life cycle of an app. Having said that, it is alpha level and subject to change and the control by data flow is a bit different, so like anything new there is a learning curve.

If you check out the documentation and listen to the podcast here it will clear up a lot. Hope that helps.

like image 133
Mike Williams Avatar answered Sep 28 '22 09:09

Mike Williams


Another thing is, Pedestal, in contrast to Ring, allows processing of one requests in more than one thread. Its Ring compatible Interceptor model allows this: http://pedestal.io/documentation/service-interceptors/

like image 27
Michiel Borkent Avatar answered Sep 28 '22 11:09

Michiel Borkent