Http integration issues
bburke
bburke at redhat.com
Tue Sep 27 19:18:49 EDT 2011
I'm integrating RESTEasy with Netty. One big problem I'm having is that I
have to implement a synchronous input model over netty's asynchronous input
model.
In other words, I have to create an InputStream for an HTTP message body and
send it off to resteasy/jaxrs/application code to be processed. Works fine
if you buffer the *entire* incoming message in memory that hands off
everything to Resteasy. Great for unit testing.
But, if we want to use Netty as a real HTTP server, i need to be able to
pull the channel for events, rather than have them pushed. Otherwise, I'll
have to create a separate thread and do context switching for any HTTP
request that is Chunked. Which will pretty much be a significant(?)
performance hit.
Maybe I just don't understand Netty...Apologies if this is a RTFM problem as
I've only looked at the Http example program.
Thanks,
Bill
--
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Http-integration-issues-tp6838225p6838225.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list