[infinispan-dev] Fwd: [jgroups-dev] Request for comments on FORK: grabbing a private channel for communication from an existing channel

Bela Ban bban at redhat.com
Fri Aug 9 12:11:02 EDT 2013


FYI.


-------- Original Message --------
Subject: [jgroups-dev] Request for comments on FORK: grabbing a private 
channel for communication from an existing channel
Date: Fri, 09 Aug 2013 17:37:46 +0200
From: Bela Ban <belaban at yahoo.com>
To: jg-dev <javagroups-development at lists.sourceforge.net>

I wanted to solicit feedback on FORK [1].

Using FORK, one can get a private light-weight channel off of an
existing channel, e.g. to send messages, create an RpcDispatcher on top
etc. The forked channel is then used exclusively by the application
which forks it off of the main channel, which means it will neither
interfere with the main channel, nor will it see messages other than its
own.

A forked channel can also add protocols, these are then private to it,
too. For example, an application could grab the JGroups channel from
Infinispan
(Cache.getAdvancedCache().getRpcManager().getTransport().getChannel()),
then fork a light-weight channel with CENTRAL_LOCK on top and use it to
manage cluster wide locks. The forked channel would be private to the
application which creates it, but it would piggyback its messages on the
existing channel, without interfering with it.

I'm currently implementing a prototype, and would like to get feedback
for the current design [1]. The design doc and impl are in branch JGRP-1613.

Feedback on the mailing list is appreciated !
Cheers,

[1] https://github.com/belaban/JGroups/blob/JGRP-1613/doc/design/FORK.txt

-- 
Bela Ban, JGroups lead (http://www.jgroups.org)







More information about the infinispan-dev mailing list