[jgroups-dev] Question about recent RELAY commit in CVS
Mike Jensen <[email protected]>
| Newsgroups | gmane.comp.java.javagroups.devel |
|---|---|
| Message-ID | <[email protected]> |
I was looking at the relay implementation. I am curious about some of
the ideas being it.
So as currently implemented, would the only messages that get sent
between two relay's are messages that have been broadcast to the entire
group? Is there any way to send a message directly to the remote relay
node?
I am not sure how realistic this is with the current group management
but, a possible solution I see is:
In groups {A, B, C} and {X, Y, Z} where A and X are the
coordinators....we could include A in the X, Y, Z membership (hopefully
with some flag to indicate that it is a relay?). And include X in {A,
B, C}....That is the simplest way I can see to do it.
But a better solution IMO would be to have the relay link be a group
member in itself. That way if the coordinator changed, it would not
cause a view change on the remote group. And instead we could keep
communicating with the same member that represents this relay.
Ether way it is implemented in the view, I kind of think that there
still needs to be some sort of change to the message your sending the
relay node. Meaning, so you have directed a message to a remote group,
now what does it do when it arrives? I think there should be a flag to
indicate if the message is intended for just the relay node
(coordinator), or if this message should then be sent to all remote
group members. Of course, if the message only arrived at the relay
node, it _could_ be the application layers responsibility to handle if
this should be broadcast to all other group members or not. But I think
it is more eloquent to put it in the JGroups level.
Sorry if you have already considered these aspects and I am just not
seeing the answer. I have not tried using it yet, just looking and
thinking.
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Javagroups-development mailing list