官术网_书友最值得收藏!

Parallel service invocation

BPEL also supports parallel service invocation. In our example, we have invoked Bookstore A and Bookstore B sequentially. This way, we need to wait for the response from the first service and then for the response from the second service. If these services take longer to execute, the response times will be added together. If we invoke both services in parallel, we only need to wait for the duration of the longer-lasting call, as shown in the following screenshot:

Note

BPEL has several possibilities for parallel flows, which will be described in detail in Chapter 8, Dynamic Parallel Invocations. Here, we present the basic parallel service invocation using the <flow> activity.

To invoke services in parallel, or to perform any other activities in parallel, we can use the <flow> activity. Within the <flow> activity, we can nest an arbitrary number of flows, and all will execute in parallel. Let's try and modify our example so that Bookstore A and B will be invoked in parallel.

主站蜘蛛池模板: 客服| 温宿县| 乌审旗| 溧水县| 利川市| 康乐县| 晴隆县| 连云港市| 闵行区| 鄢陵县| 澎湖县| 漠河县| 丰都县| 房产| 上饶市| 边坝县| 呼和浩特市| 九龙县| 西乌珠穆沁旗| 新巴尔虎右旗| 肥东县| 呈贡县| 永福县| 鄯善县| 五峰| 周至县| 濮阳市| 宝丰县| 华阴市| 察雅县| 华蓥市| 陕西省| 晋江市| 武安市| 简阳市| 敦化市| 武川县| 涞源县| 武鸣县| 诏安县| 萨迦县|