Engineering scenario 03
Engineering Infrastructure for Scale
Rebuilding infrastructure as a repeatable platform: defined environments, automated delivery, observable services and attributable cost.
- Engineering division
- Cloud, Platform & Infrastructure Engineering
- Commercial offering
- Cloud & Platform Transformation
Illustrative engineering scenario. It describes how we would approach this class of problem; it is not a completed client engagement, and no client identity, data or result is disclosed.
Business context
The situation behind the request.
A product that began on a single server now runs across a cloud account assembled during growth. Environments were created by copying, deployments happen from an engineer's laptop, and autoscaling was enabled without changing the application's session handling. It works most of the time, and nobody can say precisely why it fails when it does.
Commercial pressure arrives on two fronts. Product teams want faster releases and more headroom for seasonal peaks; finance wants a cloud bill that can be attributed and forecast. Both are symptoms of the same gap: infrastructure exists as a set of individually maintained resources rather than a platform with defined, reproducible behaviour.
The challenge
What has to change, and what cannot.
Reliability and cost cannot be improved by adding capacity or switching on another managed service. Peak traffic exposes a stateful component that cannot scale horizontally, non-production environments idle at production size, and a single availability zone carries the database. Each of these is an architectural decision that was never made explicitly.
Conventional responses — a larger instance, a second region, a tagging policy — address a symptom without changing the operating model. The organisation needs environments that can be recreated from code, a delivery path that does not depend on individual laptops, and observable services whose cost and failure modes are known before an incident.
Why it is difficult
The engineering decisions that matter.
Workloads have different shapes
A stateless web tier, a long-running job, a message consumer and a relational database each need a different scaling and failure model. A single platform template applied to all four produces either fragility or cost.
Data gravity constrains movement
Databases, queues, object storage and their backups are the slowest parts to relocate and the hardest to validate. Migration plans fail when restore has been assumed rather than tested at production size.
Cost is produced by architecture
Egress, idle non-production capacity, storage tiers and over-provisioned instances are design outcomes. Tagging records who spent the money; it does not change what the design spends it on.
Our engineering approach
How we would investigate, design and deliver.
Six stages, each producing something the next stage depends on. The decisions listed are the ones that change the shape of the outcome; they are agreed explicitly rather than absorbed into implementation detail.
- 01
Baseline workloads and spend
We inventory services, dependencies, traffic patterns, incident history and spend by service, team and environment. The baseline is measured, not estimated from an architecture diagram.
- Identify the components that actually constrain availability before designing redundancy.
- Separate cost that is workload-driven from cost that is environment-driven.
- Agree service objectives per user journey rather than per server.
- 02
Design the target topology
Accounts or projects are separated by environment and blast radius, networks are segmented, and availability zones and recovery objectives are set explicitly. Managed versus self-managed is decided per component with an operational cost attached.
- Set recovery point and recovery time objectives before choosing replication technology.
- Keep production data out of non-production environments by default.
- Prefer fewer, well-understood components over a broad service catalogue.
- 03
Codify the platform
Infrastructure is defined in versioned modules with remote state, policy checks and review. A golden path takes a repository to a running service with logging, secrets, alerts and ownership metadata already in place.
- Make infrastructure as code the only route to change, including emergency fixes.
- Provide a supported path rather than a gate: the correct route must be the fastest one.
- Embed cost allocation and ownership metadata at provisioning time.
- 04
Containerise where justified
Stateless services are packaged and scheduled; stateful components are handled deliberately, with storage, backups and failover designed rather than inherited from a default. Orchestration is adopted when scheduling and scaling needs justify its operational cost.
- Move session state out of application instances before scaling them horizontally.
- Keep databases on managed services unless there is a specific reason not to.
- Set resource requests and limits from observed usage, then review them.
- 05
Migrate with rehearsed recovery
Data movement is staged and verified. Load tests reach expected peak plus headroom, failover is exercised, and restore is timed on production-scale data. Cutover includes a tested route back to the previous state.
- Schedule restore tests as a recurring operational task, not a one-off migration step.
- Test the failure of each dependency, not only the failure of a server.
- Record the measured recovery time and compare it with the agreed objective.
- 06
Operate and optimise
Alerts are tied to user-visible symptoms and service objectives. Capacity and cost are reviewed on a rhythm, with rightsizing, storage lifecycle and commitment planning handled as engineering work with an owner.
- Alert on error budget burn and dependency health, not on CPU thresholds.
- Review cost per service and per environment with the teams that control it.
- Keep a documented capacity model for seasonal and campaign peaks.
Trade-offs
Alternatives we would consider, and what they cost.
Managed services versus control
Managed databases and queues remove patching and failover work at the cost of configuration limits and provider dependency. Self-managed components are justified when a specific constraint cannot be met otherwise, not by default.
Multi-region versus single-region resilience
Multi-region improves disaster tolerance and multiplies cost, data consistency questions and operational surface. Many organisations are better served by a well-tested single-region design with proven restore and a realistic recovery objective.
Kubernetes versus a simpler runtime
Orchestration repays its operational cost when there are many services, a platform team and a real scheduling need. For a handful of services, a managed container runtime is often the more reliable platform.
Architecture considerations
Components, boundaries and the connections that matter.
Reference architecture
Fig. 03 · illustrative
Edge
- DNS & CDN
- WAF
- Load balancer
- TLS termination
TLS · routing rulesPlatform
- Container workloads
- Queue & workers
- Cache
- Secrets & config
private network · workload identityData
- Managed relational DB
- Object storage
- Read replicas
- Backups & PITR
snapshots · restore testsOperations
- IaC modules
- CI/CD pipeline
- Metrics · logs · traces
- Cost allocation
A layered platform with one change path. Traffic enters through controlled edge services, workloads run on private networking, data sits on managed services with tested recovery, and operations are produced by the same code that provisions the platform.
Separate accounts per environment
Account-level separation limits the blast radius of a mistake, makes cost attribution unambiguous and removes the class of incident caused by a staging job reaching production data.
Workload identity over static keys
Services receive short-lived credentials bound to their identity, so a leaked configuration file is not a permanent grant and access can be revoked centrally.
Recovery proven by rehearsal
Backups are only a control when a restore has been timed and verified. The restore test is part of the platform's delivery pipeline, not a document in a shared drive.
Technical considerations
- AWS and GCP architecture
- Kubernetes and container platforms
- Terraform and infrastructure as code
- CI/CD and release engineering
- Networking, DNS and edge security
- Caching and database scaling
- Observability and service objectives
- High availability, backup and disaster recovery
- Cloud cost governance
Expected outcomes
What the work is designed to achieve.
These describe the capabilities the solution is designed to leave behind. They are not measured results from a client engagement.
- Environments that can be recreated from code rather than repaired by hand.
- A deployment path that is repeatable and independent of individual machines.
- Recovery that has been measured against an agreed objective.
- Capacity that can absorb growth without redesigning the platform.
- Spend that is attributable to a service, a team and an environment.
- Fewer bespoke components and a smaller operational surface to maintain.
No performance improvement, cost saving or delivery result is claimed. Metrics are only published when measured on a specific engagement with authorisation.
Related capabilities
Where this work sits in the company.
The scenario draws on one engineering division and is commercialised through a defined offering. Both describe the same capability from different starting points.
Next step
Facing a similar engineering challenge?
Describe the system, the constraint and the outcome you need. We will respond with a technical view of the options, including where we would start and what we would advise against.