What Is Architecture?
In any object composed of multiple subobjects, there is architecture. Architecture provides structural components and connective elements.
Join the DZone community and get the full member experience.Join For Free
on a regular basis, we hear people speak of good and bad architecture. however, what is architecture?
before i describe software architecture, let's see if we can come to an agreement of what architecture is. what are the components of architecture and value does architecture have?
architecture provides the structural and connective framework required for a system of components to function. architecture is specific to a context. good architecture for a software system is different from that of a car or a building.
architecture, in general, is not visible. it is present in the system, but only under other visible design components.
note: once you finish this article, be sure to check out the second part here to see more relations to software architecture.
before a discussion of software architecture, it would be best to describe architecture using physical objects.
architecture involves two elements:
- structural elements.
- connective elements.
let's look at these two elements with respect to a building.
structure for a building involves the foundation and the pieces that provide support to the entire building; it is the skeleton of the building. if a building has an interesting shape it is because underneath the framework of rebar and concrete support the shape.
connective elements can be structural, but they provide a way of linking different structural components for the purposes of transporting something. connective elements in a building transport air, water, and electricity.
the structural capability of the framework will dictate how high a building can go. generally speaking, architecture determines size. if the building has a framework of rebar and concrete that will support a 10-story structure, it will be difficult to add additional floors over 10 easily. adding additional floors will require effort expended to reinforce the existing structural strength of the building
if a connective element is missing, adding it will be expensive. for example, old brick buildings often didn't plan for plumbing or electricity. if this element is added afterward, then it will be much more expensive to put in.
if plumbing is added afterward, then you will see the plumbing running outside the walls. this can lead to problems if the building experiences sub-zero weather.
it is similarly inconvenient to add electricity or air-conditioning to a building that did not have these connective elements designed into the building when it was built.
for comparison purposes, let's look at architecture in a couple of contexts:
|object||structural component||connective element|
architecture and visibility
in the two examples above, several things about architecture stand out:
- structural components are generally hidden unless they are functional.
- connective elements are covered up in the final object.
so, for a building, the structural element of the steel frame is invisible hidden under finishing elements. however, there are cases where we see concrete or brick walls exposed. structural elements are generally not attractive and so we put in extra effort (i.e., cost) to hide the structural elements. sometimes, in the case of concrete or brick walls, we will leave them exposed because the visual need to hide these elements are not there, i.e., a warehouse.
connective elements are almost always hidden. the sight of electrical wires, plumbing, or hvac tubes is not aesthetically pleasing and we generally hide these elements. if we are hiding a connective element, they are cheapest to put in when an object is being created the first time.
cost of fixing hidden connective elements
repairing a hidden connective element is expensive. for example, fixing plumbing and electrical wires in a house are expensive depending on how hard it is to access the connective element.
adding a connective element after the fact is much more expensive and much less attractive. there are brick buildings that were built prior to indoor plumbing and electricity being available. a good example of these buildings are the residences at harvard or old brick warehouses that are now office space. in the case of the harvard residences the plumbing runs outside the residences and due to the winter weather in boston, is subject to freezing. adding electricity to a brick warehouse involves running metal conduits inside the walls; since they are exposed, they are subject to water accidents.
visible structural elements
in the case of a car, the tires are a structural element, but they are exposed to view. this is why effort goes into making the tires as attractive as possible, i.e., white wall tires, decorative hubcaps, etc.
purpose of architecture
once the architecture is set it determines two things:
- the size of an object.
- the functional capabilities of the object.
as previously mentioned, the structural architecture of a building will dictate its maximum size and the connective elements will outline its capabilities. connective elements are always about functional capabilities.
the purpose of structural architecture is to partition an object into sub-components that are independent and can be designed separately. for example, in a building, the structural architecture allows you to subsequently design each of the apartments separately without worrying about how the design of one room affects another.
for a car, the main structural element of the chassis allows you to design the following sub-components separately:
by allowing sub-components to be designed separately we subdivide a problem (i.e., divide and conquer), which reduces the complexity of the overall design. it allows separate teams to work on the sub-components. good architecture facilitates strong polymorphism in the sub-components.
in the case of apartments, each apartment can be designed differently and by different people. in a car, the engine can be designed by one group of people different from that designing the doors, lights, or the other part of the car.
the connective components in each object either provides a shared service that is accessible to multiple components or provides a coordination of sub-components to achieve a higher level function.
electricity, plumbing, and hvac are all examples of shared services that are available to an entire building. the usage of electricity in one room does not dictate the usage of electricity in another room, however, aggregate usage of electricity is sized by the architecture.
elevators for a building and steering columns and the gas system of a car are examples of components that are coordinated across multiple levels of the object. they provide an overall functionality when all of the sub-components coordinated are functioning.
in general, if one of the sub-components is not functioning then the entire set of coordinating objects will fail to function. for a car, if any component in the diagram fails then the engine itself will fail.
in any object composed of multiple subobjects, there is architecture. architecture provides two different but related functions:
- structural components.
- connective elements.
the architecture of an object dictates how large it can be and determines how separately each sub-component can be designed.
check out the second part of this article here .
Published at DZone with permission of Dalip Mahal, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.