|
From: Max S. <max...@gm...> - 2007-09-19 16:46:40
|
Hello, I wish to make webserver that waits 30 seconds after request is made and then sends small static file to client. I wish that server had small memory requirements. Server should receive 100 requests per second. So it will have 3000 connections. ---- I think the best solution is NIO based webserver. One thread would processing all requests. Second thread would poll requests, check if they waited more than 30 sec and add response to request. Then first thread will finish processing request. ---- First I thought that I can use continuations. But now I am thinking about handlers and I am looking for something similar to continuations in handlers. May be I have to learn and modify some jettys internals. Is it possible to do that with Jetty? Where should I look to proceed with it? Thank You, Max |