Hi Yann, Zinc HTTP Components can do 1000s of requests per second, to localhost (so excluding a real network) and using a single ZnClient instance with a reused connection (HTTP/1.1's default). Of course, data size is also a factor, I am talking about small requests/responses.
I browsed your code a bit on GitHub. You do reuse an instance, so that is good. But I think you are using HTTPS (TLS), which is a real slowdown (encryption is native, but costs real resources). Also, your data payload is using JSON which also adds a cost (parsing, generating). So what you measured sounds about right. You might be able to optimise a bit, but that won't give you a factor 10 improvement, IMHO. The trick is usually to make as few requests as possible. Sven > On 8 Dec 2017, at 16:32, Yann Lesage <yannle...@gmail.com> wrote: > > Hello, > > > I write an driver for Arangodb . So like it's indicated in Arango > documentation, I use the HTTP API. The repo is > https://github.com/Valtena/Pharango > > > Now, the problem : Arango using Znclient make around 1 000 requests/second. > > > And the question : Are there any recommended pratice to have the better > performance with ZNClient or a better way to perform lot of HTTP requests ? > > > Thanks for your attention, > > Yann Lesage > > >