Program guide > Access data with client applications > Programming for transactions
Run parallel business logic on the data grid (DataGrid API)
The DataGrid API provides a simple programming interface to run business logic over all or a subset of the data grid in parallel with where the data is located.
- DataGrid APIs and partitioning
With the DataGrid APIs, a client can send requests to one partition, a subset of partitions, or all the partitions in a data grid. The client can specify a list of keys, and WebSphere eXtreme Scale determines the set of partitions that are hosting the keys. The request is then sent to all the partitions in the set in parallel and the client waits for the results. The client can also send requests without specifying keys, therefore, requests are sent to all partitions.
- DataGrid agents and entity-based Maps
A map contains key objects and value objects. The key object is a generated tuple as is the value. An agent is normally provided with the application specified key objects.
- DataGrid API example
The DataGrid APIs support two common grid programming patterns: parallel map and parallel reduce.
Parent topic:Program for transactions
Transaction processing overview
Optimistic collision exception