Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to Create a Minimum Viable Architecture

DZone's Guide to

How to Create a Minimum Viable Architecture

Architecture and Agile often seem at odds with each other. Minimum Viable Architecture can provide a way for us to bridge the gap in our development.

· DevOps Zone
Free Resource

Download “The DevOps Journey - From Waterfall to Continuous Delivery” to learn learn about the importance of integrating automated testing into the DevOps workflow, brought to you in partnership with Sauce Labs.

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:

  1. Architecture not built for the least-likely worst case scenario. Instead the product is built by keeping in mind the most likely scenario.
  2. 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.
  3. 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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

  1. 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.
  2. Pressurize – Don’t start setting unrealistic deadlines thinking that they will result in simpler architecture. That is not the way to handle the situation.
  3. 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.

Discover how to optimize your DevOps workflows with our cloud-based automated testing infrastructure, brought to you in partnership with Sauce Labs

Topics:
architecture ,architecture & design

Published at DZone with permission of Deepak Karanth, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}