From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111308,607935dda9b15b31 X-Google-Attributes: gid111308,public X-Google-Thread: f678f,607935dda9b15b31 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-02-01 04:45:28 PST Xref: gmd.de comp.client-server:2353 comp.unix.osf.misc:942 Newsgroups: comp.client-server,comp.unix.osf.misc Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!spool.mu.edu!olivea!koriel!lll-winken.llnl.gov!taco!adm!mauney From: mauney@adm.csc.ncsu.edu (Jon Mauney) Subject: Re: DCE Questions. Message-ID: Sender: news@ncsu.edu (USENET News System) Organization: NCSU References: <2ijd6k$69t@news.tamu.edu> Date: Tue, 1 Feb 1994 12:45:28 GMT muppidi@cs.tamu.edu (Shridhar R Muppidi) writes: >Hello, > I have a few questions related to DCE RPC - would appreciate >if anybody could take some time and answer them. I'll post a >summary once I get all the answers. >1. Is it possible in DCE RPC to have one piece of code > act as both server and client? Yes. By "the same piece" I assume you mean the same process. The code, of course, must be written correctly. But it is quite easy, for example, for the server side of an RPC to turn around and make an RPC to another server. >2. Is it possible to have same server code running on > different processors/hosts? A perfect example is a > parallel machine. Lets say that a client requires > service and contacts the CDS and gets the address of > the host providing the service. Now a different client > needs the same service - is it possible to provide the > same service on a different processor/host. If 'yes' how > does the CDS know about it and direct the new client to the > new host? Yes. Two points: You can have multiple servers all providing the same service, on different hosts. The CDS will have all of them in its database. Queries to the CDS should be viewed as producing a list of possible servers, from which the client chooses one based on its own criteria. Clients that use the auto_handle method of binding will choose a server "at random" and be evenly distributed among the servers. If you have a multi-processor host, you will normally have only one server process (for a particular interface). Servers are multi-threaded by default, so the second request would simply be handled by a different thread. Of course, you must write your server to be thread-safe. -- Jon Mauney mauney@csc.ncsu.edu Mauney Computer Consulting (919) 828-8053 "Have TGT, will travel"