All weeks
WEEK 6 Learning Outcome 2.4

Systems Integration: Top-Down vs. Bottom-Up

Choosing how systems grow together, and taming the legacy landscape

Learning objectives

  • 1 Distinguish top-down and bottom-up methodologies in systems integration.
  • 2 Describe how component-based architectures support different integration strategies.
  • 3 Assess the strengths, risks and suitability of each approach for different project contexts.
  • 4 Analyse a legacy system and produce both top-down and bottom-up integration views.

What is Systems Integration?

Integration is the deliberate work of making separate systems behave as one coordinated whole, not merely a set of connections.

1.1 Definition

Systems integration is the process of linking different computing systems, software applications and data sources so they work together as a coordinated whole and exchange information effectively.

1.2 Four dimensions

Technical linking through APIs, message buses, file transfers, shared databases or event streams. Data consistency so the same information is accurate and timely across systems. Process continuity so business processes span multiple applications without manual re-entry. User experience that presents a coherent view even when several backend systems are involved.

1.3 Why integration matters

It eliminates silos that slow decisions and create errors, reduces costly and error-prone re-keying, and enables end-to-end journeys such as order-to-cash or hire-to-retire. It supports digital transformation built on mixed legacy and cloud systems, improves data quality through a single source of truth or managed synchronisation, and lowers total cost compared with many disconnected tools.

1.4 Common challenges

Heterogeneous platforms, languages, formats and protocols must interoperate; legacy systems may lack modern APIs, documentation or flexible interfaces; the same term can mean different things, as with customer; timing and consistency must handle real-time versus batch, eventual consistency and conflict resolution; security and compliance require authentication, authorisation, encryption and audit across boundaries; and integration breaks whenever a connected system changes its interface or behaviour.

Top-Down Integration

Start with the whole: establish the architecture, then decompose and prove the structure downward using stubs for parts not yet built.

2.1 Core idea and steps

Top-down integration begins with the high-level architecture and overall system behaviour. Define the whole: establish the overall vision, major functions and high-level architecture. Decompose into major subsystems, then components and modules. Integrate downward, starting testing from the top and replacing stubs with real components over time. Validate early that the overall structure and key control flows work before lower layers are complete.

2.2 Characteristics

Architecture-first, so major design decisions and control structures are set early. Stub-based testing, where lower-level components are simulated until ready. Early visibility of structure, so stakeholders soon see how the big pieces fit. Control-flow focus on how high-level modules call and coordinate lower ones. Strong alignment around the overall design intent. The trade-off is risk of late discovery, because problems in low-level components or interfaces may surface only late.

2.3 Strengths

Clear architectural vision before diving into detail; early demonstration of control logic and coordination; high-level diagrams that non-technical audiences can follow; incremental delivery of structure; a natural fit for green-field systems; and better management of complexity because decomposition makes large systems cognitively manageable.

2.4 Limitations and risks

Low-level database, device or external-service problems can appear only when stubs are replaced. Creating and maintaining realistic stubs takes effort and can drift from real behaviour. High-level design may assume capabilities the lower layers cannot provide. Teams building core services get slower feedback. There is a risk of over-engineering the top before validating technical risk. It is also harder with existing systems, because legacy components already exist at the bottom and may resist top-down assumptions.

Bottom-Up Integration

Start with solid ground: build and prove the lowest-level services, then assemble upward with drivers standing in for the layers above.

3.1 Core idea and steps

Bottom-up integration starts with the lowest-level components and services. Identify foundational pieces such as data access, utility services, external adapters and core domain services. Build, unit-test and integrate the smallest building blocks first. Assemble upward into larger subsystems and then the full system. Validate foundations early, confirming the technical core is solid before higher layers rely on it. Drivers, which are test harnesses, exercise components before the upper layers exist.

3.2 Characteristics

Foundation-first, so core services and data layers are proven before dependants. Driver-based testing that exercises components in isolation or small groups. Early technical validation of performance, reliability and interface contracts. Natural reuse, because tested components become building blocks for other systems. A good fit with service-oriented and microservice styles. The trade-off is risk of weak overall structure if architectural guidance is missing.

3.3 Strengths

Early proof of technical feasibility, confronting hard foundation problems first. High-quality, thoroughly tested building blocks. Parallel development across independent services. A natural fit with microservices and API-first development. Easier incorporation of existing assets, since legacy and third-party services can be wrapped first. Incremental value, because useful services can be consumed by other systems before the full product is ready.

3.4 Limitations and risks

Weak overall coherence when independently built parts lack a guiding architecture. Late visibility of end-to-end behaviour, so users and stakeholders wait longer for complete processes. Integration surprises when components that work alone conflict in larger flows. Risk of building the wrong foundations if higher-level needs change. Driver overhead in writing and maintaining test harnesses. Harder communication of progress, because non-technical stakeholders may not see the value of completed low-level work.

Comparison and When to Choose Each

4.1 Side-by-side comparison

Starting point: overall architecture versus lowest-level components. Early focus: structure and control flow versus technical foundations. Test substitutes: stubs for lower layers versus drivers for upper layers. Visibility of the whole: early versus later. Technical risk discovery: later versus earlier. Stakeholder demos: easier early versus harder early. Fit with legacy: can be forced versus often more natural. Risk if misapplied: wrong architecture versus incoherent assembly.

4.2 Prefer top-down when

Building a largely new system; the overall architecture is still being shaped; stakeholders need early visibility of structure; control flow and orchestration are complex; strong architectural governance is wanted; and lower-level details are still uncertain.

4.3 Prefer bottom-up when

Many reusable or existing components exist; technical risk is concentrated at the base; a microservices or API-first style is intended; legacy systems must be wrapped early; teams can work in parallel on services; and foundations must be proven before scale-up.

4.4 Hybrids are the norm

Pure top-down or pure bottom-up is rare. Architecture plus spikes combines top-down direction with bottom-up technical spikes in high-risk areas. Strangler uses a new top-level façade to replace legacy from the outside in. Service-first plus orchestration builds bottom-up services under a top-down process or API gateway layer. Layered delivery does foundational services first, then mid-tier, then the experience layer, guided by an overall blueprint.

4.5 Two companies, two lessons

A green-field digital bank went top-down heavy: a strong architecture team defined layers and services first and built the orchestration layer early with stubs. It produced coherent customer journeys, but low-level performance issues appeared late and forced rework. A retailer modernising around an existing OMS and WMS went bottom-up heavy: adapters and stock services came first and useful stock APIs shipped early, but the order experience lacked coherence because no strong target design guided assembly. Pair architectural vision with early spikes, and invest in a target architecture even with strong foundations.

Component-Based Architecture and Integration Styles

5.1 What is a software component?

A component is a modular, deployable and replaceable part of a system that encapsulates its implementation and exposes a well-defined interface. It is the building block of component-based and service-oriented architecture.

5.2 Component properties and benefits

Encapsulation hides internal design so only the interface is visible to clients. A well-defined interface is a clear contract of operations, inputs, outputs and error behaviour. Replaceability allows one implementation to be swapped for another that respects the same interface. Composability allows components to be combined into larger systems. These properties yield modularity, reusability, independent evolution, parallel development, easier testing and mocking, and integration flexibility.

5.3 Integration styles

Point-to-point: direct connections between pairs, simple early but a brittle web as numbers grow. Hub-and-spoke or ESB: a central broker mediates communication, reducing direct dependencies but risking a bottleneck. API gateway or façade: a single entry point presents a unified API while routing to multiple backends. Event-driven or messaging: systems publish and subscribe to events, giving loose coupling and scalability but harder-to-reason flows. Shared database: applications read and write the same database, fast to implement but tightly coupled with contention. File transfer: scheduled batch exchange, still common with legacy and partner systems.

5.4 Designing good interfaces

Make contracts explicit by documenting request and response shapes, error codes and side effects. Prefer stable abstractions that expose business concepts rather than internal tables or screen flows. Version deliberately and plan how breaking changes are introduced and retired. Design for failure with timeouts, retries, idempotency and clear error semantics. Keep consumer needs in view, because an interface that suits the provider but hurts consumers will be bypassed. Automate verification with contract tests and monitoring to catch drift before production incidents.

Legacy Integration and Patterns

Most organisations cannot start from a clean sheet; integration strategy must respect systems that are old, poorly documented and critical to daily operations.

6.1 The reality of legacy

No clean APIs means screen scraping, database links or batch files may be the only initial options. Fragile behaviour means changes can have unexpected side effects, so thorough regression testing is essential. Knowledge gaps arise because original developers may have left and documentation is incomplete or outdated. Operational risk is high because downtime of a legacy core system can stop the business.

6.2 Useful legacy patterns

Anti-corruption layer: a translation layer that protects the new system from the quirks and model of the legacy system. Strangler fig: gradually replace legacy functionality by intercepting calls and routing them to new services over time. Wrapper or adapter: expose a clean modern interface such as REST over an old system that only supports older protocols. Data replication or CDC: keep a modern data store in sync with a legacy database using change-data-capture. Façade service: one service orchestrates several legacy calls and presents a simplified API. Branch by abstraction: introduce an abstraction layer so the underlying implementation can be swapped safely.

6.3 Worked case: RetailLink Logistics

RetailLink runs a 15-year-old on-premise OMS with a limited API, a separate file-based WMS, a poorly integrated e-commerce site and a third-party courier API, and wants one order view with real-time stock. A top-down decomposition runs: Level 0 Unified Commerce Platform; Level 1 Order Capture, Inventory, Fulfilment Orchestration and Notification Hub; Level 2 adapters, validation, pricing, stock query, reservation, WMS adapter, allocation, courier gateway and pick/pack; Level 3 individual adapters, rules engines, message handlers and audit loggers. A bottom-up build order wraps the legacy OMS adapter first, then a WMS file/API bridge, stock query, courier label, order reservation, notification, allocation and finally a customer order API façade.

Integration Risks, Testing and Organisation

7.1 Integration risk snapshot

Interface drift is high impact and mitigated by contract tests and a versioning policy. Legacy unavailability is high and mitigated by circuit breakers and graceful degradation. Data semantic mismatch is medium and mitigated by an anti-corruption layer and a shared glossary. Performance bottlenecks are medium and mitigated by early load testing of critical paths. Unclear ownership is high and mitigated by named interface owners and SLAs. Big-bang cutover is high and mitigated by the strangler pattern and dual-run periods. Security gaps at boundaries are high and mitigated by consistent authentication, authorisation and encryption. Knowledge concentration is medium and mitigated by documentation and pair rotation.

7.2 Integration testing

Contract tests verify that providers and consumers still honour agreed interfaces after change. End-to-end journey tests exercise complete business flows across multiple systems. Stub and driver replacement systematically swaps test doubles for real components and re-tests. Failure-mode tests simulate timeouts, partial failures and inconsistent data. Performance under load confirms integration points do not become bottlenecks. Data consistency checks reconcile data across systems after key transactions.

7.3 Organisational aspects

Clear ownership of each API or integration point prevents nobody-maintains-it problems. Team topology should align with integration boundaries, since Conway's Law works both ways. Change coordination needs governance and versioning discipline for breaking changes. The skills mix must combine deep technical skill with business-process understanding. Vendor relationships constrain which integration styles are feasible. The funding model often under-funds cross-system work because no single product owns it.

7.4 Strategy checklist

Identify the dominant risk: architectural coherence or technical foundation. Measure how much already exists as legacy or third-party components. Decide whether stakeholders need early end-to-end visibility. Check whether teams can work in parallel on independent services. Confirm the organisation can own and evolve clear interface contracts. Choose realistic integration styles across APIs, events, files and shared data. Plan how to detect and manage interface drift. Define the rollback or strangler plan if a major integration fails.

Key takeaways

  • Top-down starts with architecture and control structure; bottom-up starts with proven foundations.
  • Each approach surfaces different risks at different times, so the choice must be deliberate.
  • Component-based architectures with clear interfaces make both styles, and hybrids, more manageable.
  • Legacy systems almost always force a hybrid strategy; pure approaches are rare in practice.
  • Patterns such as anti-corruption layers, stranglers and façades tame legacy integration.
  • The best strategy matches the risk profile, existing assets and delivery goals of the organisation.

Key terms

Systems integration
Linking separate systems, applications and data sources so they work as a coordinated whole and exchange information effectively.
Top-down integration
Building and integrating from high-level modules downward, using stubs for lower-level parts not yet implemented.
Bottom-up integration
Building and integrating from low-level components upward, using drivers to exercise them before higher layers exist.
Stub
A simplified stand-in for a lower-level component that is not yet implemented.
Driver
A test harness that calls a component to exercise it before the higher layers exist.
Component
A modular, replaceable unit with a well-defined interface and hidden implementation.
Anti-corruption layer
A translation layer that isolates a new system from the model and quirks of a legacy system.
Strangler fig
A pattern that gradually replaces a legacy system by intercepting and rerouting calls to new services.
API gateway
A single entry point that routes client requests to multiple backend services.
Contract test
A test that verifies providers and consumers still honour their agreed interface after change.