From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1eef1e815cf70416 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.191.225 with SMTP id hb1mr3542351pbc.5.1339273744458; Sat, 09 Jun 2012 13:29:04 -0700 (PDT) Path: l9ni34863pbj.0!nntp.google.com!news1.google.com!postnews.google.com!l17g2000vbj.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Distributed Systems Annex, data sharing between programs Date: Sat, 9 Jun 2012 13:29:04 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4d12f9e5-4325-4b69-a657-7d92960bf5b0@l17g2000vbj.googlegroups.com> References: <0d661453-423c-484b-90cd-4e80ffe1db5b@6g2000vbv.googlegroups.com> <6c92c206-0bfe-49ad-a732-fa93949e3032@z19g2000vbe.googlegroups.com> <4fd340ca$0$6186$ba4acef3@reader.news.orange.fr> NNTP-Posting-Host: 83.3.40.82 Mime-Version: 1.0 X-Trace: posting.google.com 1339273744 8489 127.0.0.1 (9 Jun 2012 20:29:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 9 Jun 2012 20:29:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l17g2000vbj.googlegroups.com; posting-host=83.3.40.82; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20100101 Firefox/12.0,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-06-09T13:29:04-07:00 List-Id: On 9 Cze, 14:25, Pascal Obry wrote: > > How would you do that with "calls" > > instead of "messages"? > > As said in my previous message. With a queue. I have used this scheme, > it works perfectly well. Yes - you have just implemented a message-oriented middleware on top of some low-level primitives known as "calls". If you have a queue, then you have some items in there - these are exactly the messages lifted to the level of design entities, as I've described earlier. A push-pull queue was easy to implement on top of RPC, but what about push-push queues? What about N:M publish-subscribe? This is where messaging appears to be a higher-level concept. Actually, I'm pretty convinced that RPC and messaging are complementary and can be used to implement one another. As Dmitry said, RPC can be achieved by send+wait on a message and as you say, passing messages around is actually executing possibly remote calls on some intermediary entities like queues or brokers. The question is - when you will have to do more coding (and have more impedance mismatch) to get from one paradigm to another. > You can even launch new message consumers > dynamically or stop some. Uhm... remember the original post in this thread, by Adam? It is not actually clear whether this is kosher or not. ;-) -- Maciej Sobczak * http://www.msobczak.com * http://www.inspirel.com