Is Netty what I'm searching for?

Shlomi Marco squigly at gmail.com
Wed Jun 16 15:57:00 EDT 2010


I can offer my two cents based on my own private view and experience with
Netty:

I work for a hedge fund who does extensive algo-trading and high frequency
trading.
We're anal-retentive when it comes to performance and everything is measured
in sub-milliseconds latencies.

Netty has played a significant role in our infrastructure:
We're using Netty as our communication framework. we wrapped it with our own
manager who relays data back and forth between the different stocks market
and the front ends.
As for passing messages, we find the combination of google protocol-buffer
and netty valuable to no extent, certainly when you consider that our server
is Java based, and clients are (most often) C#.

While I'm aware there are other frame work, Netty really gives a sense of
"look-no-further".

To sum, I can say the following:
1. Netty is super-fast. It's fast to the point that I'm more concern about
programmers doing something wrong then worrying about networking framework.
In precises measurements not once we've identified Netty as a bottleneck.

2. Protocol-buffer + Netty are your best friend providing you design your
protocol correctly.

3. Netty scales.

4. Netty is both straight-forward to understand, and rather easy to extend.

All of the above is true for using NIO, with OIO or other Netty-tools, your
mileage may or may not varies, I cannot tell since we haven't test it.

Happy coding.


2010/6/16 Johan3 <hari97 at mymail.fi>

>
> Hello everyone, I'm a newbie user of Netty. I've tried out couple
> frameworks
> which were not able to offer me what I need, so I got couple questions
> about
> Netty. I've checked out the comments about Netty and also tried out few
> code-examples, and I'm pretty optimistic about this.
>
> I have a online Java game project, and the server should be able to handle
> about 2000-3000 clients, but it's a game where low latency is really
> important - every millisecond counts. Is Netty able to handle those clients
> without "lag"? Some frameworks offers many great features (still useless
> for
> me), and it causes unwanted latency.
>
> If Netty is the right choice for me, could you also give some advices to
> newbie... These  things are on my mind:
>
> 1: My game should sends packets and encode (and decode) packets for example
> like following:
> byte whatMessageItIs, int SomeNumber, boolean true, int type, String
> message
> So does Netty provide a simple way to do this, encode and decode a packet
> where the first byte is some kind of a type of the message. In the guide
> there's many kind of handlers, encoders and decoders added to pipeline, but
> is this kind of a simple messaging system enough or am I missing something?
>
> 2: I also got to make rooms to the game, every room has a running thread
> (which moves players). I'm wondering, how to make it right for Netty,
> because running threads causes maybe most stress to server.
>
> 3: Also, I have done this kind of a server before. How much should I use
> Netty's elements in basic server-system, is it ok to use just Netty's
> messaging system as a base, and do everything else by myself, or should I
> always use Netty's elements?
>
> Regards
> Johan
> --
> View this message in context:
> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Is-Netty-what-I-m-searching-for-tp5186104p5186104.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20100616/e72f6f9d/attachment.html 


More information about the netty-users mailing list