|
|
|
|||||
|
Migrating objects between machines
Does Ice have any build in features that would be useful for binding to an object which might migrate between different host machines.
Specifically I have a game character object which will be controlled by a remote client. Over the course of the game this character will move between different locations, and these locations typically reside on different hosts. Naturally the object has to do some reregistering after is has been transfered, but it would be practical if I didn't have to keep track of all the proxies that point to the object, and update them by hand. I was thinking of seperating the communication using IceStorm, but 1) of all I didn't know what impact that might have on bandwidth (At the very least I would then be sending the information twice), 2) I don't know how useful IceStorm would be for actually controlling the remote object and 3) a few of the methds I use are currently two-way which seems incompatible with IceStorm - but I might be able to change that. However it would be more practical if the object could somehow just reregister at the locator service, but since it would have changed adapter I don't assume that the old indirect proxies would be able to find it. I might do it using direct object registration, but I'm going to have a lot of these objects (They do have unique identites) so I don't know if that would be impractical. mvh Nis |
|
|||||
|
Well the actual migration wasn't my problem, because as you describe that is simply a matter of sending the object to the other server. The problem is more one of a 'forwarding address' so that all the clients who knew where the object _was_ are somehow informed of the objects new location. Preferably without me having to keep check of all the clients that know of the objects existence.
mvh Nis |
|
||||||
|
See this thread for a similar discussion.
Another option that you might want to consider would be to not migrate your objects at all. Migrating objects might be tricky and inefficient if you have large objects. Furthermore, if your object migrates often, the clients making requests on your object will have to retrieve the new location of your object often. The location mechanism might become a bottleneck in such a scenario... I'm not sure I understand what you mean about using IceStorm. Can you detail a little more? Benoit. |
|
|||||
|
Quote:
Quote:
Quote:
This seemed reasonably elegant except for the issues mentioned above, but if htere is some basic flaw I'd be happy to hear it ![]() |
|
|||||
|
Quote:
mvh Nis |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| No sequences of objects in Ice-E? | bartley | Help Center | 5 | 05-30-2006 06:44 PM |
| How can I get all Objects in evictor db? | Yunqiao Yin | Help Center | 2 | 02-10-2006 04:21 AM |
| Problems migrating fron IcePack to IceGrid | xdm | Help Center | 2 | 12-21-2005 12:08 PM |
| Objects and Proxies | ganzuoni | Help Center | 1 | 06-18-2003 03:49 PM |