Today I’m going to pen down about an interesting topic on architecture — Minimum Viable Architecture. Often, most architects try to design the entire product upfront. They try to think about what might be needed one year down the line, two years down the line etc. And then most of it ends up in the bin because their work was based on assumptions and not actual requirements.

It is a bit worrying that this way of working has been carried forward into Agile. Agile should be about quick feedback cycle and ability to adapt to changing requirements. So the way of building the entire architecture upfront goes against the very fundamental principles of agile. The reason this might be happening is because it’s not easy to recognize that over-architecture might be the problem. I mean, you will still user stories being delivered, everybody busy etc. So as a scrum master or the product owner you might be thinking that everything is alright. In reality, the developers might be spending a lot of the time on implementing a bullet proof architecture while all you needed was a life jacket.

So, what is the alternative? Let’s call it “Minimum Viable Architecture”.

What it means is that the architecture that’s good enough for the product to be released, and needs to be continually improved during the lifetime of the product.

The most important aspects of this type of architecture are:

Architecture not built for the least-likely worst case scenario. Instead the product is built by keeping in mind the most likely scenario.

Built in small increments over a period of time. For this to work smoothly, the programming language and the major technologies must have been already evaluated and decided. Minimum viable architecture does not mean that we change the programming language or major technologies midway in the development life-cycle.

Based on concrete or at-least reasonable requirements, not built on pure assumptions.

If you are not already building and implementing Minimum Viable Architecture, what can you do to get there? Let me suggest some things that you should and shouldn’t do when dealing with this situation.

What You Should Do

Nonfunctional requirements – Make sure your architect understands the nonfunctional requirements of the product. If you have many releases planned, and if each one of them has a different set of nonfunctional requirements, present those to the architect. Say for example Release 1 of your product needs to support 50,000 users and Release 2 needs to support 75,000 users. So while implementing Release 1, don’t try to support anything extraordinarily over 50,000. This keeps the architect focused on the immediate needs.

Functional requirements – I have seen in many organizations the architect and the product owner being out of sync. This is especially true when the product owner is non-technical, the architect assumes that the product owner cannot understand anything other than user stories. So they avoid having in-depth conversations about the feature request. They both think they understand the requirements, but unfortunately their interpretations will be different. So I suggest regular in-depth discussions between the product owner, the architect, and the developers.

Code – As surprising as it may sound, many architects do not understand the code in their project. Even if you do not expect to architect to code, the architect needs to be aware of the day to day issues that the programmers face. Without having an understanding of the code or the modules, the architect will never have a realistic picture of whether he’s going overboard or not, whether his ideas make sense in practicality etc.

Planning – 90% of the architects are perfectionists, they can’t easily let go of something unless it is 100% complete. Discuss and choose an approach that delivers the required non-functional and functional requirements on time, don’t spend the time trying to get the perfect solution. Apply the 80/20 rule.

Culture – The organization as a whole should have a cultural shift and architecture should not seen as something that stands the test of time for years to come. Make it clear to the architect but he will be given time to address issues in the future – and mean every word of what you said. Convey to him that it is okay for some part of the architecture to be reworked in the future.

What You Shouldn’t Do

Blame – Don’t blame your architects for not creating minimum viable architecture. It’s not their fault at all, you should be happy that he or she is so involved in the work and cares about it. The only reason they are working that way is because they’re passionate about the product. Blaming your architect isn’t going to solve any problems. You should inform them about creating minimum viable architecture, but not in a confrontational manner.

Pressurize – Don’t start setting unrealistic deadlines thinking that they will result in simpler architecture. That is not the way to handle the situation.

Ignore – Don’t implement without the architect’s input. While it might sound like a quick solution around the problem it is going to cause more harm than relief in the future. Diminishing the importance of architect and architecture is not the solution.