Data Integration Layer: Architecture & Components

The article

Query your table as a graph.Petabytes. Subsecond. No data movement.

Free downloadBook demo

Data Integration Layer: Architecture & Components

A data integration layer designed to support AI agents must accommodate questions whose data requirements emerge during the investigation. An agent asked why customer deliveries are slipping needs to decide which explanations to test, discover relevant records, and change direction when the evidence contradicts a hypothesis. The integration architecture determines how far it can pursue that work across systems.

This guide follows a manufacturer connecting procurement, engineering, and customer planning. It explains how integration methods, mappings, and serving engines support an agent that investigates a business problem, including the response time, scale, and data access that autonomous exploration requires.

What Is a Data Integration Layer?

A data integration layer connects source systems to consumers, reconciles their representations, and delivers usable data through tables, events, APIs, or query interfaces. Its services and rules may be distributed across several tools.

Ingestion brings records into a destination; integration also establishes how records from different sources fit together. AWS's overview of data integration includes physical pipelines and data virtualization, which exposes a unified view without first consolidating everything into another store.

These services support different consumers. A BI report summarizes agreed metrics. Text-to-SQL translates a question into a database request. An exploratory agent also chooses what to ask next and revises its approach after inspecting results. This follows the distinction in Anthropic's description of agents: the model directs its process and tool use dynamically. SQL and reports can supply evidence within that process.

Consider a planner asking why delivery commitments are slipping. An agent might form hypotheses about production capacity, assembly revisions, or component shortages. If delayed products share a component, it could inspect that component's suppliers and then look for other commitments with the same dependency. If the connection does not hold, it should pursue another explanation. The planner sets the objective; the agent chooses tests, follows leads, and revises its explanation.

Procurement's suppliers and supplies, engineering's parts and bill of materials (bom), and planning's accounts and commitments provide the dependency structure. Delivery history, inventory, and production records would supply further evidence. Integration makes those records and their connections reusable as questions change; the agent decides which evidence to seek.

How Does a Data Integration Layer Work?

Follow a change to an assembly's component list. The integration layer obtains it through a scheduled extract, a database change stream, or an API, retaining the source identity and recovery position.

Next, it validates the representation and applies mappings. The component identifier must resolve, and the change must be interpretable as an addition, replacement, or deletion. Missing keys need a visible error path: silently dropping a relationship could cause an agent to dismiss a valid hypothesis.

The layer then updates a curated table, publishes an event, or exposes the source through a serving interface. Each path has a different freshness and recovery contract.

MethodHow data becomes availableMain design consideration
Batch ETLExtract, transform, then load a destinationTransform before loading; plan batch windows and replay
Batch ELTExtract and load, then transform in the target platformRetain source detail while governing raw-data access
Change data capture (CDC)Propagate database inserts, updates, and deletes incrementallyCoordinate the initial snapshot, change position, and sink writes
API or event integrationFetch records or receive application-defined messagesHandle pagination, rate limits, retries, and event meaning
Federation or virtualizationQuery connected sources through a shared interfaceAccount for source availability, query load, and consistency

These methods can coexist. Debezium's PostgreSQL connector reads a logical replication stream, commonly feeding Kafka through Kafka Connect. A downstream process still has to apply the changes correctly. CDC handles capture; transformation and serving remain separate responsibilities.

Once records are accessible, an agent can inspect the available definitions, choose a test, retrieve evidence, and decide whether to refine, reject, or expand its hypothesis. That cycle may return to a source several times. Source timestamps and mapping definitions help it judge whether apparently conflicting results describe different business states.

Response time matters at every iteration, including tests that rule out a lead. When the next test depends on the previous result, retrieval delays consume the investigation's time budget. Set retrieval latency targets according to that budget and the expected query workload, leaving room to explore alternatives and check exceptions. Measure retrieval latency separately from source freshness and the complete agent response, which also includes reasoning and other tool calls.

Key Components of a Data Integration Layer

An implementation needs clear ownership for five groups of responsibilities, even when one platform supplies several of them.

Connectors and ingestion. Connectors handle source-specific protocols, authentication, pagination, and incremental reads. Preserve their operational state: a lost offset or expired change log can force a new snapshot. Procurement and planning need separate connection configurations and permissions.

Contracts, mappings, and quality rules. Contracts define keys, grain, and field meanings; mappings connect source records to business entities. For bom, distinguish components from parent assemblies and document revision validity. Expose these definitions for discovery so an agent can identify relevant connections without a person specifying every table and join for each question.

Execution, orchestration, and recovery. Transformation engines process records; orchestration coordinates dependencies, schedules, retries, and backfills. Apache Airflow models workflows as tasks and dependencies. These pipelines maintain dependable inputs while the agent chooses its investigative steps. Repeating a load must not duplicate a supply relationship.

Security and governance. An agent's freedom to select its next question operates within assigned permissions. Enforce authorization on every access path, including intermediate records. Lineage connects results to sources and transformations; retention and deletion rules cover derived tables and caches as well as source records.

Serving and observability. Agents need tools to discover available data, inspect relationships, and retrieve records or aggregates. Return usable results and explicit failures so the next step can respond to what happened. Track requests, source freshness, latency, and missing inputs alongside the evidence used in the answer.

Exploration makes schema breadth a scaling concern alongside data volume. An investigation may reach tables outside the department where it began or require more historical records to test a hypothesis. The layer needs to accommodate growth in coverage and query workload while keeping relevant relationships discoverable and evidence accessible. Evaluate capacity against the organization's current data estate, expected growth, and concurrent investigations.

Data Integration Layer Architecture

Place integration and serving work so an investigation can change direction. Evaluate where records live, how quickly a new hypothesis can be tested, and whether the agent can reach relevant data beyond its starting dataset.

Physical integration copies data into a warehouse or lakehouse. It supports history, expensive transformations, and workload isolation from operational systems, with storage and synchronization responsibilities. Retain the keys and detail that let an investigation move beyond the summaries prepared for a report.

Logical integration exposes distributed data through a common interface, reducing additional persistent copies. Queries still read across the network and depend partly on source capacity. A shared interface also does not create a transactionally consistent snapshot across independent systems; repeated investigative reads need explicit freshness expectations.

Hybrid integration combines both. The manufacturer can curate engineering and planning tables while querying suitable procurement records in place. Materialize reusable transformations and history; let serving tools access the resulting relationships. An agent can then pursue new questions over connected data without requiring a new extraction pipeline for every hypothesis.

A hybrid layer materializes reusable engineering and planning data while querying suitable source tables directly; SQL and graph consumers rely on the same aligned keys and shared controls.
Figure: A hybrid layer materializes reusable engineering and planning data while querying suitable source tables directly; SQL and graph consumers rely on the same aligned keys and shared controls.

Tool selection follows these responsibilities. Debezium and Kafka Connect support change capture and delivery. dbt builds transformations in the data platform; Airflow coordinates workflows. Trino uses connectors and catalogs to query data sources. Each serves a different part of the integration architecture.

When an investigation reaches a possible component shortage, the agent needs to test that lead and determine where else it matters. PuppyGraph helps teams build agents that can explore those connections across their existing data. The team models the business relationships; the agent can choose which paths to examine as evidence develops.

PuppyGraph is a data engine for building AI agents that query enterprise data in place. Teams connect SQL databases, warehouses, and lakehouses, including direct reads of Iceberg and Delta Lake tables. The built-in AI assistant proposes a graph model for approval, mapping tables to entities and relationships. Agents can query that model using openCypher and Gremlin, with no data movement into a separate graph database. Existing SQL tools continue to use the same tables.

PuppyGraph queries the existing tables in place, so graph and SQL queries share one copy of the data and no pipeline keeps a graph copy in sync.
Figure: PuppyGraph queries the existing tables in place, so graph and SQL queries share one copy of the data and no pipeline keeps a graph copy in sync.

Through the open-source Model Context Protocol (MCP) server, a customer-built agent can inspect the model and retrieve evidence. Its reasoning loop decides which question follows each result. The built-in AI assistant also supports natural-language investigation. An agent can use SQL to compare delivery patterns, then follow modeled component relationships to test a supplier hypothesis. Each result can change the next step.

The ontology supplies reusable investigation paths. Runtime validation rejects undefined entity or relationship references and returns feedback the agent can use to revise a request. A valid path still requires a sound hypothesis and sufficient evidence. Integration jobs continue to own cleansing, identity reconciliation, and delivery to the connected stores.

PuppyGraph's published benchmarks report subsecond traversals on selected workloads. Its distributed engine compiles queries into node and edge operators and executes them in parallel. Faster evidence retrieval gives an agent room to test competing explanations and inspect exceptions before returning an answer. Actual latency depends on the workload; these retrieval timings do not measure a complete autonomous investigation.

PuppyGraph supports agents working across 3,000 enterprise tables. Its architecture separates compute from source storage and supports scaling to petabytes of data. Schema breadth lets an investigation reach related domains; data capacity supports testing its hypotheses against the underlying history. In-place access keeps that exploration on the existing platform.

One question such an investigation could generate is: which open commitments depend on supplier SUP-01742? To demonstrate this evidence step, we connected synthetic procurement and planning catalogs containing 162 suppliers, 908 parts, and 706 commitments. Procurement holds suppliers and supplies; planning holds parts, bom, accounts, and commitments. This example isolates dependency retrieval within the broader investigation.

We specified the node and relationship labels, directions, and join keys. The AI assistant, which requires an LLM API key in this setup, inspected the tables and tested those keys before proposing four node types and four relationship types.

The proposed model connects procurement's supply records to planning's parts and commitments through specified keys that the assistant tested against the data.
Figure: The proposed model connects procurement's supply records to planning's parts and commitments through specified keys that the assistant tested against the data.

After approving the model, we ran the following query to verify the dependency evidence an agent could retrieve. USED_IN follows components toward their parent assemblies, with a bound of six steps:

MATCH (s:Supplier {supplier_id: 'SUP-01742'})-[:SUPPLIES]->(component:Part)
MATCH p = (component)-[:USED_IN*1..6]->(assembly:Part)
MATCH (a:Account)-[:HAS_COMMITMENT]->(c:Commitment)-[:REQUIRES]->(assembly)
WHERE c.status = 'open'
RETURN c.commitment_id AS commitment, a.name AS account,
       assembly.part_id AS assembly, min(length(p)) AS levels
ORDER BY commitment
CommitmentAccountAssemblyLevels
CMT-1041Alder ProcessP-VALVE-101
CMT-1042Alder ProcessP-PUMP-202
CMT-1043Cedar WorksP-SKID-303
CMT-1044Flint WaterP-CTRL-212

The result identifies four open commitments across three accounts. A path-returning query traces the supplied seal through valve, pump, and control assemblies to those accounts:

One supplied component connects to four open commitments through different assembly depths; the graph preserves the paths behind the result.
Figure: One supplied component connects to four open commitments through different assembly depths; the graph preserves the paths behind the result.

The closed commitment and the unrelated assembly are excluded. This result gives an agent a new scope to investigate across the two catalogs. It could compare inventory and delivery dates for these commitments, then examine whether the suspected shortage explains their condition. Adequate stock could weaken that hypothesis; insufficient stock could justify investigating alternatives. Those checks require additional data. The recorded result establishes dependency, not the cause of a delay.

PuppyGraph customer logos under the heading Trusted by.
PuppyGraph customer testimonials from Trend Micro, Palo Alto Networks, Sola Security, Netskope, Coinbase, and Baker Hughes.

Data Transformation and Mapping in the Integration Layer

Transformation changes a record's representation or derives data. Mapping connects source fields to the consumer's model. For an exploring agent, these rules must remain consistent as it moves between questions and departments.

Start with identity. Procurement and engineering may use different codes for the same supplier. A maintained crosswalk can connect both to SUP-01742; preserve the original identifiers for tracing disputed matches. Otherwise, an agent may treat the same supplier as independent evidence from two organizations, or merge unrelated suppliers by name.

Define grain and direction. A parts row describes one part; a bom row describes a component-to-parent relationship. An agent may first trace an assembly down to its components, then follow a suspect component up to other assemblies. Both directions are useful, but their business meanings must remain explicit.

Source field or relationshipIntegrated meaningValidation
supplies.supplier_idSupplier responsible for a supply relationshipResolves to a supplier record
supplies.part_idSupplied componentResolves to the shared part identifier
bom.component_id → parent_idComponent is used in the parent assemblyBoth endpoints exist; direction is correct
commitments.statusWhether a customer commitment remains openSource states map to documented values
commitments.part_idPart required by that commitmentResolves to the same part model

Preserve units and time. Inventory quantities need known conversions, and delivery promises need their date semantics. Bills of materials need effective revisions. An agent comparing a past delay with today's dependencies could otherwise find a connection that did not exist when the delay occurred.

The demo assumes aligned keys and one active component structure. Extending it to shortage prediction requires quantities, inventory, timing, and available alternatives. Expose missing inputs to the agent so it can seek further evidence or return an unresolved question.

Common Data Integration Layer Challenges

Schema drift and semantic drift. A renamed column may fail visibly; a changed meaning can propagate unnoticed. If active changes from approved supplier to recently used supplier, an agent could build several follow-up tests on a false premise. Version contracts and review meaning changes with consumers.

Inconsistent freshness and incomplete evidence. A commitment may arrive before its engineering record. An empty lookup could indicate missing data rather than absence of a dependency. Surface unresolved references, observation times, and partial results so an agent can distinguish a rejected hypothesis from an inconclusive test.

Duplicates, ordering, and deletes. Repeated records can inflate the apparent extent of a problem. Use idempotent writes, respect source ordering, and propagate deletions. Kafka's delivery guarantees require attention at system boundaries: transactional processing between topics does not automatically make external database writes exactly once.

Expanding search and accumulated latency. Each result can open new branches, including unproductive ones. Set time and request budgets, monitor concurrent source load, and make truncation visible. The demo's six-step bound limits the evidence returned; reaching that bound cannot establish that deeper dependencies are absent.

Policy gaps across access paths. An agent may move between a warehouse, an API, and a separate serving engine as it tests hypotheses. Apply the intended user's permissions to every route and to cached results. A denied request should remain distinguishable from an empty result.

Retain the requests and source records behind an answer, including failed or inconclusive tests. That history lets a reviewer assess why the agent pursued one explanation and abandoned another.

Data Integration Layer Best Practices

Define the objective and stopping conditions. Start with the business problem and the evidence needed for a defensible answer. Specify time limits, missing-data behavior, and when to return uncertainty. Leave the agent room to select tests and change direction within those boundaries.

Publish reusable entities and relationships. Give datasets owners and versioned definitions. Expose enough structure for an agent to discover relevant paths across domains. Validate those paths with representative records so each new question can reuse reviewed mappings.

Materialize for reuse. Persist expensive transformations and history where they help multiple investigations. Use direct access where source capacity allows it. Evaluate how an unexpected lead into another business unit changes available coverage, compute demand, and synchronization work.

Exercise recovery and reconciliation. Replay a window, backfill a partition, and verify deletions. Compare source and destination records, then test keys and relationships. Matching row counts can conceal missing connections that would send an investigation in the wrong direction.

Evaluate adaptation as well as accuracy. Test cases where a plausible explanation is contradicted, evidence is unavailable, or a relevant connection lies outside the starting domain. Check whether the agent revises its approach and reports uncertainty. Measure retrieval latency and time to a supported answer under representative table breadth, data volume, and concurrency.

The supplier demo provides one acceptance case: four expected open commitments, with the closed commitment excluded. Evaluating the broader agent requires additional cases and data, including a suspected supplier problem ruled out by inventory or delivery evidence. Success means following what the evidence supports, even when that changes the initial explanation.

Conclusion

A data integration layer supports autonomous investigation when it makes records discoverable, connections reliable, and evidence accessible as questions change. Low retrieval latency leaves room to test alternatives. Scale lets the investigation cross departments and examine larger histories. In-place access avoids an additional persistent copy for each new line of inquiry. These capabilities help an agent move from a business symptom to an explanation that people can inspect.

Try the forever-free PuppyGraph Developer Edition and book a demo with the team to build an agent that explores your enterprise data, tests possible explanations, and follows the evidence across systems without moving data into a separate graph database.

Hao Wu

Hao Wu

Software Engineer

Hao Wu is a Software Engineer with a strong foundation in computer science and algorithms. He earned his Bachelor’s degree in Computer Science from Fudan University and a Master’s degree from George Washington University, where he focused on graph databases.
Free downloadBook demo

Read next

All articles

Start free. Pay when it goes to production.

Contact us for any questions about capabilities, sizing and support.

* No payment required to start either one.

$ docker run -p 8081:8081 \
  -p 8182:8182 -p 7687:7687 \
  puppygraph/puppygraph:latestPulling puppygraph/puppygraph:latestStarting PuppyGraphWeb console listening on 0.0.0.0:8081Gremlin endpoint listening on 0.0.0.0:8182PuppyGraph is running# no pipelines · no second database · no data movement