Context
The purpose of the article is two fold.
- What are the important tenets of an architecture? These tenets assume importance as we strive towards building cloud native apps which are resilient, elastic, planet-scale and cost-effective.
- What are the guiding principles for an evolutionary architecture? One tenet that we have been ignoring a lot in the past is the evolvability of our architecture. A brittle architecture cannot scale easily when we deal with lot of unknowns.
Architecture Pillars
Within our group, it has been an endeavour to create a framework to objectively assess architectures on the below mentioned pillars. As we learn more in our journey, we will be adding or refining these.
Scalability We assess the scalability and elasticity tenets of your architecture.These aspects are very critical in one’s journey towards a cloud-native architecture
Cost We assess the TCO(Total Cost of ownership) of the architecture and give roadmap on ways to optimize the TCO. Cost becomes critical as we onboard our workloads to cloud.With increasing adoption of metered managed services in cloud, it becomes all the more important to understand the cost footprint of one’s architecture.
Resilience We assess the self-healing characteristics of the architecture. We evaluate patterns in an architecture to deal with planned and unplanned bursty workloads.
Security We assess the security preparedness of the system under consideration.We assess how well prepared one architecture is from different kinds of security vulnerabilities.
Configuration We assess how well configuration management has been done in an architecture. This could for example relate to how well we manage secrets for example.
Evolvability We assess how evolvable the given architecture is.We look at evolvability from different dimensions. We also provide a model to make the architecture evolvable.We prescribe a set of fitness functions that teams can adopt to assess their architectures.
Availability We assess how available your architecture is.

Guiding Principles for Evolutionary Architecture
Premise
Back in the dark old days of waterfall projects we would invest heavily in big upfront architecture and design. Systems were well thought out and documented within an inch of their lives. All this happened before anyone cuts a single line of code. There was little or no room to change once things were in flight. Few months later we’d go through a horrendous regression test cycle and finally release a product only to find out that our clients needs had evolved and we’d ended up building something that nobody wanted.
Thankfully, those days are gone and big upfront design has no place in agile development . With agile development , teams still complete architectural work, but it’s done very differently. Instead of a big up-front design where decisions are made about the architectural needs for an entire system, Agile teams take an incremental and evolutionary approach.
However, designing, building, and maintaining a robust architecture doesn’t come for free. We need to maintain focus on architecture throughout the entire process and stick to some guiding principles.
Benefits
Evolutionary architecture gives us most of the benefits of enterprise architecture without the problems caused by trying to accurately predict the future.
Here are a number of useful techniques and principles that will help you to maintain a clean architecture through the lifetime of your product.
Last Responsible Moment
The last responsible moment isn’t about encouraging procrastination, it is saying that you should delay decisions as long as you can but no longer.
Rationale
Decisions made too early in a project without much context are hugely risky.These decisions often result in work that has to be thrown away. Even worse, those early decisions can have crippling and unavoidable consequences for the future of the project.
Approach
Early in a project we should make as few binding decisions as we can get away with. Start small with a few critical stories but aim for working end to end software.Establish a skeleton architecture with an end to end data flow and establish your test approach.
Choices like the programming language and the database technology need to be made at the start of a project but deciding on the right level of services decomposition will emerge later on.
Establish Lightweight Documentation
The Agile Manifesto prefers “working software over comprehensive documentation”.
Documentation becomes much more valuable when it takes on a collaboration nature. Wikis are a great way to socialise designs and to communicate both within your team and externally. The act of writing or sketching out a diagram helps you to think something through properly and increases our own understanding
Establish continuous integration and automation right from the get-go
Automated tests gives you a safety net that lets you refactor and change your code quickly knowing that you haven’t broken anything.
In order to evolve an architecture over time you need to maintain and grow all your automated tests — unit , integration, contract and end to end tests. Don’t get hung up on code coverage metrics but pay attention to tests that fail frequently, these will point you to the problem area’s in your code base that need your attention.
Without adequate automated tests your architecture won’t evolve freely. Making wholesale changes and restructuring existing code will becomes too risky and you’ll end up in a cycle of maintaining and extending poor code that compromises your architecture
Simple code and simple designs are always best
Writing code is easy, writing code that is easy for others to understand is not so simple. Striving for simplicity when building complex systems should always be front of mind.
Understandability
Understandability is the concept that a system should be presented so that an engineer can easily comprehend it.
The more understandable a system is, the easier it will be for engineers to change it in a predictable and safe manner.
Do remember that understandability is not observability.
Remember Conways Laws
It is all too easy to focus purely on the technical challenges when architecting a system but one needs to think about their organisation structure and assign the right work to the right teams. Having a single team work on and own an individual service is far better than having joint ownership across teams
Robustness
Be conservative in what you send, be liberal in what you accept
Robustness principle is a great guideline when it comes to designing message contracts.
As soon as you publish an API either internally or externally other systems will start to rely on it. Once it is the wild your API’s become much harder to change. When it comes to exposing data you should expose the bare minimum and no more and you should version all message contracts
Conversely when consuming an API its best to ignore parts of the message you aren’t interested in, you don’t care if these change over time.
Conclusion
To conclude, these principles allow us to keep our architecture open to evolution. They must be applied regularly to prevent our architecture from getting brittle.
References
[1] : Evolution Of Modern Humans https://www.yourgenome.org/stories/evolution-of-modern-humans
[2]: Understandability
https://www.infoq.com/articles/understandability-metric-not-tracking/
Software Architecture Tenets And Evolutionary Architecture was originally published in Walmart Global Tech Blog on Medium, where people are continuing the conversation by highlighting and responding to this story.
Article Link: Software Architecture Tenets And Evolutionary Architecture | by Arun Menon | Walmart Global Tech Blog | Medium