Re: [nginx-clojure] Getting started question

2014-07-13 Thread Xfeep Zhang
Hi Boris If there 's no port conflict, you can run multiple nginx instances without any problem. So if you do installation by binary you needn't remove the prior version. If you don't want to run multiple nginx instances , you can stop the old one and copy the configuration files to the new one

[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
zed non-blocking APIs will simpilfy to handle some IO blocked tasks. By that time jvm_workers maybe no need to be > 0 . > > On Wed, Jan 15, 2014 at 3:18 PM, Xfeep Zhang > > wrote: > >> >> >> On Wednesday, January 15, 2014 12:39:57 PM UTC+8, Roberto De Io

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
ale the solution of uwsgi, but it worth taking a look > and make some comparison. > > Regards, > Mingli > > > On Tue, Jan 14, 2014 at 9:12 PM, Xfeep Zhang > > wrote: > >> You are welcome! >> >> Yes, you are right. One JVM instance is embed per Nginx W

Re: Clojure web server benchmarks

2014-01-14 Thread Xfeep Zhang
You 're right! ab has many limitations. Maybe httpload , wrk, Weighttp or ABs ( several instances of AB) are better when test client and server do not run on the same computer. On Tuesday, January 14, 2014 5:52:59 PM UTC+8, Feng Shen wrote: > > Hi, nginx-clojure looks great! > > A small tip:

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
I have committed some update. - org.clojure/clojure 1.4.0 --> 1.5.1 - compojure 1.1.4 --> 1.1.6 - ring 1.1.6 --> 1.2.1 - aleph 0.3.0-beta13 --> 0.3.0 - http-kit 1.3.0-alpha2 --> 2.1.16 - ring-netty-adapter 0.0.3 --> netty-ring-adapter 0.4.6 - remove testing about pure nginx w

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 do not have time to upd

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]Nginx-Clojure is a Nginx module for embedding Clojure or Java programs, typically those Ringbased handlers. There are some core features :