Lean Software Architecture: Focus On the Pain – Part 3 of 3

In previous parts of this series, we outlined a simple two step process for being a lean software architect:

  1. Build the simplest thing that could possibly work
  2. Focus on the pain

In part one of this series, we outlined some specific examples of complexities that today’s software architects may consider. And in part two of this series we defined some ground rules that help you determine if you’re building the simplest thing that could possibly work. In this final part, let’s discuss how to focus on the pain to determine when adding additional complexity to the system is justified.

Once you’ve selected the simplest thing that could possibly work, it’s time to start looking around for pain points. Perhaps you’re seeing redundant queries as the application grows or struggling with unit testing business logic due to tightly coupled data access. This is where abstracting data access into a separate layer can add value.

Hammering Thumb

Perhaps your presentation layer is getting bloated with excessive amounts of logic to handle the interactions among your business logic classes. At this point creating a service layer and migrating such code to this new layer can simplify your controllers. Waiting until this point avoids creating a service layer that may not be necessary or worthwhile.

Maybe your data access story has grown more complex, involving multiple databases and third party services that persist data. Abstracting data access to sit behind the repository pattern can hide this complexity behind a clean simple interface the application can leverage.

Real Craftsmen Consider the Options

Adding complexity is much like adding options on a car. There’s no best practice for selecting options. Automatic transmissions, sunroofs, and heated seats are useful to some and a total waste of money for others. They’re all useful in a certain context and their value thus lies in the eyes of the beholder. In both cars and software, the more options you check, the more money you have wrapped up. So be wary of a blind devotion to perceived “best practices” – it can lead to building more application than you need. Speculative architecture is risky for the same reason speculating in stocks is risky: The investment may sink or swim.

This discussion just scratches the surface of architectural considerations. To learn more about thinking pragmatically about software architecture, check out “Architecting Applications for the Real World in .NET” on Pluralsight.

Architecting Applications for the Real World in .NET

Subscribe to Email Updates (No spam. Just new posts.)

2 thoughts on “Lean Software Architecture: Focus On the Pain – Part 3 of 3

  1. First, the serious:
    …I’m totally going to queue up your Pluralsight course in my offline viewer now. Much of what you’ve stated in these posts is boilerplate conference fare, but welcome. Knowing the correct level of complexity to implement upfront and what areas of complexity to defer is an art. Hopefully in your course you bring up “practical, *somewhat common* real-world examples” that viewers can quickly digest and apply.

    Now, the totlly un-srs:
    Less than 3 hours? …for a *Pluralsight* course? Can’t be any good.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>