Is this usable for non web-apps?
spinscale opened this issue · comments
Hey,
I just stumbled over this and suddenly there is activity after two years. Thanks for that! :-)
I'd like to write a netty based app (no HTTP involved) using a middleware architecture. Do you think that is feasible with your library or are you going to tie it more and more into HTTP? I have to admit I haven't played around with it yet, just read a bit across the source.
Also, do you know any other java libraries, which provide some sort of middleware, seems this is the only one so far, or I searched wrong. There is apollo by spotify, which is also bound to HTTP.
Thanks for your help and feel free to close this due to a stupid question :-)
Hi @spinscale,
First off, thanks for your interest!
At this time I'm currently focusing on Web Apps...mainly b/c I have a lot of background in building them, but I'm open to entertaining other protocols. Based on my limited experience with Netty, I think I could create a generalized middleware app of type App<Object, ChannelHandlerContext, ?>
, which would look something like...
// Echo Server
app.use((msg, ctx) -> {
ctx.write(msg);
ctx.flush();
});
What do you have in mind?
I know of a few web "middleware" java frameworks...
Thanks again,
Luke
my idea was to have give any netty pipeline (think DNS or NTP server, so just a specific netty handler) the possibility of using a middlewared based structure