- Introduced by
- Amit Sheth and Paul Larson
- Year
- 1990
- Type
- Database integration architecture
- Family
- Distributed Data Integration
What does it do?
Data federation is an approach to integrating data from heterogeneous, autonomous, distributed databases without requiring centralized storage.
Sheth and Larson's 1990 paper defines federated database systems as collections of cooperating database systems that are autonomous and possibly heterogeneous. A federated system presents one query interface over several independent sources while each source keeps its own schema.
The intuition behind the method
Organizations often keep data in incompatible systems, such as older databases, cloud services and application-specific stores. Copying everything into one warehouse takes effort, and the copy can fall behind the sources. A federated system instead places a layer over the sources. It rewrites each query into a form each source understands, sends the parts out, and combines the partial results into one answer.
History
Sheth and Larson's 1990 paper in ACM Computing Surveys defines a reference architecture for distributed database management systems from system and schema viewpoints, and shows how various federated database system architectures can be developed. It then gives a methodology for building one of the popular architectures and discusses critical issues in developing and operating such a system. For a practitioner, the paper supplies the framing of autonomous, heterogeneous component databases and a design procedure for one architecture.
When to use it
Choose data federation when the data must stay in autonomous systems that cannot be merged, when sources change often enough that copies would quickly go stale, or when queries need values as they currently stand in several systems. Results reflect each source at the moment it is queried. Unless the sources or the federation layer provide a stronger guarantee, a federated answer is not a single consistent snapshot of all sources, and sources may change while a query runs. The approach assumes that network links between the federation layer and the sources are available and that the latency of cross-source queries is acceptable for the application. Do not choose it for repeated heavy analytical queries over long histories, where a consolidated warehouse is usually more suitable, or when the sources cannot absorb the load that remote querying would place on them.
Limitations and considerations
- Cross-source queries add network transfer and coordination time, and this cost rises with the volume of data moved from sources to the federation layer.
- Optimization is limited by source capabilities: a source that cannot evaluate a predicate forces the federation layer to fetch more rows and filter them itself.
- Mappings between local and global schemas must be updated by hand when a source's schema changes, which is a recurring maintenance cost.
- Answers can be incomplete. If a source is unavailable or slow, the federation layer may return partial results, fail the query or use cached data, depending on how it is configured, so users should check which sources contributed to an answer.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Sources keep their autonomy: the federation layer works through each system's own query interface, so no source has to be restructured or merged with another.
- Queries read source data as it stands when each subquery runs, because no separate copy is created and kept synchronized.
- Avoids building a separate consolidated store for data that is already maintained in its source systems.
Applications
- For example, research groups in regulated industries may query experimental data held in internal databases and external repositories without merging these into one store.
- For example, banks and insurers may combine customer information held in legacy core systems with newer digital channels, where each system remains the system of record.
- For example, hospital networks may give clinicians access to patient information held by separate facilities without maintaining a single duplicated copy.
- For example, retailers may answer questions that span store, warehouse and supplier systems when those operational systems must stay where they are.
How it works
How it works
Identify each source and record its schema, data types and the query operations it supports. This inventory determines which operations the federation layer can delegate to each source.
Define mappings from each local schema to a global federated schema. These mappings resolve naming conflicts for the same concept, type mismatches such as text versus integer, and structural differences between data models.
For each query, determine which sources hold data relevant to it, so that sources not needed for the answer are not contacted.
Translate each subquery into the native language of its source, push selection conditions down to the sources where they can be evaluated, and run the subqueries in parallel.
Collect the partial results, perform any operations the sources could not carry out, and return one unified result to the user.
Common pitfalls
- Delegating too much work to the federation layer instead of the sources, which moves large volumes of data over the network before filtering.
- Assuming every source supports the operations a query needs. The execute step depends on what each source can evaluate, so this should be checked during discovery.
- Building one global schema that forces fundamentally different data models into a single structure. Mappings are easier to maintain when they cover only the concepts that queries actually need.
Frequently asked questions
What is the difference between data federation and data warehousing?
Warehousing copies data to a central location (latency but complete control); federation queries sources remotely (no copies but higher latency). Choose federation for real-time access to autonomous sources; warehousing for analytical queries on integrated history.
How do I handle schema conflicts when federating sources?
Create semantic mappings between local schemas and a global schema. Handle naming conflicts (same concept, different names), type mismatches (string vs. integer), and structural differences (relational vs. hierarchical).
How can I improve federated query performance?
Push predicates to sources to minimize data transfer. Use caching for frequently accessed source data. Parallelize queries across sources. Avoid unnecessary joins across sources; perform within-source joins first.
What happens when a source is unavailable?
Federated systems may return partial results from available sources, fail the query, or use cached data depending on requirements. Design queries and applications to handle source unavailability gracefully.
Related methods
Sources
Sheth, A. P., & Larson, P. A. (1990). Federated database systems for managing distributed, heterogeneous, and autonomous databases. ACM Computing Surveys, 22(3), 183-236.
Open DOI referenceÖzsu, M. T., & Valduriez, P. (2011). Distributed and parallel database systems. Proceedings of the ACM SIGMOD International Conference on Management of Data, 1657-1668.
Open DOI referenceGarcia-Molina, H., Ullman, J. D., & Widom, J. (2009). Database Systems: The Complete Book (2nd ed.). Pearson Education.
Open publication reference