Home > Articles

This chapter is from the book

Five Questions

Good questions make us think, uncover details, and transform our understanding. I have found them to be a great tool when designing. These questions have helped me scope a system and dig into it. They are designed to ground us in concrete situations and to avoid grasping for ideals that often cause projects to fail.

Question 1: When Is the Best Time to Market?

The business, not the architect, decides the project timing. However, this is the first question that we, as architects, need to ask. Time can be our enemy because, often, even skills and money can’t change the timeline of the product.

Time to market is everything, and our designs must incorporate these realities. When the deadlines are strict, we can design with the knowledge that we will be able to rewrite the system beyond the deadline.

My usual experience is that although the time-to-market deadlines are often not negotiable, features that should go into that version are often flexible. My recommendation is to work with a UX designer and product manager to understand the minimal features you must incorporate into the design and do it as fast as possible, using the most straightforward approach.

Question 2: What Is the Skill Level of the Team?

Leadership is about working with your team. Some teams are so good they might handle the system without any help from you at all. However, leadership is needed when we work with less-than-perfect teams.

You go to war with the army you have, not the army you might want or wish to have at a later time.

Donald Rumsfeld

Take a hard, realistic look at your team. Your team may be veteran superstars, handpicked and employed by you over the years, fresh hires, or some mix of these. You must pick an architecture your team can manage. For example, do not pick an event-driven architecture or CQRS (Command and Query Responsibility Segregation)-based server unless you have a few people who have done this before. Those kinds of architectures have high costs in understandability and debugging challenges, and they most likely will cost much more in the long run unless the team understands their finer details.

What if you feel in your gut that CQRS is the right solution, but you do not have experts on board to achieve that architecture? I recommend designing the current version using a simple architecture and starting a proof of concept (PoC). That way, you can try out the CQRS in the background with the person who is most likely to handle it and with the hope that, in the second version, you will undertake CQRS.

You might be thinking, “Can’t I train the team?” Yes, in some cases. For example, you might hire an expert who works shoulder to shoulder with the team for a few months. However, a deeper understanding of most complex systems takes time. My experience is giving someone a fingertip feel for performance, keeping in mind that the ability to handle details like concurrency or an LMAX disrupter takes at least a year, maybe two.1

Similarly, you should pick the programming language also based on the team. Programmers have many skills acquired around a given programming language, and it is often tough to change.

Certain abilities, like security and user experience, are essential. So, the leader must find a way to cover these areas. Doing so could involve hiring a consultant or the leader personally stepping in to support the team and provide guidance.

Rarely, the right choice could be to refuse to build certain software with a novice team. Instead, sometimes (in a startup, for instance) you can build a limited version (e.g., that scales less), which can then be used to justify more investment later. Even then, you need to make things very clear for people who are making the investment and make sure they know the risks.

Question 3: What Is Our System’s Performance Sensitivity?

If a system operates close to the performance limits of a naive architecture, we say that the system is performance sensitive. Architectural considerations change significantly between systems that are sensitive and insensitive to performance.

The performance sensitivity of the system tells how much leeway you have and how much precision you need. Achieving a higher precision is like walking a tightrope; it is exponentially hard and needs experienced developers. Thus, performance-sensitive systems need exotic techniques, careful design, greater creativity, continuous performance measurements, and a feedback cycle. We need to test and identify unknowns through experiments as soon as possible. We must have a thin slice working end to end and invest early on in the system to collect detailed metrics on its mechanics. We discuss this style of design in Chapter 3. All this adds complexity and cost.

We can design performance-insensitive systems using a fingertip feel for the performance and simple architectural choices. We discuss this approach in detail in Chapter 3. Hence, the answer to this question significantly affects our architectural choices.

Note that many systems are performance insensitive. For example, using open-source service frameworks such as a Spring Boot and a database, you can easily implement a service that handles a few hundred requests per second. Even 50 requests per second are 4.32 million requests per day. With most businesses, if you are getting that many requests, chances are that you are already successful and can afford to write the second and third versions of the system. Most systems never need to exceed this limit.

Here’s a second follow-up question: When we go beyond the limit of trivial implementation (e.g., 50 requests per second), will we have enough money to rewrite the system? Always ask this question: If we have that many requests, will we have enough money to rewrite the system? If the answer is yes, you can start with a simpler design and wait.

A much trickier scenario is if use cases require operating with latency bounds. We discuss this topic in Chapter 3. However, naive architecture can support (in most cases) expectations of latency of less than a few seconds (e.g., 1–10 seconds).

Question 4: When Can We Rewrite the System?

The fourth question helps us accept that we will rewrite the system eventually. For example, if you are a startup, do not try to build the architecture that you will need when you have a few billion users and hundreds of millions of dollars in revenue. When you get there, you will have enough money to rewrite the system several times over. Most successful systems have been rewritten many times over.

The common objection is that it would waste money to redo the system. Yes, it will cost, but to believe that you can think through all the details of a system as it will be in three to five years down the line is arrogance. There is so much uncertainty along the way. Chances are your system will not work for the first few moderate trials and will take longer to deliver.

Instead, be humble. Make the system work for the first 10,000 to 50,000 users, learn from them, and rewrite when the time is appropriate. Often, that time is not that far into the future. This approach helps us to be lean and simple, focusing on a few key problems, yet solving those systems properly. Do Things that Don’t Scale!!.

Also, with the new IDEs, it is comparatively easy to refactor and redesign logic into a new structure. My belief is that we should plan to rewrite beyond key milestones (e.g., startup PoC to first serious funding round or beyond a million users). Having accepted that we will rewrite, we often realize that many features or guarantees can be done in the next rewrite.

Question 5: What Are the Hard Problems?

With the line of thinking I am proposing, it is easy to forget hard problems or push them out to the future. This question guards against such procrastination. But, sometimes, the hard problem is unrelated to the software, which is someone else’s problem.

Most systems are part of a competitive landscape. We must, therefore, ask this question: What is our competitive advantage? If the competitive advantage is in the software, we have to work hard to achieve that. By definition, good competitive advantages are difficult. Otherwise, your competition would have already accomplished that or will do it once they figure it out. We can’t achieve sustainable competitive advantages by doing as little as possible.

If your hard problems do not give you competitive advantages, then there is a good chance you can learn about hard problems from others. Likely, others have done it before, which can save you a lot of time and money. If a hard problem provides a competitive advantage, you must invest your time and energy in solving it. You need to invest in those as PoCs, independently of the system’s design.

You need to start this process as early as possible. To do so, we should first ask the question: What is the minimal implementation that tests the idea? Then we should conduct a PoC to test it. We should bring the PoCs into the system after eliminating uncertainties in the simplest way possible.

In summary, we need to identify hard problems and handle them differently. Postponing them is not advantageous. We should identify problems that need long-term work and start fixing them early on, giving us time to get them right.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020