[ANN] Nginx-Clojure v0.4.4 is out

2016-03-05 Thread xfeep
Changes about v0.4.4 : 1. New Feature: experimental nginx body filter by Java/Clojure/Groovy (issue #107 ) 2. New Feature: read request body by event callback (issue #109

Re: [ANN]Nginx-Clojure 0.4.3 is out.

2015-10-25 Thread Xfeep
Freshports upgraded Nginx-Clojure from 0.4.2 to 0.4.3 about 11 hours ago. If freebsd users want to try this latest release please enable it when installing nginx from freebsd ports. On Monday, October 26, 2015 at 1:39:39 AM UTC+8, Xfeep wrote: > > 0.4.3 (2015-10-25) > >1. New

[ANN]Nginx-Clojure 0.4.3 is out.

2015-10-25 Thread Xfeep
0.4.3 (2015-10-25) 1. New Feature: Add directive jvm_classpath which supports wildcard character * (issue #95 ) 2. New Feature: Add directive jvm_classpath_ch

[ANN] Nginx-Clojure v0.4.2

2015-08-31 Thread Xfeep
0.4.2 (2015-08-31) 1. New Feature: Support Sente (issue #87 , see this PR ) 2. New Feature: Per-message Compression Extensions (PMCEs) for WebSocket (issue #88

[ANN]nginx-clojure v0.2.7 release!

2014-11-14 Thread Xfeep
v0.2.7 changes list 1. New Feature: Compiling option for disabling all functions silently when JVM_PATH not configured. (issue #47) 2. New Feature: Access request BODY in rewrite handler (issue #49) 3. Enhancement : Optimization of encoding String to Nginx temp buffer chain to

Re: [ANN] Nginx-Clojure v0.2.6 Released!

2014-10-10 Thread Xfeep
Hi Balduino, Thank you. This site use CDN http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.0.min.js for jquery , so for security the browser won't load these javascript source when we access it by HTTPS. Regards. Xfeep On Saturday, October 11, 2014 3:11:52 AM UTC+8, Plinio Balduino

Re: [ANN] Nginx-Clojure v0.2.6 Released!

2014-10-10 Thread Xfeep
. Xfeep On Friday, October 10, 2014 10:40:30 PM UTC+8, Laurens Van Houtven wrote: > > Hi xfeep, > > > Thanks for the work! Looks awesome. Unfortunately the github website > appears to be broken in FF32 (displays fine in Chrome). > > > cheers > lvh > >

[ANN] Nginx-Clojure v0.2.6 Released!

2014-10-10 Thread Xfeep
0.2.6 (2014-10-10) 1. Fix Bug: rewrite handler does not handle write event correctly with thread pool mode or coroutine mode (issue #43) 2. Fix Bug: built-in jvm variable #{pno} doesn't work (issue #44) 3. Fix Bug: rewrite_handler_name does not work without content handler (is

Re: [ANN] Nginx-Clojure v0.2.5 released!

2014-09-19 Thread Xfeep
yes? Does Nginx have a way to ignore this > and manage the memory without regard to Xmx settings? > > > > > > > > On Sunday, September 7, 2014 12:52:17 PM UTC-4, Xfeep wrote: >> >> Sorry I don't use Immutant + Wildfly and know little about it. >>

Static File Best Practices on Nginx-Clojure

2014-09-16 Thread Xfeep
1. Enable gzip on Text Files 2. Turn on Sendfile 3. Dynamically Combined files 4. Track Static Html Files by Google Analytics 5. Limit Download Speed Details can be found from this article http://java.dzone.com/articles/static-file-best-practices

Re: [ANN] Nginx-Clojure v0.2.5 released!

2014-09-07 Thread Xfeep
ically we > use coroutine based sockets to work with Apache http client , Solr client > ,etc. Coroutines are cooperative and cheaper than threads and be created as > much as our memory can bear. > > Xfeep > > On Mon, Sep 8, 2014 at 3:27 AM, gvim wrote: > >> On 07/

Re: [nginx-clojure] Getting started question

2014-07-13 Thread Xfeep Zhang
IGURE-ARGUMENTS\ --add-module=nginx-clojure/src/c $make (4) replace the old nginx binary file with the new one. regards xfeep On Wednesday, July 9, 2014 4:24:02 AM UTC+8, Boris Kourtoukov wrote: > > I am working on a small personal project and want to use/learn nginx and > cl

[ANN] Nginx-Clojure v0.2.3 released

2014-07-05 Thread Xfeep Zhang
Nginx-Clojure is a Nginx module for embedding Clojure or Java programs, typically those Ring based handlers. Release 0.2.3 contains four important updates 1. Fix issue - After invoking on coroutine based socket nginx worker will exit and

Re: [ANN] Nginx-Clojure v0.2.2 released

2014-06-03 Thread Xfeep Zhang
LVS or haproxy as the front. On Tue, Jun 3, 2014 at 11:52 PM, Xfeep Zhang wrote: > The multiprocess from nginx is quite different with some old server > implementations. Within nginx one process can handle thousands of > connections at the same time. But some old server implementation

Re: [ANN] Nginx-Clojure v0.2.2 released

2014-06-03 Thread Xfeep Zhang
worker processes 3. Remote Session Store such as Redis, MemCached etc. On Mon, Jun 2, 2014 at 5:22 PM, Toni Helenius wrote: > Out of interest, how do people use these multiprocess server thingies like > nginx-clojure or vert.x with datomic? > > > On Saturday, May 31, 2014 7:57:54

[ANN] Nginx-Clojure v0.2.2 released

2014-05-31 Thread Xfeep Zhang
Nginx-Clojure is a Nginx module for embedding Clojure or Java programs, typically those Ring based handlers. Release 0.2.2 contains two updates 1. Fix bug of with Compojure 1.1.5 + Apache Solrj 4.3.0 + httpclient 4.3.2

[ANN] Nginx-Clojure v0.2.1 released

2014-05-16 Thread Xfeep Zhang
Nginx-Clojure is a Nginx module for embedding Clojure or Java programs, typically those Ring based handlers. The release v0.2.1 has these new features: 1. Support to close coroutine based socket from non-main thread

Re: difference in behavior for :let modifiers in "for" vs. "doseq"

2014-05-03 Thread Xfeep Zhang
user> (for [ b '(1 2 3) :let [a 1] ] (println a b)) is OK. On Thursday, May 1, 2014 12:39:22 PM UTC+8, Yuri Niyazov wrote: > > Hello everyone, > > In Clojure 1.6: > > user> (doseq [:let [a 1] b '(1 2 3)] (println a b)) > 1 1 > 1 2 > 1 3 > nil > user> (for [:let [a 1] b '(1 2 3)] (println a b))

Re: [ANN] nginx-clojure v0.2.0 -- Let MySQL JDBC Driver & Apache HttpClient Fly With Epoll/Kqueue on Nginx

2014-04-30 Thread Xfeep Zhang
s. I look forward to using this on my > upcoming web projects. > > > On Friday, April 25, 2014 11:51:41 PM UTC-4, Xfeep Zhang wrote: >> >> nginx-clojure v0.2.0 includes new features: >> >> >>1. non-blocking socket based on coroutine and compatible

[ANN] nginx-clojure v0.2.0 -- Let MySQL JDBC Driver & Apache HttpClient Fly With Epoll/Kqueue on Nginx

2014-04-25 Thread Xfeep Zhang
nginx-clojure v0.2.0 includes new features: 1. non-blocking socket based on coroutine and compatible with largely existing java library such as apache http client, mysql jdbc drivers 2. asynchronous callback API of socket for some advanced usage 3. run initialization clojure code whe

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-21 Thread Xfeep Zhang
On Tuesday, January 21, 2014 6:25:02 AM UTC+8, Sergey Didenko wrote: > > Hi Xfeep, > > What are the good ways to handle some heavy Clojure calculations when > using nginx-clojure? > Do you mean every request will cost too much time ? If time cost is mainly caused by IO bloc

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-15 Thread Xfeep Zhang
On Wednesday, January 15, 2014 12:39:57 PM UTC+8, Roberto De Ioris wrote: > > > i strongly suggest you to avoid the "performance" as a selling point, your > project is cool but not for performance (and you are using a pipe to > transfer requests data from nginx to the jvm so there ipc in place

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-15 Thread Xfeep Zhang
On Wednesday, January 15, 2014 12:39:57 PM UTC+8, Roberto De Ioris wrote: > > > > Hi Mingli, > > > > Thanks for your suggestion. > > > > Nginx-Clojure is quite different from uwsgi when supports JVM. > > > > Nginx-Clojure make JVM embed into Nginx worker process. JVM and Nginx > > worker ha

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-14 Thread Xfeep Zhang
So it can not avoid IPC cost or socket cost ! So it will use more system handle (at least double ones) and more copy operataion between process and maybe more memory cost. So I think using uwsgi to integrate JVM maybe will not be so fast! On Wednesday, January 15, 2014 10:10:40 AM UTC+8, Xfeep

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-14 Thread Xfeep Zhang
On Wednesday, January 15, 2014 3:07:13 AM UTC+8, Mingli Yuan wrote: > > Hi, Xfeep, > > Thanks for your contribution, and the project looks interesting. > > For me, the idea of driving ring webapp behind nginx is not new. > We use uwsgi to drive our ring app behind nginx in our

Re: Clojure web server benchmarks

2014-01-14 Thread Xfeep Zhang
;> Absolutely well worth a look if you're interested in Clojure web server >> performance. >> >> * Results are here: >> https://github.com/ptaoussanis/clojure-web-server-benchmarks >> * His GitHub page: https://github.com/xfeep >> * His nginx/clojure lib: htt

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-14 Thread Xfeep Zhang
now Nginx spawns many processes(correct me if I am wrong), does > that mean, there will be many JVM process? > > > > > On Tuesday, January 14, 2014 4:44:18 PM UTC+8, Xfeep Zhang wrote: >> >> >> I have done the first one. The result is >> HERE<https://g

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-14 Thread Xfeep Zhang
s/clojure-web-server-benchmarks>hosted on Github. On Tuesday, January 14, 2014 10:31:03 AM UTC+8, Xfeep Zhang wrote: > > You're welcome. > > I think there are several difficult phases : > > (1) update the test program in > clojure-web-server-benchmarks<https://

Re: Clojure web server benchmarks

2014-01-14 Thread Xfeep Zhang
; > You are welcome. >> My Github user name is xfeep. >> I'm glad to join the repo. Thanks for your invitation! >> > > Okay, great - I have added you. You can make any changes you like. I would > be happy if you or someone else wants to maintain (update) the repo.

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-13 Thread Xfeep Zhang
der how this is going to improve latency in comparison to nginx + > http-kit for some real world test that is not using heavy DB operations. > > > On Mon, Jan 13, 2014 at 5:57 AM, Xfeep Zhang > > wrote: > >> >> So far I have found why nginx-clojure is slower than http

Re: Clojure web server benchmarks

2014-01-12 Thread Xfeep Zhang
You are welcome. My Github user name is xfeep. I'm glad to join the repo. Thanks for your invitation! On Monday, January 13, 2014 2:42:44 PM UTC+8, Peter Taoussanis wrote: > > Hi Xfeep, > > Thank you, I could never understand what configuration (setting) was > wrong. I

Re: Clojure web server benchmarks

2014-01-12 Thread Xfeep Zhang
tml") > }) > > Handlers > > (defn handler [request] response) > " On Monday, January 13, 2014 12:10:40 PM UTC+8, Xfeep Zhang wrote: > > > If reduce worker_connections from 2 to 1024 or 128, I think nignx will > be the fastest one in this test (the

Re: Clojure web server benchmarks

2014-01-12 Thread Xfeep Zhang
If reduce worker_connections from 2 to 1024 or 128, I think nignx will be the fastest one in this test (the max concurrent level is only 96). On Saturday, January 5, 2013 11:52:57 PM UTC+8, Peter Taoussanis wrote: > > Hi all, > > Quick post to mention that I've put up some rough benchmarks

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-12 Thread Xfeep Zhang
ary 12, 2014 11:21:06 PM UTC+8, Xfeep Zhang wrote: > > Sorry for my mistake! > > 1. In the static file test, the ring-jetty result is about 10 > concurrents. NOT 1 concurrents ("Concurrency Level: 10" in the > ab report ). > 2. In the small string tes

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-12 Thread Xfeep Zhang
On Friday, January 10, 2014 8:23:02 AM UTC+8, Julien wrote: > > Impressive! > Did you run some benchmark? How does it compare to ring-jetty and http-kit? > > Julien > > Le jeudi 9 janvier 2014 12:42:31 UTC-3, Xfeep Zhang a écrit : >> >> [image: Alt >> text]&l

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-12 Thread Xfeep Zhang
10, 2014 8:23:02 AM UTC+8, Julien wrote: > > Impressive! > Did you run some benchmark? How does it compare to ring-jetty and http-kit? > > Julien > > Le jeudi 9 janvier 2014 12:42:31 UTC-3, Xfeep Zhang a écrit : >> >> [image: Alt >> text]<https://githu

Re: Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-10 Thread Xfeep Zhang
99% 1 100% 4 (longest request) On Friday, January 10, 2014 8:23:02 AM UTC+8, Julien wrote: > > Impressive! > Did you run some benchmark? How does it compare to ring-jetty and http-kit? > > Julien > > Le jeudi 9 janvier 2014 12:42:31 UTC-3, Xfeep Zhang a écr

Nginx-Clojure Let You Deploy Clojure Web App on Nginx Without Any Java Web Server

2014-01-09 Thread Xfeep Zhang
[image: Alt text]<https://github.com/xfeep/nginx-clojure/blob/master/logo.png>Nginx-Clojure is a Nginx <http://nginx.org/> module for embedding Clojure or Java programs, typically those Ring<https://github.com/ring-clojure/ring/blob/master/SPEC>based handlers. There are