1 / 11

Asynchronous Composition

Asynchronous Composition. Pyounguk Cho, Oracle Corporation. Agenda. Synchronous Composition Asynchronous Composition Demo Q & A. Definitions Service-centric : Request and response messages get sent over the same transport channel

breaux
Download Presentation

Asynchronous Composition

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Asynchronous Composition Pyounguk Cho, Oracle Corporation

  2. Agenda • Synchronous Composition • Asynchronous Composition • Demo • Q & A

  3. Definitions Service-centric : Request and response messages get sent over the same transport channel Client-centric : Client thread will be blocked until send() returns Synchronous MEP

  4. Synchronous Services • Common use cases • Request/response MEP over HTTP • Short-running operations • Real-time processing • What are the pain points? • Blocking • Indefinite waiting • Timeout • Less scalable due to choking/throttling

  5. Asynchronous MEP Definitions Service-centric : Response messages get sent over a different transport channel from the one used for request messages Client-centric : Client thread will not be blocked by invocation

  6. Pseudo-Asynchronous Client Primarily to support non-blocking invocation of synchronous services Examples : XMLHTTPRequest object for AJAX applications callback handler function JAX-WS asynchronous client callback handler Blocking/non-blocking polling(local) Client Application Service Provider Client Proxy Synchronous Service

  7. Asynchronous Services Common use cases Two one-way MEP over HTTP Long-running operations Delayed or batch processing Fundamental benefits Better suit real-world business model Better overcome transport-level constraints Provide richer messaging patterns beyond request/reply Service Provider Asynchronous Client Application Proxy Service Client Callback Service Callback Client

  8. Asynchronous Services(cont) Considerations Message correlation(request-callbacks/responses) Random MessageID Process/SessionID Business data(orderID) Callback service Deployment(firewall,..) Policies Identity propagation Timeout & cancellation Purging expired requests Reentrant cancellation for requests under processing Multiple responses Error/fault handling

  9. Asynchronous Composition Enabling technologies(under the hood) Polling Asynchronous transport(JMS, SMTP,..) WS-Addressing Asynchronous composition choices BPEL SCA Standalone web services

  10. Demo

  11. Q & A

More Related