How I Evaluate Architecture
In general, I expect a product’s architecture to clearly
delineate functional components that effectively address key issues within the
product’s domain. Then I look for constructs that enhance (or at least do not
compromise) the product’s performance and scalability. Finally, I expect that
the design decisions have resulted in a code structure that is relatively
concise and easily understood. Below the level of major components, I look for deep
architecture, consistently applied software constructs and techniques used
to address similar issues.
First-generation software architectures are seldom
optimum. Issues of limited development resources, lack of domain-specific
product experience, and requirements to deliver specific features, all conspire
to force developers to implement minimally acceptable architectural constructs.
Fortunately, software product architectures are not immutable. Rather, in my
experience, they typically undergo a radical overhaul sometime between a
product’s first and third release.
This is usually a watershed, when issues with a product’s
scalability, reliability, and/or extensibility force a major reassessment of
the product’s core requirements. In fact, I consider products that have not yet
undergone a major architectural revision to be still in their adolescence and
at significant risk of encountering a growth-induced crisis. On the other hand,
products that successfully migrate to a new architecture usually remain
structurally stable for a number of major releases.
Software-as-a-service (SaaS) architectures are a somewhat
specialized case for several reasons:
- Priority must be given to isolating individual customers’ data from one another while simultaneously leveraging a common processing infrastructure,
- Effective mechanisms must be implemented to allow substantial tailoring of functionality to the requirements of individual customers,
- Scalability requirements can increase rapidly and unpredictably, so the architecture must support provisioning with minimal configuration, and
- SaaS delivery models allow the use of open source software with minimal concerns for licensing restrictions, encouraging leveraging it for generic functionality.
As a result, optimal SaaS architectures usually consist of
“stacks” of open source products and frameworks extended by limited “shims” of
proprietary, domain-specific functionality. The thinner these proprietary
“shims” can be made, the more quickly and cheaply the product can be evolved
and/or extended. In addition, the persistence mechanism must provide customer
isolation in a very robust and fundamental manner so that cross-contamination
is effectively impossible either through intent or error. Thus, I expect
SaaS-capable architectures to have data isolation designed-in at a very basic
level and to exhibit extremely flexible scale-out strategies.
