摘要 |
<p>Disclosed is a method and system for processing transactions requested by an application in a distributed computer system. The computer system has at least one resource comprising a plurality of storage areas each with an associated resource manager, or a plurality of resources each comprising at least one storage area each with an associated resource manager, the storage areas holding the same tables as each other. A transaction manager is linked, by a network or a local application programming interface (API), to each of the resource managers, the transaction manager is configured to coordinate transaction prepare and commit cycles. The application requests operations on the resource by way of an interface, and a dispatch function directs transactions from the application to the appropriate storage areas on the basis of the content of the tables in the resource managers, in such a way that any given transaction is routed only to the storage areas containing entries upon which the transaction operates, allowing another transaction operating on different entries to be routed concurrently in parallel to other storage areas. A safe timestamp manager is provided to allocate new timestamps for committing transactions when such transactions access more than one resource storage area at the same time.</p> |