Поиск  
Always will be ready notify the world about expectations as easy as possible: job change page
Aug 2

Thinking like an Architect

Thinking like an Architect
Автор:
Источник:
Просмотров:
655

Key takeaways

  • Architects aren't the smartest people on the team, they are the ones making everyone else smarter. An architect is an IQ amplifier.
  • Riding the architect elevator means connecting the penthouse with the engine room. The value of a modern architect is measured by how many floors they can cover.
  • Using metaphors invites the audience into the thought process. Not inviting the audience is an underutilization of mental resources.
  • The most powerful models are the simplest. A good model simplifies and abstracts, providing clarity rather than confusion.
  • Architects see more dimensions: by expanding the problem and solution space, architects enable others to approach problems more intelligently.

• • •

Gregor Hohpe, author of The Software Architect Elevator, presented the "Thinking Like an Architect" session at QCon London 2024. This article represents the talk, which starts by explaining the roles of an architect and the concept of connecting levels.

Subsequently, we delve into the importance of metaphors to make complex technical concepts more relatable and we understand the advantage of making better decisions with models. Concurrently, we describe the importance of approaching problems from different angles, seeing more dimensions, and overcoming constraints.

The role of architects

Being an architect is not defined by one's job title, it involves various perspectives and dimensions. Some excellent architects don't necessarily have "architect" on their business cards, and those with the title might not always be great. Architecture is more about a way of thinking and a lifestyle.

Different organizations have varying perspectives on the role of architects. Some may operate without formally designated architects yet still maintain a coherent architecture.

Understanding what it means to be an architect is complex and multifaceted. It is helpful to consider various lenses through which one can be effective and valuable in the role of an architect.

Architects make everyone else smarter

One of the biggest myths about architects is that they are the ultimate decision-makers, typically older, better paid, and seemingly wiser than everyone else. However, it's unrealistic for one person to make all the important decisions because nobody can be smarter than everyone else combined.

Architects mustn't be the smartest person in the room dictating to others. Their role is to help others make better decisions, for example by viewing problems from different perspectives, by better understanding trade-offs, or by considering additional options. That’s how architects are IQ amplifiers for the team: they make everyone else smarter.

Architects connect levels

The book The Software Architect Elevator discusses the role of an architect in connecting different levels of the organization and triggers the question of which architect is the most valuable for an organization. While some might argue it's the chief architect, others might believe it's those who are hands-on and implement solutions. However, the importance of the architects who bridge different levels within the organization is outlined.

A chief architect who creates diagrams can see their value diminish if they are isolated from reality. Similarly, a skilled developer's work must connect to the broader success of the organization. The key is not which level the developer occupies but how effectively they navigate and connect different levels. The concept of the architect elevator emphasizes the importance of moving between levels.

Organizations typically have many different levels due to division of labor, legal considerations, and structural hierarchy, often leading to issues. Leadership in the "penthouse" believes everything in IT is excellent, boasting about blockchain and GenAI. Meanwhile, developers in the engine room enjoy a sense of freedom since management is unaware of their actual work. This disconnect is facilitated by middle management, an isolation layer that creates a loosely coupled architecture, which in this case is not a good thing!

Figure 1: The danger of too many floors
Figure 1: The danger of too many floors

The danger of such a disconnect is outlined, as projects don't align with the strategic goals and the strategists are out of touch with reality. The most valuable architects are those who can bridge this gap.

Today's high-change environment requires recognizing the similarities between organization and technology. Architects should avoid oversimplifying when engaging with top executives, as they are highly knowledgeable leaders - while they may not know technical details, like Helm Charts, architects are encouraged to provide meaningful details that help leaders make better decisions. The architect elevator is proposed to unify understanding across organizational levels, not to present different stories.

While discussing topics like high automation levels, cloud infrastructure, and DevOps can be exhilarating for technical teams, CIOs or heads of IT are more concerned about avoiding security breaches, ensuring high availability, and maintaining cost efficiency. Hohpe outlines how to bridge these perspectives: the technical innovations directly address these CIO-level priorities, but architects riding the elevator have to connect the dots between the different levels. For example, automation assures consistent patch levels, which in turn improves security.

Using metaphors

Architects have a powerful tool to connect these dots: metaphors. Choosing metaphors relevant to the industry; for instance, when working in financial services, using financial metaphors invites leaders into decision-making by making complex technical concepts more relatable. Instead of bombarding them with technical jargon, metaphors help bridge the gap and build trust. It's about engaging leaders in thoughtful decision-making rather than simply seeking approval. Using metaphors invites them into the decision process.

Figure 2: Connecting the dots across layers
Figure 2: Connecting the dots across layers

Similarly, when discussing delivery speed with managers focused on cost efficiency, mentioning frequent software releases might alarm them. To them, speed may translate into sloppiness. To bridge this gap, architects should articulate concepts like the cost of delay — how a six-month delay in deployment could cost millions. This approach translates time into monetary terms, overcoming mental barriers and helping to understand.

Architects make better decisions with models

The world we're in is not simple. The applications we build today are complex because they are based on distributed systems, event-driven architectures, asynchronous processing, or scale-out and auto-scaling capabilities. While these are impressive capabilities, they add complexity.

Models are an architect’s best tool to tackle complexity. Models are powerful because they shape how people think. Dave Farley illustrated this with an example: long ago, people believed the Earth was at the center of the universe and this belief made the planets' movements seem erratic and complicated. The real problem wasn't the planets' movements but using an incorrect model. When you place the sun at the center of the solar system, everything makes sense.

Architects explaining things to others who operate differently may believe that others don't understand when they simply use a different mental model.

"All models are wrong, some are useful" is a famous quote by George Box. However, we often overlook the second part of the statement:

Just as the ability to devise simple but evocative models is the signature of the great scientist so overelaboration and overparameterization is often the mark of mediocrity.

In architecture, diagrams and complex tapestries like database schemas and system architectures are common. Yet, these models don't always offer much abstraction. The most powerful models are the simplest. A good model simplifies and abstracts, providing clarity rather than confusion.

When someone says, "But this model isn't reality," the answer should be: "It's not meant to be; it's a model. It clarifies our thinking, makes us smarter, and helps us make better decisions. It boosts our IQ." When architects try to capture reality — every detail in place – they fall into the trap of overelaboration highlighted by George Box.

How can we simplify a model? Let's use Planet Earth as an example, with four different models of it. Which one is the best? They are all good, depending on the question.

Figure 3: The best models depend on the question
Figure 3: The best models depend on the question

A model is only valuable if it helps answer something. Need to hike? Use a topographical map. Elections? A political map. A to B quickest? Route map. Density for logistics? Population map. Different questions require different maps. When asked, "Show me the architecture," it's fair to ask, "What's the question?" – different questions require different models.

Architects see more dimensions

Architects can make everyone else a bit smarter by seeing multiple dimensions. By expanding the problem and solution space, architects enable others to approach problems more intelligently. Often, disagreements arise when two parties view a problem from different angles, akin to debating between a square and a triangle without progress.

Figure 4: Architects see more dimensions
Figure 4: Architects see more dimensions

Architects can introduce a third dimension, showing everyone that the object is a pyramid. For example when teams debate between speeding up delivery and maintaining quality. Architects can suggest solutions like automating tests or integrating testing earlier, improving collective problem-solving capabilities beyond binary debates.

In the realm of IT strategy, many leaders grapple with the "between a rock and a hard place" dilemma. On one side, there's pressure to standardize and reduce costs for harmonization and economies of scale. This can limit flexibility, as developers may prefer other innovative solutions. On the other side, businesses demand agility and innovation to stay competitive. This creates a linear, unhappy scale where neither side finds satisfaction. Architects who recognize multiple dimensions can navigate these challenges more effectively.

Platforms harmonize and standardize, but don't stifle innovation, they boost innovation. This concept extends beyond IT into other industries, like automotive manufacturing in the 1970s when Volkswagen adopted platform models. By standardizing the underlying engineering in a common platform, they were able to diversify and innovate with multiple models. This approach didn't reduce variety, it increased it significantly. BMW has evolved from three car models to over 30 today.

Breaking away from one-dimensional thinking is vital: as automotive companies expand product diversity through platform standardization, so too should software architects. By adopting a multidimensional approach, they can balance quality and speed, and achieve both standardization and innovation with platforms. This shift from binary choices is crucial for architects seeking to maximize both efficiency and creativity.

Figure 5: Overcoming constraints
Figure 5: Overcoming constraints

Another example of adding dimensions relates to lock-in and switching costs, an unpopular topic among cloud vendors. Typically, the conversation revolves around the challenge of moving workloads between cloud providers, viewed traditionally as a single-dimensional problem: decisions often seem to involve choosing between evils without finding a middle ground. A better approach is to introduce multiple dimensions to the discussion.

For instance, lock-in and switching costs can be seen as potential liabilities, with the cost quantified, considering the probability and magnitude of such a move. On the other hand, there are benefits like serverless architectures and managed services that reduce operational complexity.

By considering benefits versus switching costs, it becomes possible to weigh the trade-offs more effectively, providing decision models rather than direct answers. This approach allows the customers to understand their unique constraints and goals better, empowering them to make informed decisions.

Customers say: I'm locked in. That sounds binary: the lock is either closed or open. It's not binary, it's a cost that can be higher or lower, with different dimensions.

Figure 6: Multiple dimensions of lock-ins
Figure 6: Multiple dimensions of lock-ins

Lock-in isn’t limited to switching vendors. AWS provides extended version support on EKS, its managed Kubernetes service. As an architect, you’d expect everyone to use the latest version, right? So why would you need such a service? The answer is simple: version upgrades also have a cost: you are locked into a specific version of an open-source project due to switching costs. Architects should understand these nuances and consider how to make upgrades more cost-effective.

Architects sell options

Many view diversity and harmonization as opposites. Imagine developers have different preferences in programming languages. To harmonize these preferences, we, as IT and software architects, create standard APIs and interfaces, using protocols like OAuth and JSON. This approach is common in microservices architecture.

The key here is to standardize certain elements—such as interfaces, authorization protocols, transport methods, and data representation formats. By locking them down, architects sacrifice some options but gain others, enabling developers to code in various languages. Hohpe highlights the balance between harmonization and flexibility to allow for both innovation and standardization.

Figure 7: Give up some options to gain others
Figure 7: Give up some options to gain others

To explain this trade-off, we can use metaphors, particularly from the financial sector. Standardizing certain elements to enable diversity is similar to trading options: software practitioners give up some options but gain others. These options, such as using different programming languages, moving workloads to another provider, scaling up systems, and adding hardware capacity, are valuable.

For those in finance, this concept is as clear as Kubernetes and Helm Charts are to IT professionals. Options pricing, for which the Black-Scholes model won a Nobel Prize, shows that having options is always valuable. Deferring decisions, such as adding capacity later with the cloud's elastic infrastructure and scale-out architecture, is a valuable option.

An important insight from this formula involves volatility: options become more valuable as unpredictability increases. For instance, with a consistent number of users, there is no need for elastic hardware. Launching instead a mobile app or e-commerce store with uncertain user numbers, the option to scale becomes crucial. The more uncertainty, the more valuable the option. This metaphor shows that in architecture, like in finance, uncertainty increases the value of options. Using metaphors like this makes complex ideas clearer and more convincing.

Agile Architecture: Friend, not foe

Architecture and agile methodologies both thrive on dealing with uncertainty and volatility. If everything were predictable and unchanging, there would be little need for agility. Agile thrives on change and volatility, just like architecture: they both deal with uncertainty and are complementary. Using a car metaphor: agile is the steering wheel, guiding direction, while architecture is the engine, ensuring movement. Both are essential and work together. In a constantly changing world, both are needed to succeed. Architecture and agile are allies.

Conclusions

In this article, we delved into the role of a software architect, reflecting on how architects think and make decisions. The topic of what architects are and do was discussed, focusing on the importance of finding suitable abstractions using models and metaphors.

The concept of an architect as an IQ amplifier was discussed, as well as the importance of understanding tradeoffs and navigating different options.

Похожее
Oct 24, 2020
Author: Sandeep Singh Shekhawat
Introduction The Onion Architecture term was coined by Jeffrey Palermo in 2008. This architecture provides a better way to build applications for better testability, maintainability, and dependability on the infrastructures like databases and services. This architecture's main aim is to...
Sep 11, 2023
Author: Edin Šahbaz
Introduction In the realm of software development, the complexity of applications has steadily increased over time. To tackle this challenge, software architects have continuously evolved their approaches to designing and structuring backend systems. In this article, we will delve into...
Nov 29, 2023
Author: Daniel Foo
Source: InfoQ, 2023 2023 is almost coming to the end. It’s always a good idea to reflect back on what has been the popular topic on Software Architecture and Design over the last one year. In this article, we will...
May 20
Author: Semih Tekin
Clean Architecture is a software design philosophy that promotes the separation of concerns and the creation of a modular and maintainable codebase. It was introduced by Robert C. Martin, also known as Uncle Bob, and has gained popularity in the...
Написать сообщение
Тип
Почта
Имя
*Сообщение