Broker 10.15 | webMethods Broker Documentation | webMethods Broker Client Java API Programmer's Guide | Getting Started | Event-Based Applications
 
Event-Based Applications
 
Events
Broker Clients
The Broker
Broker-to-Broker Communication
The webMethods Broker system provides you with interfaces, classes, and methods for building powerful, event-based applications that are made up of de-coupled client programs. The client programs are de-coupled because they communicate by sending and receiving events through a third entity called a Broker. A Broker is actually part of a Broker Server, which can contain multiple Brokers. For more information on the Broker Server, see Administering webMethods Broker.
The figure below depicts a simple example where an Order Entry program receives input from a customer and publishes a CustOrder event. The act of publishing the event causes the event to be sent to the Broker. The Broker then determines that the Order Database program has subscribed to the CustOrder event, and so the Broker distributes the event to the Order Database client program.
Sending events through a Broker
More complex applications are possible than the simple example shown in the next figure. The Order Database program could generate an OrderConfirmed event that would be sent to the Order Entry program as a reply to a CustOrder event.
Two clients implementing a request-reply event mode
You might also design a system where several client programs receive the CustOrder event and perform their own processing, such as checking the inventory on hand or verifying the customer's credit status.
Multiple clients subscribing to an event type
The webMethods Broker system also allows the Broker and the client programs that comprise an application to execute on different hosts within a network.