This application claims priority to Australian Provisional Patent Application No. 2007901043, having an international filing date of Feb. 28, 2007, entitled “Transaction Processing System and Method,” which is hereby incorporated by reference herein in its entirety.
The present invention relates to a transaction processing system and a transaction processing method.
In the gaming industry, there is a move towards server based gaming systems where the majority of the gaming functions are implemented on a server and the gaming machines played by players are clients of the server.
For such implementations to be effective, transactions between the gaming machines (also known as gaming terminals) and the server need to be carried out in real-time. That is, without any delay that is apparent to the player at the gaming machine.
Where there are a larger number of gaming machines connecting to a server, the server can be exposed to high loads and hence in a gaming system with a large number of gaming machines, the server may require significant CPU processing power, particularly in light of the fact that the relationship between increased load and CPU power is not linear. This can result in a high investment cost for hardware.
Accordingly, there is a need for an architecture for a gaming system that is capable of handling high transaction loads, and within such an architecture, a need to manage transactions efficiently.
In a first aspect, the invention provides a method of conducting transactions in a gaming system comprising:
In an embodiment, the method comprises:
In an embodiment, the method comprises updating the back end database by copying the partition from the front end database into a corresponding partition in a back end transactional data table comprising a plurality of time interval partitions in the back end database.
In an embodiment, the method comprises repeating steps (a) to (c) until each of the plurality of time interval partitions is used and then conducting the next transaction in a first time interval partition.
In a second aspect, the invention provides a transaction processing system comprising:
In an embodiment, the back end server comprises a synchronization controller arranged to control the synchronization of the front and back end databases.
In an embodiment, the back end database comprises a partition synchronization table that holds a record of the last partition that was synchronized.
In an embodiment, the back end server comprises a partition log table to which log entries are written to log updating of the back end database.
In an embodiment, the back end database comprises a back end transactional data table comprising a plurality of time interval partitions, the back end transactional data table corresponding to the front end transactional data table, and wherein the back end database is updated by copying the partition from the front end database into a corresponding partition in the back end database.
Certain embodiments will now be described to illustrate the invention in relation to the accompanying drawings, in which:
Referring to the drawings there is shown a transaction processing system 100 and method for a database based gaming system that is designed to handle high loads in a real-time environment and that incorporates database synchronization.
The transaction processing system 100 has a back end database server (BEDS) 110 that is the focal point of the system where all data needed by different nodes is shared. The back end database server 110 is also where all client data is stored. The gaming system 100 has a plurality (N) of front end database servers (FEDS) 120A-120E adapted to receive connection requests from a plurality (M) of clients 130A-130G. Clients 130E and 130F are shown as connecting to front end database server 120D via an application server 125 to illustrate that depending on the embodiment, none, some or all of the clients 130A-130G may connect to a front end database server 120 via an application server 125.
As shown in
The sets of transactional data tables will vary from embodiment to embodiment. In one embodiment, there are five transactional data tables used to process transactions at the front end database server and corresponding five tables in the back end database server. In this embodiments the five tables are:
The synchronization of the two databases is implemented as a batch job run by a synchronization controller of the back end server, with a separate batch job being conducted for each front end database. The batch job runs every partition interval. Therefore, in the case of minute partitions, the batch job will run every minute.
The back end database contains three tables 116, 117, 118 to handle the synchronization functionality. The first table “Partition_Sync” is the synchronization partition and holds one record for each transaction table and front end database to synchronise. It is used to keep track of the last synchronise partition by storing a partition key, which is stored with the timestamp that it executed.
The second table “Partition_Sync_Partition” 117 holds one record for each transaction table partition and front end database that is to be synchronised. It is used to protect the partition from other access attempts during the copy and truncate phase.
The third table, “Partition_Sync_Log” is used to log the times and the numbers of records removed. Log entry records are only written if records are moved.
The process will be described further in relation to the flowchart of
The method then involves locking 210 the Partition_Sync_Partition record on the back end database corresponding to the retrieved partition key. In the preferred embodiment, the method employs a safe timing interval of two partitions before and after the current partition to make sure that data is not obstructed by the synchronization process. Therefore, at step 210 the partition records are locked for the current minute and each other minute to the current minute plus and minus two minutes on the back end database. At step 215 the partition to be synchronized is locked in the front end database to prevent any new data being written during the move process and transactions are then processed in the succeeding partition on the front end database. At step 220, the data is copied from the front end transaction database to the destination in Partition_Sync_Partition specified by the partition key. The copy is then committed into Partition_Sync_Partition as the subsequent truncation (removal) process on the front end database cannot take place while there is an active transaction in the back end database. At step 225 it is determined whether anything was copied from the partition and if something was copied, the data is removed from the partition on the front end database 230, thus releasing the partition for storage of new data. A record is then written to the log record 235 specifying which files have been updated.
The Partition Sync table is then updated 240 to indicate which is the next partition key and the lock is released on Partition_Sync_Partition 245.
A person skilled in the art will appreciate that if nothing is to be copied at 225 the method proceeds to step 240. The process then proceeds to a wait cycle 250, 255 where it is determined whether the next synchronization should begin has occurred.
Various modifications will be apparent to persons skilled in the art and should be considered as falling within the scope of the invention described herein.
It is to be understood that, if any prior art publication is referred to herein, such reference does not constitute an admission that the publication forms a part of the common general knowledge in the art, in Australia or any other country.
In the claims which follow and in the preceding description of the invention, except where the context requires otherwise due to express language or necessary implication, the word “comprise” or variations such as “comprises” or “comprising” is used in an inclusive sense, i.e. to specify the presence of the stated features but not to preclude the presence or addition of further features in various embodiments of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2007901043 | Feb 2007 | AU | national |