Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-29-2006
nyingchi nyingchi is offline
Registered User
 
 
Join Date: Aug 2006
Posts: 13
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.
Attached Thumbnails
solution-better-when-programming-ice-architecture.jpg  
__________________
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.
Reply With Quote
  #2 (permalink)  
Old 09-29-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,564
Hi,

You should use a single communicator. Whether or not you use several object adapters depends on the network endpoints you want to expose for each sub-system, for example: you might want each subsystem to only be accessible on a given network interface. If all the subsystems should be accessible through the same endpoints, using a single object adapter is simpler.

Cheers,
Benoit.
Reply With Quote
  #3 (permalink)  
Old 09-29-2006
nyingchi nyingchi is offline
Registered User
 
 
Join Date: Aug 2006
Posts: 13
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.
Reply With Quote
  #4 (permalink)  
Old 09-29-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,564
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 11:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.