Client to Handle Conversation, Presence and Heartbeats
Charles Hudak
meadandale at gmail.com
Mon Sep 12 16:52:17 EDT 2011
IMO you only have one communication stream. You just have to decide on the
what the messaging protocol is between your client and server and the
implement that in Netty.
On Mon, Sep 12, 2011 at 11:52 AM, Replicator <webakaunt at gmail.com> wrote:
> @chudak,
>
> I am new to Netty, just trying to get my head around how to model these
> communication pattern. Is that a single Netty client with 2 different
> handlers ( upstream, downstream )? Is it a single Netty client with
> multiple
> handlers per [UP/DOWN] stream, each responsible for different things, e.g.
> heartbeat, presence, consuming messages?
>
> Thank you!
>
> On Mon, Sep 12, 2011 at 2:44 PM, chudak [via Netty Forums and Mailing
> Lists]
> <ml-node+s685743n6784814h33 at n2.nabble.com> wrote:
>
> > The sending of the messages by the server to the client is the heartbeat.
> > Not sure why you think you'd need a separate heartbeat (channel).
> >
> > On Mon, Sep 12, 2011 at 11:40 AM, Replicator <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=6784814&i=0>
> > > wrote:
> >
> >> We need to have a client that is consuming messages from from the server
> (
> >> that we don't control ), and occasionally send messages to the server.
> For
> >> example:
> >>
> >> 1. client sends "I am up" message to the server
> >> 2. server sends "I know that you are up. Starting to send you stuff"
> >> message back to the client
> >> 3. server sends massive number of messages to the client
> >> 4. meanwhile client and server send each other heartbeats ( on the
> >> same
> >> port ) every second.
> >>
> >> Which messaging pattern can we use for this client? Or is it just as
> >> simple
> >> as having a client with registered upstream and downstream handlers that
> >> handle heartbeats, presence, etc.. messages?
> >>
> >> Thank you!
> >>
> >> --
> >> View this message in context:
> >>
> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Client-to-Handle-Conversation-Presence-and-Heartbeats-tp6784800p6784800.html
> >> Sent from the Netty User Group mailing list archive at Nabble.com.
> >> _______________________________________________
> >> netty-users mailing list
> >> [hidden email] <http://user/SendEmail.jtp?type=node&node=6784814&i=1>
> >> https://lists.jboss.org/mailman/listinfo/netty-users
> >>
> >
> >
> > _______________________________________________
> > netty-users mailing list
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=6784814&i=2>
> > https://lists.jboss.org/mailman/listinfo/netty-users
> >
> > ------------------------------
> > If you reply to this email, your message will be added to the discussion
> > below:
> >
> >
> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Client-to-Handle-Conversation-Presence-and-Heartbeats-tp6784800p6784814.html
> > To unsubscribe from Client to Handle Conversation, Presence and
> > Heartbeats, click here<
> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6784800&code=d2ViYWthdW50QGdtYWlsLmNvbXw2Nzg0ODAwfC0xODA0ODQ0MTcz
> >.
> >
> >
>
>
> --
> View this message in context:
> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Client-to-Handle-Conversation-Presence-and-Heartbeats-tp6784800p6784845.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/20110912/66e2566c/attachment.html
More information about the netty-users
mailing list