wmluke / pipes

Middleware for Java 1.8
MIT License
4 stars 0 forks source link

Is this usable for non web-apps? #1

Open spinscale opened 8 years ago

spinscale commented 8 years ago

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 :-)

wmluke commented 8 years ago

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

spinscale commented 8 years ago

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