Skip to content
tezvyn:
Menu

Data Virtualization: One Query, Many Sources

Source: Wikipedia: Data virtualizationHardHow cards are made

Data virtualization creates a single logical database from many physical sources without moving the data. It's used for real-time integration across silos like SQL, NoSQL, and APIs.

Why it exists

Most organizations' data is scattered across different systems: relational databases, SaaS APIs, NoSQL stores, and flat files. Querying this data traditionally requires writing separate code for each source and manually combining the results, which is slow, complex, and brittle.

The mental model

Think of data virtualization as a universal remote for all your data. Instead of juggling different remotes (query languages, clients) for your TV, soundbar, and streaming box, you use one remote that speaks the right protocol to each device. Your application sends one query to the virtualization layer, which then translates and delegates the work to the correct underlying data sources.

How it works

The process is one of translation and federation, not data movement. First, an application sends a single, logical query (often SQL) to the data virtualization server. Second, the server's query engine consults its metadata map to understand where the required data lives. Third, it breaks down the logical query into multiple, source-specific sub-queries and dispatches them to the underlying systems. Finally, it retrieves the results, integrates them on-the-fly (joining, filtering, aggregating), and returns a single, unified result set to the application. The data is queried in-place and on-demand.

When to use it

Use data virtualization when you need a unified, real-time view of data from heterogeneous sources without the delay or cost of building a data warehouse. It's excellent for agile BI, rapid prototyping, and situations where data governance rules prevent you from physically consolidating data into a central repository.

When not to use it

Data virtualization is not a performance silver bullet. Your query speed is capped by the slowest underlying data source, making it a poor fit for high-throughput, low-latency transactional workloads. For large-scale historical analysis, a dedicated data warehouse, where data is pre-optimized for analytical queries, will almost always be faster.

One canonical example

A financial analyst needs a report combining customer profiles from a Salesforce CRM, transaction histories from an on-premise Oracle database, and market data from a third-party REST API. They write one SQL query against the virtualization layer. The layer seamlessly fetches data from the API, queries the Oracle DB, and joins the results into a single view for the analyst's dashboard, all without copying the data beforehand.

Interview question

For which scenario would Data Virtualization typically be a less optimal solution compared to a data warehouse or direct integration?

  • a.Integrating data from heterogeneous sources without physically moving or duplicating it due to compliance regulations.
  • b.Supporting high-throughput, low-latency transactional processing that requires frequent updates across multiple sources.Correct
  • c.Enabling rapid prototyping of analytical reports by combining data from various departmental databases.
  • d.Providing a unified, real-time view of customer data spread across CRM, ERP, and legacy systems for agile BI.
Why?

Data Virtualization is explicitly stated as a poor fit for high-throughput, low-latency transactional workloads because its performance is capped by the slowest underlying data source. Options A, B, and D describe ideal use cases for Data Virtualization.

Just read this? Test yourself on what you have been reading.

Read the original → en.wikipedia.org

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Open roles that interview on data engineering — each one lists the topics its interview covers.

See open roles