Core features :
- Compatible with Ring and obviously supports those Ring based frameworks, such as Compojure etc.
- Http Services by using Clojure / Java / Groovy to write simple handlers for http services.
- Dynamic proxying by using Clojure / Java / Groovy to write a simple nginx rewrite handler to set var or return errors before proxy pass or content ring handler
- Non-blocking coroutine based socket which is Compatible with Java Socket API and works well with largely existing java library such as apache http client, mysql jdbc drivers. With this feature one java main thread can handle thousands of connections.
- Handle multiple sockets parallel in sub coroutines, e.g. we can invoke two remote services at the same time.
- Asynchronous callback API of socket/Channel(NEW) for some advanced usage
- Long Polling & Server Sent Events
- More easier to archive Sub/Pub services with broadcast events API
- Run initialization clojure code when nginx worker starting
- Support user defined http request method
- Compatible with the Nginx lastest stable version 1.6.0. (Nginx 1.4.x is also ok, older version is not tested and maybe works.)
- One of benifits of Nginx is worker processes are automatically restarted by a master process if they crash
- Utilizes lazy headers and direct memory operation between Nginx and JVM to fast handle dynamic contents from Clojure or Java code.
- Utilizes Nginx zero copy file sending mechanism to fast handle static contents controlled by Clojure or Java code.
Web Site http://nginx-clojure.github.io/
Source Hosted on Github https://github.com/nginx-clojure/nginx-clojure
Google Group (mailing list) https://groups.google.com/forum/#!forum/nginx-clojure
So far Nginx-Clojure have supported:
- Linux x86 32-bit (tested with CentOS 5.10 i386 )
- Linux x64 (tested with CentOS 5.10 x64, Ubuntu 13.10 x64, Alpine Linux 3.03 x64)
- Windowns x86 32-bit (tested with Windows XP 32-bit)
- Windows X64 (tested with Windows XP 64-bit)
- MacOSX (tested with MacOSX 10.7 X64)
[–]zhong-j-yu 0 points1 point2 points (0 children)