Is Netty what I'm searching for?
Johan3
hari97 at mymail.fi
Wed Jun 16 08:05:55 EDT 2010
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.
More information about the netty-users
mailing list