[Simpleweb-Support] Does SimpleWeb support HTTP 1.1 persistent connections and pipelining by defaul
Brought to you by:
niallg
From: Ian C. <ian...@gm...> - 2011-09-07 14:02:22
|
I'm initializing SimpleWeb as follows: final Processor processor = new ContainerProcessor(new SynchronousContainer(this), new FileAllocator(), 5); final Server server = new SocketSnoopServer(new ProcessorServer(processor, 5 )); connection = new SocketConnection(server); connection.connect(new InetSocketAddress(listenPort)); I'm using it to implement a REST API (using JSON as a data encoding). I'm currently looking at a use-case where I will need to deal with considerable request volume, potentially over 1,000 requests per second. I'm wondering whether SimpleWeb will make use of HTTP 1.1 persistent connections and pipelining, which I assume would make it easier to handle this load, both for the server and clients talking to the server. Is the way I'm initializing SimpleWeb optimal for dealing with this volume of requests? Thanks, Ian. -- Ian Clarke Blog: http://blog.locut.us/ |