Comparison

Hi All,

Can anyone help me understand the advantages of using webServices over pub sub model(triggers and brokers)

Thanks in advance

In simple terms, webService calls are synchronous (except SOAP over JMS). Pub sub model is asynchronous.

When you execute something synchronously, you wait for it to finish before moving on to another task. When you execute something asynchronously, you can move on to another task before it finishes.

In Continuing to the above terms,

WebServices – (more of real time specific) via SOAP/Rest/HTTPS based. (B2B)

Pub/sub – (can be async (publish and forget) or sync (request/reply) with in EAI/messaging terms

Both has its own advantages.

So based on the design requirements dictate you can choose both or one in your interface needs.

HTH,
RMG