Win a copy of liveProject: Build an ML Recommender System this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Publisher/Sub and Point to Point..

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does Point to Point messaging use Synchronous
or Asyncrhonous communication?
 
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JMS, an asynchronous messaging system has a modes
know as point to point and pub/sub.
Point to point could be be RMI, a synchronous
protocol.
Point to point is not tied to either synchronous
or asynchronous.
 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rufus,
I beg to differ.
Middleware Architectures follow one of two forms - Synchronous Communication and Asynchronous Communication.
Synchronous Communication is used typically when a client is requesting a server to do some processing and is waiting for the response before proceeding further. The best example for Synchronous communication is RPC based mechanisms. Examples of RPC based mechanisms are - IIOP, RMI/JRMP, RMI/IIOP. (Note: EJB 2.0 supports a message listener in the new bean type and CORBA also has event listener capabilities, but generally speaking, remote method invocation is the normal purpose.) Excellent example is Credit Card validation. Without that you do not want to continue with the transaction.
Asynchronous communication is used when:
1. you need time transparency - do not want sub-system dependencies (check durable queues / subscribers for more info)i.e., The message producer does not need to wait for an ack before proceeding further.
2. Location transparency: In a stock quote application, the publisher has no need to know who the subscribers are and where they are.
(Note: With EJB using JNDI and CORBA using COS naming e.t.c., location transparency is achieved in RPC too, but the scope is a little different here)
In many JMS books, they talk about using JMS (MOM messaging) synchronously. Please note that they only simulate synchronous behavior. This is done via two asynchronous messages used back-to-back. This is not to be confused with RPC behavior. They talk about P2P specifically because that is the messaging model intended for one-to-one use. (Pub / Sub is supposed to be used as a Broadcast mechanism, so ack has no relevance here.)
HTH.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic