2.5.1 About Factory-based Routing in the Production Application
This section describes how the Production sample application uses a factory-based routing. For an introduction to this feature, see Using Factory-Based Routing (CORBA Servers Only).
You can use factory-based routing to expand the load-balancing and scalability features of Oracle Tuxedo CORBA. In the Production sample application, you can use factory-based routing to send requests to register one subset of students to one machine, and requests for another subset of students to another machine. As you increase your application’s processing capability, you can easily modify the factory-based routing in your application to add more machines.
The primary design consideration regarding implementing factory-based routing in the Production sample application is in choosing the value on which routing is based. The Production sample application uses factory-based routing in the following ways:
- Requests from client applications to the
Registrarobject are routed based on the student ID. Requests from student ID100001to100005go to Production Machine 1. Requests from student ID100006to100010go to Production Machine 2. - Requests from the
Registrarobject to theTellerobject are routed based on account number. Billing requests for account200010to200014go to Production Machine 1. Billing requests for account200015to200019go to Production Machine 2.
Parent topic: Scaling with Factory-based Routing