Chunked READ and multi message

이희승 (Trustin Lee) trustin at gmail.com
Wed Jan 26 11:48:41 EST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Same here.  Unless you have to handle multilayered or polymorphic protocols, a single handler can decode most protocols and it should be still easy tomaintain.

"Christian Migowski" <chrismfwrd at gmail.com> wrote:

>Hello,
>
>comment inline
>
>On Wed, Jan 19, 2011 at 4:34 AM, scottesker <scott_esker at yahoo.com>
>wrote:
>[...]
>> 2.  Multi message decoding.  So, we have many types of messages that
>are
>> going to be transmitted via TCP.  Is the architecturally suggested
>method to
>> use multiple channel handlers, or?
>
>This is really more an architectural/personal taste issue than an
>implementation challenge. I tend to decode messages that belong to one
>protocol (like login, logout, data, ack data and their replies) in one
>handler, as they belong logically together and usually also share some
>details which can be decoded with the same implementation.
>
>
>regards,
>christian
>
>_______________________________________________
>netty-users mailing list
>netty-users at lists.jboss.org
>https://lists.jboss.org/mailman/listinfo/netty-users

- --
Trustin Lee, http://gleamynode.net/
Sent from a mobile device. Please excuse my brevity.
-----BEGIN PGP SIGNATURE-----
Version: APG v1.0.8

iIkEAREIADEFAk1AUGkqHFRydXN0aW4gSGV1aXNldW5nIExlZSA8dHJ1c3RpbkBn
bWFpbC5jb20+AAoJEJb7nbIZ8zON3m8A/2TI4+1zLhOg+ysx6fFyCwoEd02HRCoe
s4uetuLUrff3AP4wQ/MIU1BQSV19cJqrtKngGITWNnk2PkGKtt2vSMsQkw==
=x8XT
-----END PGP SIGNATURE-----




More information about the netty-users mailing list