Good Web Server/Servlet Container for Clojure Web Apps?

爷,独闯天下 提交于 2019-12-19 18:57:14

问题


I am looking for a good production web server/servlet container for my compojure web appliction. What are the pros and cons of using Jetty or Tomcat or other server for a Clojure web app using compojure? Is there any good documentation for using a web server with Clojure for production, or tools?

I would prefer a web server that is flexible, easy to configure and has good documentation on how to configure and use it.


回答1:


I think there is not yet a pure Clojure Webserver, but I heard that people at Apache were working on something like that. On the meanwhile I have some links I found useful myself.

A commentary on Apache + Jetty: http://briancarper.net/blog/510/deploying-clojure-websites

Take a look at this for implementing your own webserver via servlets: Clojure web application - where do I start?




回答2:


If you don't already have your own infrastructure to run on, you might consider Heroku, which supports Clojure. See their tutorial Getting Started With Clojure on Heroku/Cedar. It's free to start and very easy to scale.




回答3:


Chas Emerick has a rather old blog post + slides on doing continous integration on webapps right (Heroku, Pallet, War-file or whatever nescessary to NOT roll your own solution).



来源:https://stackoverflow.com/questions/7211640/good-web-server-servlet-container-for-clojure-web-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!