|
|
|
|||||
|
Which solution is better when programming with ICE?
Hi ,
After reading the ICE reference manual 3.1.0 completely, I want to take the knowledge into practice----Develop a small application to know more details about ICE. the attachment is the architecture of my distributed application. Description: There are six subsystems distributed at different remote host. The digit next to each rectangle shows the servant number the SERVER should provide for that subsystem. As a freshman of ICE, I know three ways to meet the specification mentioned above. Solution 1: SERVER uses a single ICE::communicator which contains a single ICE::ObjectAdapter. And the adapter contains all the servants needed the SERVER to provide. In other words, the adapter contains 5 + 4 + 6 + 4 + 5 + 6 = 30 servants. Solution 2: SERVER uses a single ICE::communicator which contains six adapters(the subsystem number). Each adapter services for a specified subsystem. Solution 3: SERVER uses more than one ICE::communicator ?? May you tell me which solution is better ? And what’s your solution to meet my specification? I appreciate your help very much. ![]()
__________________
kin Young university: Sun Yat-sen University url: http://www.sysu.edu.cn learning ICE.
Last edited by nyingchi : 09-29-2006 at 05:32 AM. |
|
|||||
|
thanks
i got some hints from you reply. Another question is : Does ICE run time has the ability to hand the following situation: At a very very short time interval (1seconds, suppose), each subsystem sends more than 2000 requests to the server, will all the requests be responded in time? And does this situation have anything to do with the adapter number? thanks again. kin
__________________
kin Young university: Sun Yat-sen University url: http://www.sysu.edu.cn learning ICE.
|
|
||||||
|
Sorry, it's impossible to say whether or not your system will be able to handle this load without more information such as the kind of hardware you're using, network environment, the implementation of your server, etc. I suggest that you simply give it a try
. You might also want to run the latency demo (located in the demo/Ice/latency directory of your Ice distribution) to give you an idea of how many "ping" requests Ice can handle on your hardware and network environment.I wouldn't expect the performances to be affected by the number of object adapters. The perfomances might be affected by the number of threads in the server thread pool though -- especially if you are running your server on a multi-CPU machine and if your server can take advantage of multiple CPUs (see the Ice documentation for more information on how to configure the Ice thread pool). Cheers, Benoit. |
![]() |
| 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 |
| Asynchronous Programming | ty263 | Help Center | 2 | 12-01-2006 08:46 AM |
| solution to install ICE-3.1.1 on freebsd.6.1 | canyoudink | Bug Reports | 0 | 10-19-2006 12:36 PM |
| Another solution about package mapping in Java | rc_hz | Comments | 4 | 08-23-2006 10:33 PM |
| What are the ICE-programming philosophies? | OrNot | Help Center | 1 | 07-10-2005 09:20 PM |
| a misstake for IceCS-2.0.0 vs.net2003 solution? | lkw | Bug Reports | 3 | 01-04-2005 07:45 PM |