Search Sreeni's Insights

Filter by content type
technical February 15, 2018 12 min read

What is Future State Architecture and why do we need it? - Part 1

A Future State Architecture is a shared destination, not a big-bang rewrite. Learn why we need it, how to think about it in seven steps and the principles behind it.

Share:

What is Future State Architecture and why do we need it? - Part 1

Every organization which has been building software for a few years ends up with a mix of architectures: a monolith from ten years ago, a few services from the last migration, applications on VMs next to applications on PaaS, three ways to authenticate and five ways to log. Each decision made sense when it was taken, but together they slow down every new feature, and nobody can say where the architecture is heading. Without a shared destination, every team optimizes for its own project, and the architecture drifts further apart with every release. In this two-part series, I share how we approached the Future State Architecture (FSA) for our applications. In this article, we are going to see what a future state architecture is, why we need it, how to think about it, and the vision and principles which form its foundation.

Future State Architecture series:

  1. What is Future State Architecture and why do we need it? (this article)
  2. How to design and implement Future State Architecture?

TL;DR Summary

  • A Future State Architecture (FSA) is the target architecture an organization wants its applications to move towards, in line with its current and future business needs.
  • It is not a big-bang rewrite plan; it is a shared destination which guides every design decision, new or old.
  • Start from the business drivers and the current state, define a vision, and turn the vision into a small set of principles.
  • Our vision is built on five pillars: Security, Reliability, Operational excellence, Performance efficiency and Cost optimization.
  • Our ten principles: secure, decomposed, frequent small updates, design for failure, elastic scale, polyglot persistence, asynchronous processing, automated self-management, immutable infrastructure and cost optimization.

What is Future State Architecture?

Future State Architecture (FSA) is the target architecture that the organization wants its applications and platforms to move towards, in line with the current and future business needs.

In simple terms, it is the answer to “where do we want our architecture to be in a few years, and why?”.

It helps to understand FSA together with the two other states,

Current State ArchitectureTransition ArchitectureFuture State Architecture
What it describesHow our applications are built and run todayAn intermediate step on the way to the future stateWhere we want to be
PurposeUnderstand the starting point, its strengths and its pain pointsDeliver value while moving step by stepGive every team a shared destination
LifetimeChanges with every releaseMonthsYears, refined regularly
Level of detailDetailed, factualDetailed for the next stepLogical components, principles and technology choices

An everyday analogy: the FSA is the destination on a map, the current state is where we stand, and the transition architectures are the stops along the road. Without the destination, every turn looks equally good; with it, we can tell whether a turn takes us closer or further away.

What FSA is not

  • Not a big-bang rewrite plan. Very few organizations can stop delivering features to rebuild everything. FSA is reached incrementally.
  • Not a technology wish list. Technology choices are part of it, but they follow the vision and the principles, not the other way around.
  • Not a one-time document. The business and the technology both change; the FSA must be reviewed and refined regularly.
  • Not a mandate for every detail. It defines the destination and the guard rails, and leaves the teams room to make the right local decisions.

Why we need a Future State Architecture?

Without a future state, the architecture is shaped by the deadline of each project. Over time, this leads to the following challenges,

Architecture drift

Each team solves the same problems (authentication, logging, caching, deployment) in its own way. The result is duplicated effort, inconsistent security and operations which need a different runbook for every application.

Legacy which nobody can change

Tightly coupled applications make every change risky and every release a big event. The team spends more time on regression testing and coordination than on new features, and the technical debt keeps growing (refer to Technical debt - how to measure it and when to pay it back).

Scaling the business, not only the servers

New products, new markets and new channels (like opening our APIs to external users) put demands on the architecture which it was never designed for. When the architecture can’t keep up, the business either slows down or takes shortcuts.

Decisions without a compass

When there is no agreed direction, every design discussion starts from zero, and the loudest opinion or the latest trend wins. A future state gives the teams a common reference to evaluate their decisions against.

Cost and operations

Running a mix of platforms, versions and tools costs more: more licenses, more skills, more monitoring tools and more on-call knowledge. A shared target reduces this variety over time.

How to think about Future State Architecture?

FSA is a thinking exercise before it is a design exercise. We follow these steps,

  1. Understand the business drivers. Where is the business heading in the next few years? New products, markets, customers, regulations, expected growth and cost targets. The architecture exists to serve these.
  2. Assess the current state. What do we have today, what works well, and what hurts? Collect the pain points from development, QA, operations and the business, with data where possible (incidents, lead time, cost, performance).
  3. Define the vision. Write one or two sentences which describe what the architecture should enable. It should be short enough for everyone to remember.
  4. Derive the principles. Turn the vision into a small set of principles which guide the everyday design decisions.
  5. Define the logical components and the technology choices. Describe the building blocks of the target architecture, and choose the technologies for each of them.
  6. Plan the transition. Identify the gap between the current and the future state, prioritize, and define the transition steps.
  7. Govern and refine. Review the designs against the principles, measure the progress, and refine the FSA regularly.

We cover steps 1 to 4 in this article, and steps 5 to 7 in the next one.

Vision

Our vision for the future state architecture is,

To enable our applications to be built based on the pillars of a well-defined architecture: Security, Reliability, Operational excellence, Performance efficiency and Cost optimization, to be in line with our current and future business needs.

The five pillars are widely used quality attributes to evaluate cloud architectures,

PillarThe question it answers
SecurityAre our applications and data protected at every layer?
ReliabilityDo our applications recover from failures and meet their availability targets?
Operational excellenceCan we deploy, monitor and run our applications with confidence and little manual effort?
Performance efficiencyDo our applications use resources efficiently and scale with demand?
Cost optimizationDo we deliver business value at the lowest reasonable cost?

These pillars are often in tension. More redundancy improves reliability but increases cost; more security controls can reduce performance. The vision doesn’t remove these trade-offs; it makes sure we discuss all five pillars every time we make a decision, instead of optimizing for one and discovering the others in production.

Principles

A vision is too abstract to guide a design review. So, we derived the following ten principles from it. Each principle tells the teams what “good” looks like in the future state.

1. Secure

Secure by design, security at all layers.

Security is part of the design from the first day, not a review before the go-live. Every layer (edge, network, application, data) has its own controls, so a failure in one layer doesn’t expose everything.

In practice: edge protection with a CDN/WAF, private networks for back-end services, centralized identity, secrets in a key vault, encryption at rest and in transit. Refer to the Promoting Internal APIs series for a worked example.

2. Decomposed

Modular, pluggable, single-responsibility based services/solutions.

Each service or module does one thing well and owns its data. Services can be developed, deployed and scaled independently, and replaced without rewriting their neighbors.

In practice: business domain APIs with clear boundaries, aggregators instead of chatty clients, and well-designed contracts between them (refer to the REST API Design Guidelines series).

3. Frequent small updates

Agile applications with continuous deployment.

Small changes are easier to review, test and roll back than big releases. The goal is that releasing to production is a routine, low-risk event.

In practice: a standard branching strategy, CI/CD pipelines with automated tests and quality gates (refer to the Git Process and CI/CD Process series).

4. Design for failure

Self-healing, fault-tolerant, resilient solutions.

Every component will fail at some point. The application should handle failures gracefully, recover automatically where possible, and have a tested DR strategy for the rest.

In practice: retries, circuit breakers, health endpoints, redundancy across zones and regions (refer to the DR Guidelines series).

5. Designed for elastic scale

Scale horizontally by adding or removing resources based on demand.

Instead of buying bigger servers for the peak, add more instances when the load increases and remove them when it drops. This needs stateless services and a way to share state outside the instances.

In practice: stateless APIs, distributed caches, auto-scaling rules on PaaS and serverless platforms.

6. Polyglot persistence

Support for multiple data stores based on different data needs (a mix of storage technologies).

One database doesn’t fit all data. Relational data, documents, search indexes, files and caches have different access patterns, and each deserves the right store.

In practice: choose the data store per service based on its needs (refer to Cosmos DB vs Azure SQL Database - choosing the right data store), and don’t share a database between services.

7. Asynchronous processing

Load-leveling, request throttling, task or event-based parallel processing.

Not every piece of work has to happen while the user waits. Queues and events decouple the producers from the consumers, absorb the spikes and let us process work in parallel.

In practice: messaging and event services for notifications and background work, the 202 pattern for long running requests (refer to REST API Design Guidelines - Part 6 and Event-driven microservices with Event Grid and Service Bus).

8. Automated self-management

Health monitoring, failover, scheduling, detect and self-correct.

The platform and the applications should detect problems and react to them without waiting for a person: restart an unhealthy instance, fail over to a healthy region, alert the right team with the right context.

In practice: APM and infrastructure monitoring, availability tests, automated alerts and runbooks (refer to Designing for observability - logs, metrics and traces).

9. Immutable infrastructure

Spin up and tear down environments through Infrastructure as Code (IaC).

Servers and environments are never changed by hand. Every change goes through code, and an environment can be recreated from scratch at any time. This removes the environment drift between QA, UAT and production.

In practice: ARM templates or Terraform for all environments (refer to Infrastructure as Code (IaC) - ARM templates vs Terraform).

10. Cost optimize

Build, monitor, measure and optimize resources.

Cost is a design concern, not only a finance concern. We should know what each application costs, and keep optimizing it as the usage changes.

In practice: right-sizing, auto-scaling, reserved capacity for steady workloads and shutting down unused environments (refer to Cloud cost optimization - right-sizing, reserved capacity and auto-shutdown).

Principles at a glance

PrincipleSupports pillarsA design smell which breaks it
SecureSecurityBack-end services reachable directly from the internet
DecomposedOperational excellence, Performance efficiencyOne change needs a release of several applications
Frequent small updatesOperational excellence, ReliabilityQuarterly “big bang” releases
Design for failureReliabilityA single dependency outage takes the whole site down
Elastic scalePerformance efficiency, Cost optimizationServers sized for the yearly peak, idle the rest of the year
Polyglot persistencePerformance efficiencySearch, files and logs all stored in one relational database
Asynchronous processingReliability, Performance efficiencyUsers waiting for a report to be generated
Automated self-managementReliability, Operational excellenceCustomers report outages before our monitoring does
Immutable infrastructureOperational excellence, Reliability”It works in UAT” but not in production
Cost optimizeCost optimizationNobody knows what an application costs per month

Must Consider: Keep the number of principles small and each principle short enough to remember. A principle which nobody remembers in a design review is not a principle.

Wrap up

In this article, we have looked at what a future state architecture is and how it relates to the current state and the transition architectures, why we need it, how to think about it in seven steps, and the vision and ten principles which form its foundation. I really appreciate that you took the time to read this article. In the next article, I will walk you through how to design the future state with its logical components, technology choices and solution architecture, and how to implement it step by step without a big-bang rewrite.

Related Posts