3.2.3 Sample Distributed Application

The following table illustrates how client requests are routed to servers. In this example, a banking application called bankapp uses data-dependent routing. For bankapp, there are three groups (BANKB1, BANKB2, and BANKB3), and two routing criteria (Account_ID and Branch_ID). The services WITHDRAW, DEPOSIT, and INQUIRY are routed using the Account_ID field. The services OPEN and CLOSE are routed using the Branch_ID field.

Table 3-1 Data-dependent Routing Criteria for Sample Distributed Application

Server Group Routing Criteria Services
BANKB1 Account_ID: 10000 - 49999 WITHDRAW, DEPOSIT, and INQUIRY
Branch_ID: 1 - 4 OPEN and CLOSE
BANKB2 Account_ID: 50000 - 79999 WITHDRAW, DEPOSIT, and INQUIRY
Branch_ID: 5 - 7 OPEN and CLOSE
BANKB3 Account_ID: 80000 -109999 WITHDRAW, DEPOSIT, and INQUIRY
Branch_ID: 8 - 10 OPEN and CLOSE