Business intelligence: components and architecture
Overview of Business Intelligence components and architectures: definitions, core components (data sources, ETL, data storage, metadata, OLAP, analytics, presentation), common architecture patterns (centralized, hub-and-spoke, federated, hybrid), design considerations and examples for exam preparati
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Engineers design and build systems that feed business decisions. Understanding Business Intelligence (BI) components and architecture helps you choose how to collect, store, transform and present data so reports and dashboards are fast, correct and secure. This topic appears when you design data pipelines, choose databases/OLAP solutions, size ETL jobs and explain trade-offs between real-time and batch analytics.
Key ideas
ETL (Extract, Transform, Load) — the set of processes that 1) Extract data from sources, 2) Transform it (cleaning, joins, aggregations, type conversions), and 3) Load it into a target store (data warehouse or data lake). Also know ELT (Extract, Load, Transform): load raw data first, then transform inside the warehouse/lake using its compute engine; ELT is common in cloud-native BI. Note: ETL does not inherently preserve global transactional or record order; preserve order only when explicitly implemented (e.g., via sequence/timestamp keys or windowing), and state any ordering guarantees.
Data warehouse (DW) — a centralized repository optimized for query and analysis, typically subject-oriented, integrated, time-variant and non-volatile. Exact university-style statement: "A data warehouse is a subject-oriented, integrated, non-volatile, time-variant collection of data in support of management's decision-making process." Assumptions: designed for read-heavy workloads and historical analysis. Dimension management often uses Slowly Changing Dimensions (SCD) types (e.g., Type 1 overwrite, Type 2 history with surrogate keys, Type 3 limited history).
Data mart — a subset of a DW focused on a business line (sales, finance). Often derived by selective extract from DW.
Metadata — "data about data"; includes schema definitions, data lineage, transformation rules and business definitions. Essential for governance and query translation.
OLTP (On-Line Transaction Processing) — systems optimized for many short online transactions (insert/update/delete). Characteristics: normalized schema, ACID transactions, low-latency writes.
OLAP (On-Line Analytical Processing) — systems optimized for complex queries, aggregations and analysis. Characteristics: denormalized/star schema or cubes, precomputed aggregates, read-optimized. Columnar storage (e.g., Parquet, columnar DBMS) is common, enabling high compression and fast analytic scans. Typical OLAP operations include slice, dice, roll-up, drill-down, and pivot. Star schema uses denormalized dimensions around a fact table; snowflake normalizes dimension hierarchies.
BI Server / Query Engine — component that accepts analyst queries, plans execution (may push down to DW), applies security and serves results. Often provides a semantic layer (business-friendly models/metrics), caching, and row/column-level security.
Presentation layer — dashboards, reports and visualizations used by end users.
Reference architectures (patterns)
- Centralized (single enterprise DW): one enterprise DW stores integrated data; draw: a large central box labeled "Enterprise DW" with arrows from multiple source boxes and arrows to many presentation boxes.
- Hub-and-spoke: central DW (hub) plus departmental data marts (spokes) that can be fed from hub or directly from sources. Draw: central hub box connected to smaller spoke boxes.
- Federated: no single store; queries run across multiple autonomous systems. Draw: many autonomous boxes with dashed lines indicating federated query layer.
- Virtual/Logical DW (data virtualization): metadata layer translates queries without moving data; draw: virtualization layer between sources and presentation with arrows.
- Hybrid: combination of batch DW and real-time streaming layer (lambda or kappa-like). Draw both batch store and streaming store with a serving layer combining them.
Design considerations and assumptions
- Latency vs consistency: low-latency (near real-time) updates usually require relaxed consistency or more complex streaming ingestion; batch ETL favours strong consistency for historical analytics. In practice, batch analytics achieves report consistency via snapshot isolation/checkpoints (eventual consistency between runs); always state the consistency model and update SLA.
- Storage trade-offs: denormalized schemas and precomputed aggregates use more space but give faster query times. Assumption: storage is cheaper than developer time for precomputing heavy aggregates in many enterprises.
- Security and governance: access control, auditing, and data masking must be applied in the ETL or BI server layer. Implement row- and column-level security, PII masking/tokenization, and regulatory compliance (e.g., GDPR); apply controls in storage, ETL, and BI/semantic layers, and include data quality checks and pipeline observability (freshness SLAs, lineage).
Typical data flow: Sources -> Extract -> Staging -> Transform -> DW/Data lake -> OLAP cubes / Materialized views -> BI server -> Dashboards/Reports.
Formulas
Throughput = Number_of_records / Time_seconds — Throughput of ETL, Records·s⁻¹. Applies when measuring ingestion speed.
Storage_required = Rows × Columns × Avg_size_per_column × Replication_factor — Storage in bytes. Symbols: Rows (unit: count), Columns (count), Avg_size_per_column (bytes), Replication_factor (unitless). Include a compression factor (0<factor≤1) if compression is used: Storage_required ≈ Rows × Columns × Avg_size_per_column × Replication_factor × Compression_factor.
Response_Time = CPU_Time + I/O_Time + Network_Time — Response time of a query in seconds. Each term in seconds.
Growth_rate_compounded = Initial_size × (1 + r)^t — Compound growth of stored data. r is annual growth rate (decimal), t in years, size in bytes.
Note: these are bookkeeping formulas to estimate capacity and latency; real systems add overheads (indexes, compression) not modelled here.
Worked examples
Example 1 — Design diagram for a retail chain (theory/diagram question)
Question: Draw and explain a BI architecture for a retail chain with 150 stores, online orders and CRM. Explain each component.
Answer (model answer you should write in an exam):
- Draw boxes left-to-right. On the left: three source boxes labeled "POS (150 stores)", "E-commerce DB", "CRM", "Third-party marketing data". Draw arrows from each source to a box labeled "Staging Area (HDFS / S3 / landing DB)".
- From Staging draw an arrow to a box labeled "ETL / Data Integration". Annotate ETL tasks: cleansing, deduplication, product master join, time dimension stamping, currency conversion.
- ETL loads into a central box "Enterprise Data Warehouse (star schemas)". Also show a parallel arrow loading a "Data Lake (raw + parquet)" for advanced analytics.
- From DW draw arrows to "OLAP Cubes / Materialized Views" and to "BI Server / Query Engine".
- From BI Server draw arrows to "Operational Dashboards (store managers)", "Management Dashboards (executives)", and "Data Science Sandbox (analysts)".
- Add boxes for "Metadata Catalog" (connected to ETL and DW) and "Security/Audit" (overlaying presentation and ETL).
Explain in short bullets: staging isolates extract failures; ETL enforces business rules; DW stores integrated historical data; cubes speed aggregated queries; data lake preserves raw data for ML; metadata supports lineage and governance.
Example 2 — Numerical: sizing a daily sales fact table
Given: 10 million sales transactions per day, each row has 12 columns with average 40 bytes per column, retention 5 years, replication factor 1.2 for backups/indexes (used here as a generic storage overhead multiplier, not HDFS replica count), compression ratio expected 3:1.
Step 1: compute bytes per row: 12 columns × 40 bytes = 480 bytes/row.
Step 2: daily bytes = 10,000,000 rows × 480 bytes = 4,800,000,000 bytes = 4.8 × 10^9 bytes (≈ 4.8 GB uncompressed per day). Unit: bytes. Using decimal units (1 GB = 10^9 bytes).
Step 3: yearly uncompressed = 4.8 GB × 365 = 1,752 GB ≈ 1.752 TB.
Step 4: 5-year uncompressed = 1.752 TB × 5 = 8.76 TB.
Step 5: apply replication factor: 8.76 TB × 1.2 = 10.512 TB.
Step 6: apply compression (divide by 3): 10.512 TB / 3 ≈ 3.504 TB.
Answer: Estimated storage required ≈ 3.50 TB after expected compression and replication.
(Notes: compression ratio depends on column types and should be verified; rounding to two decimal places is acceptable in exam.)
Common mistakes
- Forgetting metadata and governance — many answers draw data flows but forget the catalog and audit components.
- Wrong units in storage calculations (mixing bytes and kilobytes or using 1000 vs 1024 without stating which).
- Saying "data warehouse equals OLAP cube" — cube is an optimization on top of DW, not the same.
- Not stating assumptions (e.g., compression ratio, replication) in numerical problems.
For your exam
Question types you will see: definitions, short notes, architecture-drawings, compare-and-contrast (e.g., hub-and-spoke vs federated), numerical sizing problems (storage/throughput), and design justifications (choose an architecture for a use case).
What a full-marks answer includes:
- Clear definitions of each term used (e.g., ETL, DW, OLAP) and their properties.
- A clean diagram when asked (draw labelled boxes and arrows; indicate data flow and components like staging, ETL, DW, OLAP, BI server).
- Explicit assumptions for numerical answers (compression, retention, bytes per column, 365 days) and units.
- Trade-offs and reasons for choosing an architecture: mention latency, scaling, complexity, governance and cost.
- Mention of metadata, security and monitoring as non-functional requirements.
Quick check
- What is the main difference in schema design between OLTP and OLAP systems?
- Name the three steps of ETL and one main task performed in each step.
- In a hub-and-spoke architecture, what is the role of a data mart?
Answers: 1) OLTP uses normalized schemas for transactions; OLAP uses denormalized/star schemas for fast queries. 2) Extract (read data from sources), Transform (clean/join/aggregate), Load (write into DW or marts). 3) A data mart serves a specific department or function with a subset of enterprise data optimized for its analytical queries.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?