Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

2014-04-25 Thread xfeep
Hi reberto, Nginx Clojure Module V0.2.0 provides three choices for handling blocked I/O with Java/Clojure Now. (1) Coroutine based Socket It's Non-blocking Java Socket API Compatible and work well with largely existing java library such as apache http client, mysql jdbc drivers etc. non-bloc

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

2014-01-15 Thread xfeep
Thanks a lot! So far about the nginx-clojure project the most valuable adviceI have received is from you! Best regards! roberto Wrote: --- > > Thanks for your good hints. > > > > I see there 's a good no-blocking mysql client Libdrizzle fro

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

2014-01-15 Thread Roberto De Ioris
> Thanks for your good hints. > > I see there 's a good no-blocking mysql client Libdrizzle from > https://launchpad.net/drizzle. > > With Nginx-lua or Openresty , Libdrizzle has been used in production. yes, both can be of great inspiration for you/your project > > I won't hope every thing i

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

2014-01-15 Thread xfeep
Thanks for your good hints. I see there 's a good no-blocking mysql client Libdrizzle from https://launchpad.net/drizzle. With Nginx-lua or Openresty , Libdrizzle has been used in production. I won't hope every thing is no-blocking and I think it is unnecessary. Only when blocking hurt us w

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

2014-01-15 Thread Roberto De Ioris
> roberto Wrote: > --- >> >> Sorry, but are you saying that your suggested usage for concurrency is >> multiprocessing ? >> >> Multiprocessing is completely alien in the jvm (the vm is not even >> fork-friendly) and that would mean the nginx work

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

2014-01-15 Thread xfeep
roberto Wrote: --- > > Sorry, but are you saying that your suggested usage for concurrency is > multiprocessing ? > > Multiprocessing is completely alien in the jvm (the vm is not even > fork-friendly) and that would mean the nginx worker comple

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

2014-01-14 Thread Roberto De Ioris
> With the default setting pipe is not used. > > Pipe is only used for enable jvm thread pool mode only when jvm_workers > > 0 > (jvm_workers default = 0). > > Further more pipe is never used to transfer the while request or response > message. > When under jvm thread pool mode, pipe is only use

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

2014-01-14 Thread xfeep
With the default setting pipe is not used. Pipe is only used for enable jvm thread pool mode only when jvm_workers > 0 (jvm_workers default = 0). Further more pipe is never used to transfer the while request or response message. When under jvm thread pool mode, pipe is only used to transfer a e

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

2014-01-14 Thread Roberto De Ioris
> May be somebody wonder what the differences between Nginx UWsig Module > and > Nginx Clojure Module when integrating JVM. > > They are quite different. Nginx Clojure Module embed JVM instance into the > Nginx Worker and they are in the same process and have the same memory > address space. > >

Re: Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

2014-01-14 Thread xfeep
May be somebody wonder what the differences between Nginx UWsig Module and Nginx Clojure Module when integrating JVM. They are quite different. Nginx Clojure Module embed JVM instance into the Nginx Worker and they are in the same process and have the same memory address space. There 's no IPC

Nginx-Clojure Module Release 0.1.0--Let Nginx embrace Clojure & Java

2014-01-14 Thread xfeep
Hi! Nginx-Clojure Module Release 0.1.0 was out several day ago! It is a module for embedding Clojure or Java programs, typically those Ring based handlers. It is an open source project hosted on Github, the site url is https://github.com/xfeep/nginx-clojure With it we can develope high perfo