Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Good Web Server/Servlet Container for Clojure Web Apps?

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.

like image 325
mudge Avatar asked Aug 27 '11 00:08

mudge


People also ask

Is web container and servlet container same?

Web container also known as a Servlet container is the component of a web server that interacts with Java servlets. A web container is responsible for managing the lifecycle of servlets, mapping a URL to a particular servlet and ensuring that the URL requester has the correct access rights.

Is Tomcat a web server or web container?

Apache Tomcat server: Apache Tomcat is a web container. It allows the users to run Servlet and JAVA Server Pages that are based on the web-applications. It can be used as the HTTP server. The performance of the Tomcat server is not as good as the designated web server.

Is Apache a servlet container?

Apache Tomcat is a long-lived, open source Java servlet container that implements core Java enterprise (now Jakarta EE) specifications, including the Jakarta Servlet, Jakarta Server Pages, and Jakarta WebSocket specs.

What is Servlet container with example?

An application server that provides the facilities for running Java servlets. Also called a "servlet engine" and "servlet womb," examples of servlet containers are JServ and Tomcat from the Apache Jakarta Project. Today, servlet containers also support JavaServer Pages (JSPs) by converting them to servlets.


2 Answers

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?

like image 97
Pedro Montoto García Avatar answered Oct 17 '22 09:10

Pedro Montoto García


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.

like image 45
duelin markers Avatar answered Oct 17 '22 10:10

duelin markers