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

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.

主站蜘蛛池模板: 沙河市| 抚宁县| 邯郸市| 呼玛县| 桃源县| 河南省| 灌阳县| 平舆县| 县级市| 宁海县| 葫芦岛市| 大关县| 汤阴县| 武夷山市| 普兰店市| 铜梁县| 舟曲县| 新昌县| 浦北县| 武威市| 建瓯市| 库车县| 杂多县| 闸北区| 庐江县| 石景山区| 当涂县| 龙川县| 青田县| 民县| 闸北区| 呈贡县| 汨罗市| 天气| 施甸县| 利辛县| 峨边| 辰溪县| 淮北市| 增城市| 花莲市|