<div dir="ltr">I can offer my two cents based on my own private view and experience with Netty:<br><br>I work for a hedge fund who does extensive algo-trading and high frequency trading.<br>We're anal-retentive when it comes to performance and everything is measured in sub-milliseconds latencies.<br>
<br>Netty has played a significant role in our infrastructure:<br>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.<br>
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#.<br>
<br>While I'm aware there are other frame work, Netty really gives a sense of "look-no-further".<br><br>To sum, I can say the following:<br>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.<br>
In precises measurements not once we've identified Netty as a bottleneck.<br>
<br>2. Protocol-buffer + Netty are your best friend providing you design your protocol correctly.<br><br>3. Netty scales.<br><br>4. Netty is both straight-forward to understand, and rather easy to extend.<br><br>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.<br>
<br>Happy coding.<br><br><br><div class="gmail_quote">2010/6/16 Johan3 <span dir="ltr"><<a href="mailto:hari97@mymail.fi" target="_blank">hari97@mymail.fi</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Hello everyone, I'm a newbie user of Netty. I've tried out couple frameworks<br>
which were not able to offer me what I need, so I got couple questions about<br>
Netty. I've checked out the comments about Netty and also tried out few<br>
code-examples, and I'm pretty optimistic about this.<br>
<br>
I have a online Java game project, and the server should be able to handle<br>
about 2000-3000 clients, but it's a game where low latency is really<br>
important - every millisecond counts. Is Netty able to handle those clients<br>
without "lag"? Some frameworks offers many great features (still useless for<br>
me), and it causes unwanted latency.<br>
<br>
If Netty is the right choice for me, could you also give some advices to<br>
newbie... These things are on my mind:<br>
<br>
1: My game should sends packets and encode (and decode) packets for example<br>
like following:<br>
byte whatMessageItIs, int SomeNumber, boolean true, int type, String message<br>
So does Netty provide a simple way to do this, encode and decode a packet<br>
where the first byte is some kind of a type of the message. In the guide<br>
there's many kind of handlers, encoders and decoders added to pipeline, but<br>
is this kind of a simple messaging system enough or am I missing something?<br>
<br>
2: I also got to make rooms to the game, every room has a running thread<br>
(which moves players). I'm wondering, how to make it right for Netty,<br>
because running threads causes maybe most stress to server.<br>
<br>
3: Also, I have done this kind of a server before. How much should I use<br>
Netty's elements in basic server-system, is it ok to use just Netty's<br>
messaging system as a base, and do everything else by myself, or should I<br>
always use Netty's elements?<br>
<br>
Regards<br>
Johan<br>
<font color="#888888">--<br>
View this message in context: <a href="http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Is-Netty-what-I-m-searching-for-tp5186104p5186104.html" target="_blank">http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Is-Netty-what-I-m-searching-for-tp5186104p5186104.html</a><br>
Sent from the Netty User Group mailing list archive at Nabble.com.<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org" target="_blank">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
</font></blockquote></div></div>