Skip to content

Nginx module for embedding Clojure or Java or Groovy programs, typically those Ring based handlers.

License

Notifications You must be signed in to change notification settings

soulawaker/nginx-clojure

 
 

Repository files navigation

Alt text Nginx-Clojure is a Nginx module for embedding Clojure or Java or Groovy programs, typically those Ring based handlers.

Core Features

The latest release is v0.4.1, more detail changes about it can be found from Release History.

  1. Compatible with Ring and obviously supports those Ring based frameworks, such as Compojure etc.
  2. Http Services by using Clojure / Java / Groovy to write simple handlers for http services.
  3. Nginx Access Handler by Clojure / Java / Groovy
  4. Nginx Header Filter by Clojure / Java / Groovy
  5. NEW: APIs for Embedding Nginx-Clojure into a Standard Clojure/Java/Groovy App
  6. NEW: Server Side Websocket
  7. NEW: A build-in Jersey container to support java standard RESTful web services (JAX-RS 2.0)
  8. NEW: Tomcat 8 embedding support (so servlet 3.1/jsp/sendfile/JSR-356 websocket work within nginx!)
  9. 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
  10. 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.
  11. Handle multiple sockets parallel in sub coroutines, e.g. we can invoke two remote services at the same time.
  12. Asynchronous callback API of socket/Channel for some advanced usage
  13. Long Polling & Server Sent Events
  14. More easier to archive Sub/Pub services with broadcast events API
  15. Run initialization clojure code when nginx worker starting
  16. Support user defined http request method
  17. Compatible with the Nginx lastest stable version 1.8.0. (Nginx 1.6.x, 1.4.x is also ok, older version is not tested and maybe works.)
  18. One of benifits of Nginx is worker processes are automatically restarted by a master process if they crash
  19. Utilizes lazy headers and direct memory operation between Nginx and JVM to fast handle dynamic contents from Clojure or Java code.
  20. Utilizes Nginx zero copy file sending mechanism to fast handle static contents controlled by Clojure or Java code.
  21. Supports Linux x64, Linux x86 32bit, Win32, Win64 and Mac OS X. Freebsd version can also be got from Freebsd ports

More Documents

More Documents can be found from its web site nginx-clojure.github.io

License

Copyright © 2013-2015 Zhang, Yuexiang (xfeep) and released under the BSD 3-Clause license.

This program uses:

  • Re-rooted ASM bytecode engineering library which is distributed under the BSD 3-Clause license
  • Modified Continuations Library Written by Matthias Mann is distributed under the BSD 3-Clause license

About

Nginx module for embedding Clojure or Java or Groovy programs, typically those Ring based handlers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 83.2%
  • C 11.0%
  • Clojure 4.7%
  • HTML 1.1%