Compaq Reliable Transaction Router manual Bank Partitioning Example

Page 31

 

RTR Server Types

Partition

When working with database systems, partitioning the database

 

can be essential to ensuring smooth and untrammeled

 

performance with a minimum of bottlenecks. When you

 

partition your database, you locate different parts of your

 

database on different disk drives to spread both the physical

 

storage of your database onto different physical media and to

 

balance access traffic across different disk controllers and drives.

 

For example, in a banking environment, you could partition

 

your database by account number, as shown in Figure 1–19. A

 

partition is a segment of your database.

Figure 1–19 Bank Partitioning Example

TR

Appn

Server - BE

Appn

Server - BE

Appn

Server - BE

Appn

Server - BE

Appn

Server - BE

Accts

Accts

Accts

Accts

Accts

20,000-

40,000-

70,000-

90,000-

1-19,999

39,999

69,999

89,999

99,999

 

 

 

 

LKG-11213-98WI

Key range

Once you have decided to partition your database, you use key

 

ranges in your application to specify how to route transactions

 

to the appropriate database partition. A key range is the

 

range of data held in each partition. For example, the key

range for the first partition in the bank partitioning example goes from 00001 to 19999. You can assign a partition name in your application program or have it set by the system manager. Note that sometimes the terms key range and partition are used as synonyms in code examples and samples with RTR,

Introduction 1–21

Image 31
Contents Reliable Transaction Router Getting Started Page Contents Reliability Features Figures Page Purpose of this Document PrefaceDocument Structure For all users Related DocumentationReaders Comments Reading PathIf V2 to System Manager Application Programmer= Tutorial Reliable Transaction Router IntroductionRTR Continuous Computing Concepts RTR Continuous Computing ConceptsRTR Terminology RTR TerminologyClient Symbol Server Symbol Roles Symbols Components in the RTR Environment Nontransactional messaging Transaction ID Controller Application Presentation Database ServerBusiness Logic Odbc Model RTR Frontend PC BrowserJournal Browser11 RTR Deployed on Three Nodes 12 Standby Server Configuration 13 Transactional Shadowing Configuration RTR Server Types RTR Server TypesStandby server Standby in a cluster 15 Standby Servers 16 Shadow Servers Server1 Server2 Server3 Server4 17 Concurrent ServersPartition a Transaction19 Bank Partitioning Example Standby Server Configurations Anonymous clients Tunnel RTR Networking Capabilities RTR Networking CapabilitiesPage Three-Layer Model Architectural ConceptsThree Layer Model Three-Layer ModelRTR Facilities Bridge the Gap RTR Facilities Bridge the GapBroadcasts Flexibility and GrowthFlexibility and Growth Transaction IntegrityObject-Oriented Programming Partitioned Data ModelPartitioned Data Model Partitioned Data Model Object-Oriented ProgrammingFunctional and Object-Oriented Programming Compared ObjectsExample 2-1 Objects-Defined Sample Messages Class RelationshipsPolymorphism Object Implementation Benefits XA Support XA SupportServers Reliability FeaturesRecovery Scenarios Failover and RecoveryFailover and Recovery Recovery Scenarios Backend Recovery Router Recovery Frontend RecoveryPage RTR Interfaces RTR Management Station RTR Management Station RTR Create Facility DESIGN/ALLROLES=NODEA RTR RTRRECEIVEMESSAGE/TIME=0 RTR RTRSTARTTX/CHAN=C Interface Application Programming InterfacesRTR Browser Interface Application Programming InterfacesRTR C Example of an open channel call in an RTR client program RTR System Management Environment RTR EnvironmentRtrcomserv RTR System Management EnvironmentManagement Station Running Browser Software RTR System Management EnvironmentMonitoring RTR RTR Runtime Environment Client Application RTR Runtime EnvironmentOptional External Applet Not Running Whats Next? Whats Next?Page Glossary Channel BranchBroadcast Callout serverData object Common classesConcurrent server Data marshallingEvent driven Fault tolerantEndian EventKey range FrontendInquorate JournalMultithreaded MessageMessage handler MultichannelProperty classes PrimaryProcess PropertiesRTR environment RollbackRouter RTR configurationTransaction controller ShadowStandby TransactionTransactional message Two-phase commitTransactional shadowing Index-1 IndexIndex-2