Read-Through and Write-Through

  Search Here
Searching XAP 6.0 Documentation

                                               

Section Summary: About space write-through and read-through operations and how to configure them by implementing the External Data Source interface, or by using a standard Hibernate interface.

Overview

This section discusses space write and read-through operations, and how to configure them by implementing the External Data Source interface or by using a standard Hibernate interface.

In this section:

  • Read-through and write-through operations are discussed according to two main types of users: JavaSpaces API users and Map API users. (Both APIs use read-through and write-through operations with POJOs.)
  • Each type of write and read is demonstrated, including single and multiple objects, transactions, and read/write in partitioned and replicated clustered spaces.
  • The integration of the Hibernate interface into the read and write-through operations, and the Mirror space, which allows a space to "write-behind" asychronously to a data source, are described.
  • The configuration and settings of the ExternalDataSource interface are described, including how to configure XML-based ORM mappings.

New in GigaSpaces 6.0

The External Data Source interface is new in GigaSpaces XAP 6.0. For the differences between performing read-through and write-through in version 5.2 and version 6.0, see the migration document.

Enterprise Data Fabric

External Data Source Interface – Middleware Link to Persistent Data Sources

The write and read-through operations and the External Data Source interface described in this section are an important part of the GigaSpaces concept of virtualizing and subsuming all the data sources required by an enterprise under one unified management, forming the Enterprise Data Fabric. The system can connect a running client application to such disparate data sources as local data caches, local and remote databases, clustered memory, message stores, and even remote running applications, all in a way that is transparent to the client application. The External Data Source interface is the key middleware connection link for loading and storing data to and from persistent data sources.

Virtualization of Tiers – Space-Based Architecture

Similar to the virtualization of data described above, GigaSpaces offers a space-based architecture (SBA) for processes, in which tiers are implemented as services within a shared runtime environment – regardless of the number of processing units actually involved – rather than as discrete tiers of presentation, business logic, and data access executing in autonomous runtimes.

Virtualization of the tiers (decoupling the physical entity from the logical entity) is a key strategy of space-based computing for achieving dynamic scalability.

In a SBA, virtualization of the tiers is achieved by grouping together the tiers required to process the application logic into a single logical processing unit. Scaling is achieved by running multiple instances of those units on multiple machines. In that way, the tiers are also spread between the machines and therefore become a virtual entity, i.e. there is no specific server that hosts a specific tier, but rather all machines host everything. It is the data and the load that are partitioned between the different units and enable the scaling-out. The overall efficiency with this architecture is also improved, since interaction between the tiers is handled within the same VM and there is no serialization/de-serialization overhead associated with it.

For more details, see Read-Through and Write-Through Overview.

Section Contents


GigaSpaces 6.0 Documentation Contents (Current Page in Bold)

    Java

    C++

    .NET

    Middleware Capabilities

    Configuration and Management

Add GigaSpaces wiki search to your browser search engines!
(works on Firefox 2 and Internet Explorer 7)

Labels

 
(None)