Fundamentos da Arquitetura de Software

Fundamentos da Arquitetura de Software

Uma abordagem de engenharia

de Mark Richards e Neal Ford (2024)

Alta Books



What is a microkernel architecture, how to organize a meeting to discuss software architecture, or what are the consequences of having one type of connascence versus another — and, for that matter, what is connascence? These and many other topics are addressed in this introduction to the work of thinking about software at a broader and more abstract level, focusing on requirements and the system's final operation rather than the details of development itself. Highly recommended.



Notes





Active study

  1. Recall concept · cap-1 ●○○

    What are the four components of software architecture according to the book?

    Reveal answer

    Structure (the style, e.g. microservices), characteristics (success criteria, e.g. scalability), decisions (the system's rules) and design principles (guidelines).

    Source: Notes, ch. 1 — Introduction

  2. Recall concept · relationship · cap-1 ●●○

    What is the difference between an architecture decision and a design principle?

    Reveal answer

    A decision is a rule of the system (e.g. only the business layer accesses the database), which can have formal exceptions (variances); a principle is a guideline, not a rule (e.g. prefer asynchronous messaging).

    Source: Notes, ch. 1 — Introduction

  3. Multiple choice relationship · cap-1 ●●○

    "Services should prefer asynchronous communication with each other whenever possible." What is this?

  4. Recall general · cap-1 ●●○

    Name expectations of the architect's role listed in ch. 1.

    Reveal answer

    Make architecture decisions, continually analyze the architecture, ensure compliance with decisions, have diverse exposure and experience, have business domain knowledge, possess interpersonal skills and understand and navigate politics.

    Source: Notes, ch. 1 — Introduction

  5. Recall relationship · cap-1 ●●○

    When making decisions, should the architect specify technologies or guide?

    Reveal answer

    Guide when possible: steer the team's choices instead of dictating every technology.

    Source: Notes, ch. 1 — Introduction

  6. Recall relationship · cap-1 ●●○

    Why is political skill an expectation of the architect?

    Reveal answer

    Because virtually every architecture decision will be challenged by someone; you have to negotiate to get them approved.

    Source: Notes, ch. 1 — Introduction

  7. Recall concept · cap-1 ●●○

    What is evolutionary architecture, and why does it matter?

    Reveal answer

    An architecture that is easy to change and adapt, verified objectively (metrics, tests); it matters because it is impossible to anticipate the unknown unknowns.

    Source: Notes, ch. 1 — Introduction

  8. Recall relationship · cap-1 ●●●

    What problem of the 1990–2000 period did the DevOps movement help solve with regard to architecture?

    Reveal answer

    Operations was outsourced, and architectures were designed to work around the operators' limitations; with DevOps, operations and architecture come to collaborate.

    Source: Notes, ch. 1 — Introduction

  9. Recall concept · cap-1 ●○○

    What are the two laws of software architecture?

    Reveal answer

    1st: everything is a trade-off. 2nd: why is more important than how.

    Source: Notes, ch. 1 — Introduction

  10. Recall relationship · cap-1 ●●○

    A new architect finds a system that uses queues instead of direct calls, with no documentation. Why does the 2nd law say this is a problem?

    Reveal answer

    Because without knowing why the decision was made (which trade-offs were weighed), you can't assess whether it still holds or change it safely.

    Source: Notes, ch. 1 — Introduction

  11. Recall relationship · cap-1 ●●○

    What should the relationship between the architect and database administrators be?

    Reveal answer

    Symbiotic: they should work together, because data decisions affect the architecture and vice versa.

    Source: Notes, ch. 1 — Introduction

  12. Recall concept · cap-2 ●●○

    How does the book treat the relationship between architecture and design?

    Reveal answer

    They are different, but should not be separated by a one-way line: the architect should be in constant contact with the developers, with mentoring, leadership and iteration.

    Source: Notes, ch. 2 — Architectural Thinking

  13. Recall concept · cap-2 ●○○

    What kind of knowledge distinguishes the architect from the developer?

    Reveal answer

    The developer needs technical depth; the architect, breadth: knowing many solutions and their trade-offs.

    Source: Notes, ch. 2 — Architectural Thinking

  14. Recall concept · cap-2 ●●○

    What is the Frozen Caveman antipattern?

    Reveal answer

    Mastering something obsolete without realizing it: the architect reapplies experience or a concern from an old context to current situations where it no longer makes sense.

    Source: Notes, ch. 2 — Architectural Thinking

  15. Recall relationship · cap-2 ●●○

    What risks come with the transition from developer to architect?

    Reveal answer

    Trying to keep expertise in everything and becoming too shallow, or keeping obsolete specializations.

    Source: Notes, ch. 2 — Architectural Thinking

  16. Recall concept · cap-2 ●●○

    What does "architecture is the stuff you can't Google" mean?

    Reveal answer

    That there is no generic right answer: everything depends on the context and the specific trade-offs of the system.

    Source: Notes, ch. 2 — Architectural Thinking

  17. Recall relationship · cap-2 ●●●

    In the book's online auction system, a bid producer sends each bid to three services (bid capture, bid tracking and bid analytics). What is the trade-off between using a topic and using three queues?

    Reveal answer

    The topic makes extending easy (another service just subscribes) and decouples; queues are more secure, allow different contracts per consumer and monitoring/scaling per queue.

    Source: Notes, ch. 2 — Architectural Thinking

  18. Recall relationship · cap-2 ●●●

    In an auction system where a producer sends each bid to several services, the bid data is sensitive and only the capture service may read it in full. Topic or queues?

    Reveal answer

    Queues: with a topic, any service can subscribe and access the data; dedicated queues control who receives what.

    Source: Notes, ch. 2 — Architectural Thinking

  19. Recall relationship · cap-2 ●●○

    How should the architect balance coding and architecture?

    Reveal answer

    Delegate the critical path to the developers and code useful things that are not bottlenecks: well-done POCs, technical debt, bug fixes, helper tools and code review.

    Source: Notes, ch. 2 — Architectural Thinking

  20. Recall relationship · cap-2 ●●○

    Why should a POC written by the architect be of good quality?

    Reveal answer

    Because the code becomes a reference for the team and is often reused.

    Source: Notes, ch. 2 — Architectural Thinking

  21. Recall concept · cap-3 ●○○

    What is modularity in the book's sense?

    Reveal answer

    An organizing principle: a logical (not necessarily physical) grouping of related code.

    Source: Notes, ch. 3 — Modularity

  22. Recall concept · cap-3 ●○○

    What does a module's cohesion measure?

    Reveal answer

    How much its parts need to be together — the internal interdependence.

    Source: Notes, ch. 3 — Modularity

  23. Multiple choice concept · cap-3 ●●○

    Among the types of cohesion listed, which is the worst?

  24. Recall relationship · cap-3 ●●●

    CustomerMaintenance has add/update/get/notify customer and also get/cancel customer orders. Is splitting it into OrderMaintenance better?

    Reveal answer

    It depends: it's a trade-off. It separates responsibilities and increases cohesion, but if the order operations use customer data heavily, it creates coupling between modules.

    Source: Notes, ch. 3 — Modularity

  25. Recall concept · cap-3 ●●○

    What is the LCOM metric?

    Reveal answer

    Lack of Cohesion in Methods (from the CK metrics, for OO): it measures the lack of cohesion and helps find methods that should be separate; it has flaws.

    Source: Notes, ch. 3 — Modularity

  26. Recall concept · cap-3 ●○○

    What is the difference between afferent and efferent coupling?

    Reveal answer

    Afferent: incoming connections (who depends on the component). Efferent: outgoing connections (what the component depends on).

    Source: Notes, ch. 3 — Modularity

  27. Recall concept · cap-3 ●●○

    How is the abstractness metric (A) calculated?

    Reveal answer

    The ratio of abstract elements to the total elements (abstract + concrete) of the module.

    Source: Notes, ch. 3 — Modularity

  28. Recall concept · cap-3 ●●○

    How is instability calculated, and what does it indicate?

    Reveal answer

    I = Ce / (Ce + Ca). It indicates volatility: the higher it is, the more the module tends to break when something it depends on changes.

    Source: Notes, ch. 3 — Modularity

  29. Recall relationship · cap-3 ●●●

    A class delegates work to 9 others and nobody depends on it. What is its instability, and what does it mean?

    Reveal answer

    I = 9/(9+0) = 1, maximum instability: changes in any of the 9 can break it.

    Source: Notes, ch. 3 — Modularity

  30. Recall concept · cap-3 ●●●

    What is the distance from the main sequence?

    Reveal answer

    D = |A + I − 1|: it measures the balance between abstractness and instability; the smaller D, the more balanced the module.

    Source: Notes, ch. 3 — Modularity

  31. Recall relationship · cap-3 ●●●

    What are the zone of uselessness and the zone of pain?

    Reveal answer

    Uselessness: too abstract and unstable (hard to use). Pain: too concrete and stable, with no abstraction — hard to maintain.

    Source: Notes, ch. 3 — Modularity

  32. Recall concept · cap-3 ●○○

    What is connascence?

    Reveal answer

    Two components are connascent if a change in one requires a change in the other to keep the system correct.

    Source: Notes, ch. 3 — Modularity

  33. Recall concept · cap-3 ●●○

    What is the difference between static and dynamic connascence?

    Reveal answer

    Static is in the source code (name, type, meaning, position, algorithm); dynamic is at runtime (execution, timing, values, identity). Static is preferable.

    Source: Notes, ch. 3 — Modularity

  34. Recall concept · cap-3 ●●○

    What is the weakest (and desirable) form of connascence?

    Reveal answer

    Connascence of name; strength measures how easy it is to refactor, and you should refactor toward the weaker forms.

    Source: Notes, ch. 3 — Modularity

  35. Recall relationship · cap-3 ●●●

    A function create(name, surname, age, email) is called in 50 places with positional arguments. What connascence is this, and how do you weaken it?

    Reveal answer

    Connascence of position; using named arguments or a parameter object turns it into connascence of name.

    Source: Notes, ch. 3 — Modularity

  36. Recall relationship · cap-3 ●●●

    Two modules use the integer 3 to mean "order cancelled". What connascence is this, and how do you improve it?

    Reveal answer

    Connascence of meaning (convention); replacing it with a named constant or enum reduces it to connascence of name.

    Source: Notes, ch. 3 — Modularity

  37. Recall concept · cap-3 ●●●

    What are the locality and degree of connascence, and what rules follow from them?

    Reveal answer

    Locality: how close the elements are (within the same module is acceptable). Degree: how many elements are affected. Rules: the greater the distance, the weaker the connascence should be; and convert strong forms into weak ones.

    Source: Notes, ch. 3 — Modularity

  38. Recall concept · cap-3 ●●○

    What are Page-Jones's guidelines for connascence?

    Reveal answer

    Encapsulate parts of the system, minimize connascence between parts and maximize it within them.

    Source: Notes, ch. 3 — Modularity

  39. True or false relationship · cap-3 ●●○

    Code metrics such as coupling and connascence are enough to decide the structure of the architecture.

  40. Recall concept · cap-4 ●●○

    What three criteria define an architecture characteristic?

    Reveal answer

    It specifies a non-domain design consideration, influences some structural aspect of the design, and is critical or important to application success.

    Source: Notes, ch. 4 — Architecture Characteristics Defined

  41. Recall concept · cap-4 ●○○

    Why should the architect choose as few characteristics as possible?

    Reveal answer

    Because each characteristic supported adds complexity to the design.

    Source: Notes, ch. 4 — Architecture Characteristics Defined

  42. Recall concept · cap-4 ●●○

    What is the difference between implicit and explicit characteristics?

    Reveal answer

    Explicit ones appear in the requirements; implicit ones are rarely written down, but are assumed (e.g. availability, reliability, security).

    Source: Notes, ch. 4 — Architecture Characteristics Defined

  43. Multiple choice concept · cap-4 ●●○

    Scalability and availability are characteristics of which group?

  44. Recall relationship · cap-4 ●●○

    Classify: extensibility, recoverability and accessibility.

    Reveal answer

    Extensibility: structural. Recoverability: operational. Accessibility: cross-cutting.

    Source: Notes, ch. 4 — Architecture Characteristics Defined

  45. Recall relationship · cap-4 ●●○

    Why does the book talk about seeking "the least worst architecture"?

    Reveal answer

    Because you can't maximize all characteristics at once (e.g. performance vs. security); every choice is a trade-off.

    Source: Notes, ch. 4 — Architecture Characteristics Defined

  46. Recall concept · cap-5 ●●○

    What lesson does the case of the ship Vasa teach?

    Reveal answer

    The Swedish ship tried to have it all and sank on its maiden voyage: trying to support too many characteristics leads to failure.

    Source: Notes, ch. 5 — Identifying Architectural Characteristics

  47. Recall concept · cap-5 ●●○

    What technique does the book suggest for prioritizing characteristics with stakeholders?

    Reveal answer

    Ask each stakeholder to choose only the three most important ones, instead of listing freely; this forces consensus and reveals priorities.

    Source: Notes, ch. 5 — Identifying Architectural Characteristics

  48. Recall concept · cap-5 ●●○

    Why does the architect need to translate domain concerns into characteristics?

    Reveal answer

    Because the business speaks in terms like "time to market" or "satisfaction", which need to be converted into technical characteristics (e.g. agility, testability, deployability).

    Source: Notes, ch. 5 — Identifying Architectural Characteristics

  49. Recall relationship · cap-5 ●●●

    Management says the company will do many mergers and acquisitions. What characteristics does this suggest?

    Reveal answer

    Interoperability, scalability, adaptability and extensibility.

    Source: Notes, ch. 5 — Identifying Architectural Characteristics

  50. Recall relationship · cap-5 ●●●

    Why is prioritizing only agility usually a mistake?

    Reveal answer

    Because characteristics come in bundles: agility without testability and deployability cannot be sustained.

    Source: Notes, ch. 5 — Identifying Architectural Characteristics

  51. Recall concept · cap-5 ●●○

    What is the difference between elasticity and scalability?

    Reveal answer

    Elasticity deals with cyclical, sudden spikes in demand; scalability, with sustained growth in users over time.

    Source: Notes, ch. 5 — Identifying Architectural Characteristics

  52. Recall relationship · cap-5 ●●○

    A sandwich shop gets 10x more orders every day at lunchtime. Elasticity or scalability?

    Reveal answer

    Elasticity: it is a cyclical, sudden spike, not sustained growth.

    Source: Notes, ch. 5 — Identifying Architectural Characteristics

  53. Recall relationship · cap-5 ●●○

    What does "there are no wrong answers in architecture, only expensive ones" mean?

    Reveal answer

    That bad choices rarely keep the system from working, but they are costly in rework and bad trade-offs.

    Source: Notes, ch. 5 — Identifying Architectural Characteristics

  54. Recall relationship · cap-5 ●●○

    What exercise helps discover the least important characteristic?

    Reveal answer

    Trying to eliminate a characteristic from the list and seeing what is lost.

    Source: Notes, ch. 5 — Identifying Architectural Characteristics

  55. Recall concept · cap-6 ●○○

    Why do characteristics need objective definitions?

    Reveal answer

    Because many are vague or have several definitions (e.g. agility); only measurable definitions allow verifying them.

    Source: Notes, ch. 6 — Measuring and Governing Architecture Characteristics

  56. Recall relationship · cap-6 ●●○

    How do you define a response time target robustly?

    Reveal answer

    On a statistical basis (e.g. the real distribution, percentiles), not an arbitrary value; and review it over time.

    Source: Notes, ch. 6 — Measuring and Governing Architecture Characteristics

  57. Recall concept · cap-6 ●●○

    What does cyclomatic complexity measure, and what reference does the book give?

    Reveal answer

    It measures the number of paths in the code (via graphs); ideally CC < 10, or even < 5 — complexity is only justified for inherently complex problems.

    Source: Notes, ch. 6 — Measuring and Governing Architecture Characteristics

  58. Recall relationship · cap-6 ●●○

    What effect does TDD tend to have on cyclomatic complexity?

    Reveal answer

    It tends to reduce it, because it leads to smaller, simpler methods.

    Source: Notes, ch. 6 — Measuring and Governing Architecture Characteristics

  59. Recall concept · cap-6 ●●○

    What is a fitness function?

    Reveal answer

    An objective mechanism for assessing whether the architecture is close to the target on some characteristic — like an automated score.

    Source: Notes, ch. 6 — Measuring and Governing Architecture Characteristics

  60. Recall relationship · cap-6 ●●○

    Name examples of fitness functions.

    Reveal answer

    Detecting cycles between dependencies, limiting the distance from the main sequence, testing that layers are respected and Chaos Monkey (the Simian Army).

    Source: Notes, ch. 6 — Measuring and Governing Architecture Characteristics

  61. Recall relationship · cap-6 ●●●

    In a layered architecture, developers keep calling the database directly from the presentation layer. What governance solution does ch. 6 suggest?

    Reveal answer

    An automated fitness function (e.g. a test with ArchUnit) that fails the build when the presentation layer accesses the data layer.

    Source: Notes, ch. 6 — Measuring and Governing Architecture Characteristics

  62. Recall concept · cap-7 ●●○

    What is an architecture quantum?

    Reveal answer

    An independently deployable artifact with high functional cohesion and synchronous connascence — the smallest unit of the architecture.

    Source: Notes, ch. 7 — Scope of Architecture Characteristics

  63. Recall relationship · cap-7 ●●●

    Why should architecture characteristics be defined per quantum, not for the whole system?

    Reveal answer

    Because different parts have different needs; e.g. in the auction, the auctioneer's availability matters more than the bidders'.

    Source: Notes, ch. 7 — Scope of Architecture Characteristics

  64. Recall relationship · cap-7 ●●●

    A system has a single database shared by all services. How many quanta does it have?

    Reveal answer

    Only one: the shared database couples all the services, and they cannot be deployed or have different characteristics independently.

    Source: Notes, ch. 7 — Scope of Architecture Characteristics

  65. Recall concept · cap-7 ●●○

    What is a bounded context in DDD?

    Reveal answer

    Each domain has its own model and does its own thing; integration is solved later, even if some ideas repeat.

    Source: Notes, ch. 7 — Scope of Architecture Characteristics

  66. Recall detail · cap-7 ●●●

    In the online auction system case study, into how many quanta (scopes) was the architecture divided?

    Reveal answer

    Three: bidder feedback, auctioneer and bidder.

    Source: Notes, ch. 7 — Scope of Architecture Characteristics

  67. Recall concept · cap-8 ●○○

    What is a component for the architect?

    Reveal answer

    A physical packaging of related code (library, subsystem, service): the most basic level the architect deals with.

    Source: Notes, ch. 8 — Component-Based Thinking

  68. Recall concept · cap-8 ●●○

    What is the difference between technical and domain partitioning?

    Reveal answer

    Technical groups by technical role (presentation, business rules, persistence); domain groups by business areas (checkout, inventory, reporting).

    Source: Notes, ch. 8 — Component-Based Thinking

  69. Recall concept · names-and-dates · cap-8 ●○○

    What does Conway's Law say?

    Reveal answer

    A system's architecture tends to mirror the communication structure of the organization that produces it.

    Source: Notes, ch. 8 — Component-Based Thinking

  70. Recall relationship · cap-8 ●●●

    A company has separate frontend, backend and DBA teams and wants to move to a domain architecture. What does Conway's Law suggest?

    Reveal answer

    That the teams will also need to be reorganized (cross-functional by domain); otherwise the architecture tends to go back to reflecting the technical split.

    Source: Notes, ch. 8 — Component-Based Thinking

  71. Recall relationship · cap-8 ●●○

    What are the advantages of domain partitioning?

    Reveal answer

    It better reflects the business, facilitates cross-functional teams, fits the modular monolith and microservices and eases migrating to a distributed architecture; the downside is code repeated across domains.

    Source: Notes, ch. 8 — Component-Based Thinking

  72. Recall relationship · cap-8 ●●○

    What are the disadvantages of technical partitioning?

    Reveal answer

    High coupling (a domain change cuts across all layers), data coupling that makes migration hard, and even so there may be duplication.

    Source: Notes, ch. 8 — Component-Based Thinking

  73. Recall concept · cap-8 ●●○

    What is the component identification cycle?

    Reveal answer

    Identify initial components, assign requirements, analyze roles and responsibilities, analyze architecture characteristics and restructure — in a loop, with feedback from the developers.

    Source: Notes, ch. 8 — Component-Based Thinking

  74. Recall relationship · cap-8 ●●○

    What is the trade-off of component granularity?

    Reveal answer

    Too coarse leads to high internal coupling and makes testing hard; too fine leads to a lot of communication between components.

    Source: Notes, ch. 8 — Component-Based Thinking

  75. Recall concept · cap-8 ●●○

    What is the entity trap?

    Reveal answer

    The antipattern of modeling components from the relational database's entities, confusing data relationships with the application's workflow — it becomes a CRUD with table names.

    Source: Notes, ch. 8 — Component-Based Thinking

  76. Multiple choice concept · cap-8 ●●○

    Which component discovery approach assumes the use of messages and starts from the system's events?

  77. Recall concept · cap-8 ●●○

    How does the actor/actions approach work?

    Reveal answer

    Identify who the actors are (e.g. bidder, auctioneer, system) and what actions each performs, deriving the components from those actions.

    Source: Notes, ch. 8 — Component-Based Thinking

  78. Recall relationship · cap-8 ●●●

    In the online auction system case study, why was the Bid Capture component split in two?

    Reveal answer

    Because the auctioneer and the bidders have different characteristics: the auctioneer's side requires more reliability and less elasticity than the bidders'.

    Source: Notes, ch. 8 — Component-Based Thinking

  79. Recall relationship · cap-8 ●●●

    What criterion helps choose between a monolithic and a distributed architecture?

    Reveal answer

    The number of quanta: if a single set of characteristics is enough, a monolith is usually fine; if parts require different characteristics, distributed makes more sense.

    Source: Notes, ch. 8 — Component-Based Thinking

  80. Recall concept · cap-9 ●○○

    What is the Big Ball of Mud?

    Reveal answer

    The antipattern of a system with no organization or hierarchy, which grows haphazardly and where it is hard to predict the effect of changes.

    Source: Notes, ch. 9 — Foundations (architecture styles)

  81. Recall concept · cap-9 ●○○

    What is the client/server architecture?

    Reveal answer

    Separation into two tiers (front and back), with variations such as desktop + database server and browser + web server.

    Source: Notes, ch. 9 — Foundations (architecture styles)

  82. Recall detail · cap-9 ●●○

    What characterized the three-tier architecture of the 1990s?

    Reveal answer

    Database, application and frontend separated, with protocols such as CORBA and DCOM facilitating distribution.

    Source: Notes, ch. 9 — Foundations (architecture styles)

  83. Multiple choice concept · cap-9 ●●○

    Which of these styles is monolithic?

  84. Recall concept · cap-9 ●●○

    What are the eight fallacies of distributed computing?

    Reveal answer

    The network is reliable; latency is zero; bandwidth is infinite; the network is secure; the topology never changes; there is only one administrator; transport cost is zero; the network is homogeneous.

    Source: Notes, ch. 9 — Foundations (architecture styles)

  85. Recall relationship · cap-9 ●●○

    Why is "latency is zero" a dangerous fallacy?

    Reveal answer

    Because remote calls are always slower than local ones and latency adds up with each chained call; you need to know the average and tail latency.

    Source: Notes, ch. 9 — Foundations (architecture styles)

  86. Recall concept · cap-9 ●●●

    What is stamp coupling, and which fallacy does it aggravate?

    Reveal answer

    Sending an entire data structure when the consumer only needs a piece of it; it aggravates the infinite bandwidth fallacy. It is avoided with field selection, GraphQL or specific endpoints.

    Source: Notes, ch. 9 — Foundations (architecture styles)

  87. Recall relationship · cap-9 ●●●

    A checkout request calls 8 services in sequence, each with 100 ms of latency, and returns full customer objects. Which fallacies are being ignored?

    Reveal answer

    Zero latency (800 ms accumulated) and infinite bandwidth (stamp coupling when returning whole objects); also the reliable network, since any of the 8 can fail.

    Source: Notes, ch. 9 — Foundations (architecture styles)

  88. Recall relationship · cap-9 ●●○

    Besides the fallacies, what difficulties does distributed architecture bring?

    Reveal answer

    Distributed logging and diagnostics, data consistency (eventual consistency, BASE vs. ACID) and contract maintenance and versioning.

    Source: Notes, ch. 9 — Foundations (architecture styles)

  89. Recall concept · cap-10 ●○○

    What are the four standard layers of the layered architecture?

    Reveal answer

    Presentation, business, persistence and database.

    Source: Notes, ch. 10 — Layered Architecture Style

  90. Recall relationship · cap-10 ●●○

    Why is the layered architecture incompatible with domain-driven design?

    Reveal answer

    Because it is technically partitioned: a domain concept (e.g. Customer) is spread across all layers.

    Source: Notes, ch. 10 — Layered Architecture Style

  91. Recall concept · cap-10 ●●○

    What is the difference between a closed and an open layer?

    Reveal answer

    A request must go through a closed layer, talking only to the adjacent one; an open layer can be skipped.

    Source: Notes, ch. 10 — Layered Architecture Style

  92. Recall relationship · cap-10 ●●○

    Why are closed layers preferable?

    Reveal answer

    They provide isolation: changes in one layer don't affect the others, reducing coupling.

    Source: Notes, ch. 10 — Layered Architecture Style

  93. Recall relationship · cap-10 ●●●

    When does it make sense to have an open layer?

    Reveal answer

    When there are shared components (e.g. utilities) that the business layer uses but the presentation layer shouldn't access: an open services layer is created below the business layer.

    Source: Notes, ch. 10 — Layered Architecture Style

  94. Recall concept · cap-10 ●●○

    What is the architecture sinkhole antipattern?

    Reveal answer

    Requests that pass through layers without any processing, merely as a formality of the hierarchy; a little is inevitable, a lot is a problem.

    Source: Notes, ch. 10 — Layered Architecture Style

  95. Recall relationship · cap-10 ●●●

    In a layered application, 80% of requests just pass through the business layer with no logic. What does this indicate?

    Reveal answer

    Too much sinkhole: the layered architecture is probably not the right style; opening all the layers would solve this, but would create other problems (loss of isolation).

    Source: Notes, ch. 10 — Layered Architecture Style

  96. Recall relationship · cap-10 ●●○

    When is the layered architecture a good choice?

    Reveal answer

    For small, simple applications or websites, as a starting point, or when there is uncertainty about the architecture; it is simple and cheap, but not very scalable and hard to change.

    Source: Notes, ch. 10 — Layered Architecture Style

  97. Recall concept · cap-11 ●○○

    What is a pipe in the pipeline architecture?

    Reveal answer

    A one-way, point-to-point communication channel between filters, preferably with small data.

    Source: Notes, ch. 11 — Pipeline Architecture Style

  98. Recall concept · cap-11 ●●○

    What are the four types of filter?

    Reveal answer

    Producer (source), transformer (transforms the input, like a map), tester (tests criteria and may or may not produce output, like a reduce) and consumer (destination).

    Source: Notes, ch. 11 — Pipeline Architecture Style

  99. Recall concept · cap-11 ●●○

    What properties should filters have?

    Reveal answer

    Be self-contained, independent and stateless, performing a single task — which favors reuse.

    Source: Notes, ch. 11 — Pipeline Architecture Style

  100. Recall relationship · cap-11 ●●●

    In a telemetry pipeline (producer → testers → transformers → consumer in MongoDB), how do you add the analysis of a new metric?

    Reveal answer

    Insert a new tester filter (and the corresponding transformer) into the flow, without touching the existing filters.

    Source: Notes, ch. 11 — Pipeline Architecture Style

  101. Recall relationship · cap-11 ●●○

    What are the weaknesses of the pipeline architecture?

    Reveal answer

    It is a monolith (one quantum): not very scalable or elastic, everything is tested together and an error in one part brings down the whole.

    Source: Notes, ch. 11 — Pipeline Architecture Style

  102. Recall detail · cap-11 ●○○

    What well-known examples use the pipeline architecture?

    Reveal answer

    bash/zsh pipes, ETL processes and the MapReduce model.

    Source: Notes, ch. 11 — Pipeline Architecture Style

  103. Recall concept · cap-12 ●○○

    What are the two components of the microkernel architecture?

    Reveal answer

    The core system (minimal functionality, the happy path) and the plug-ins (specialized processing that extends the core).

    Source: Notes, ch. 12 — Microkernel Architecture Style

  104. Recall relationship · cap-12 ●●○

    In an IDE with a microkernel architecture, what would the core be?

    Reveal answer

    A simple text editor; the plug-ins add the other features.

    Source: Notes, ch. 12 — Microkernel Architecture Style

  105. Recall concept · cap-12 ●●○

    What is the registry for in the microkernel?

    Reveal answer

    For the core to know which plug-ins exist and how to access them: name, data contract and address.

    Source: Notes, ch. 12 — Microkernel Architecture Style

  106. Recall concept · cap-12 ●●●

    What do you do when a third-party plug-in doesn't follow the standard contract?

    Reveal answer

    Use an adapter that translates the plug-in's contract into the core's standard contract.

    Source: Notes, ch. 12 — Microkernel Architecture Style

  107. Recall concept · cap-12 ●●○

    What is the difference between runtime-based and compile-based plug-ins?

    Reveal answer

    Runtime ones can be added without redeploying; compile-based ones require redeploying the application.

    Source: Notes, ch. 12 — Microkernel Architecture Style

  108. True or false relationship · cap-12 ●●○

    Plug-ins usually access the system's central database directly.

  109. Recall relationship · cap-12 ●●●

    When should microkernel be used in software that is not a product?

    Reveal answer

    When there is large case-by-case variation in rules, such as insurance with rules per state or taxes with different forms: each rule becomes an isolated plug-in, easy to change.

    Source: Notes, ch. 12 — Microkernel Architecture Style

  110. Multiple choice detail · cap-12 ●○○

    Which of these is an example of microkernel cited in the notes?

  111. Recall concept · cap-13 ●○○

    What is the basic topology of the service-based architecture?

    Reveal answer

    A separate user interface, coarse-grained domain services (usually 4 to 12) deployed independently and, normally, a single database.

    Source: Notes, ch. 13 — Service-Based Architecture Style

  112. Recall relationship · cap-13 ●●○

    What is the main difference between service-based architecture and microservices?

    Reveal answer

    Granularity: coarse domain services and a shared database, which allows ACID transactions within each service; microservices tend to use BASE.

    Source: Notes, ch. 13 — Service-Based Architecture Style

  113. Recall concept · cap-13 ●●○

    What is the difference between ACID and BASE?

    Reveal answer

    ACID guarantees atomic, consistent, isolated and durable transactions; BASE (basic availability, soft state, eventual consistency) accepts that consistency will only come at some point.

    Source: Notes, ch. 13 — Service-Based Architecture Style

  114. Recall relationship · cap-13 ●●○

    What is the risk of the single database in the service-based architecture?

    Reveal answer

    A schema change can affect all the services.

    Source: Notes, ch. 13 — Service-Based Architecture Style

  115. Recall relationship · cap-13 ●●●

    Why is it better to have several logically partitioned entity libraries instead of a single shared one?

    Reveal answer

    With a single lib, changing a table affects every service; by partitioning (customer_entities, order_entities…) the change stays contained to whoever uses that domain; the common lib stays under the database team's control.

    Source: Notes, ch. 13 — Service-Based Architecture Style

  116. Recall concept · cap-13 ●●○

    What is an API layer (proxy/gateway) between the user interface and the services for?

    Reveal answer

    To expose services externally or to separate cross-cutting concerns, such as monitoring.

    Source: Notes, ch. 13 — Service-Based Architecture Style

  117. Recall relationship · cap-13 ●●●

    In the electronics recycling system case study (service-based architecture), why are there two quanta?

    Reveal answer

    Because internal operations and customer-facing services were separated with their own databases and one-way communication, allowing different characteristics (security, scale) for each part.

    Source: Notes, ch. 13 — Service-Based Architecture Style

  118. Recall relationship · cap-13 ●●○

    When is the service-based architecture a good choice?

    Reveal answer

    When the required performance isn't very high, for DDD, when ACID transactions matter, and when reasonable modularity is wanted without excessive granularity; it is simple and cost-effective.

    Source: Notes, ch. 13 — Service-Based Architecture Style

  119. Recall concept · cap-13 ●●○

    What is the difference between orchestration and choreography?

    Reveal answer

    Orchestration coordinates several services through a separate mediator; choreography coordinates through the way the services communicate with each other, with no mediator.

    Source: Notes, ch. 13 — Service-Based Architecture Style

  120. Recall concept · cap-14 ●○○

    What is the difference between the request-based and the event-based model?

    Reveal answer

    Request-based directs requests through an orchestrator to processors; event-based reacts to events — something that has already happened — without a direct request.

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  121. Recall concept · cap-14 ●●○

    How does the broker topology work?

    Reveal answer

    No central mediator: an initiating event enters a broker channel, processors react and publish processing events, and the flow continues in a chain until there are no more events.

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  122. Recall relationship · cap-14 ●●●

    Why is it good practice for each processor to publish what it did, even if nobody is listening yet?

    Reveal answer

    Because it facilitates extensibility: new processors can subscribe to those events without changing the existing ones.

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  123. Recall relationship · cap-14 ●●○

    What are the advantages and disadvantages of the broker topology?

    Reveal answer

    Advantages: decoupling, scalability, responsiveness, performance and fault tolerance. Disadvantages: little control over the workflow, error handling, recoverability, restart capability and data inconsistency.

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  124. Recall concept · cap-14 ●●○

    How does the mediator topology work?

    Reveal answer

    An initiating event goes to a queue accepted by a mediator, which knows the steps of the workflow, sends commands to the processors' channels, keeps the state and only moves forward when a step finishes.

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  125. Recall relationship · cap-14 ●●●

    Why is the mediator said to deal more with commands than with events?

    Reveal answer

    Because it tells processors to do something (future), instead of reacting to something that has already happened (past).

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  126. Recall relationship · cap-14 ●●○

    What are the trade-offs of the mediator topology compared to the broker?

    Reveal answer

    It gains workflow control, error handling, recoverability and consistency; it loses in coupling, scalability, performance and fault tolerance (the mediator can become a bottleneck).

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  127. Multiple choice relationship · cap-14 ●●●

    An order workflow requires payment to be confirmed before shipping and failures to be resumable from where they stopped. Which topology?

  128. Recall detail · cap-14 ●●●

    Which tools does the book cite as simple and complex mediators?

    Reveal answer

    Simple: Apache Camel, Mule ESB, Spring Integration. Complex (with BPEL): Apache ODE, Oracle BPEL.

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  129. Recall concept · cap-14 ●●○

    What is the difference between responsiveness and performance?

    Reveal answer

    Responsiveness is the user experience — getting a confirmation quickly; performance is the speed of the processing itself.

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  130. Recall relationship · cap-14 ●●●

    A user posts a comment that takes 3 s to be moderated and saved. How does asynchronous architecture improve the experience?

    Reveal answer

    By returning an immediate acknowledgement while processing continues in the background: responsiveness improves without changing performance.

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  131. Recall concept · cap-14 ●●●

    How does the workflow event pattern for error handling work?

    Reveal answer

    The consumer delegates the faulty message to a workflow processor and moves on to the next one; the processor tries to fix it and resend it to the queue; if it can't, it sends it to a dashboard for manual intervention.

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  132. Recall concept · cap-14 ●●●

    What are the three points where messages can be lost, and their solutions?

    Reveal answer

    Message doesn't reach the queue → synchronous send with persistent queues; processor fails after dequeuing it → client acknowledge mode; failure when persisting → last participant support (ACID transaction).

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  133. Recall relationship · cap-14 ●●●

    A processor takes the message off the queue and crashes before finishing; the message is lost. What mechanism prevents this?

    Reveal answer

    Client acknowledge mode: the message stays in the queue until the processor signals success.

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  134. Recall concept · cap-14 ●●○

    How does request-reply messaging work?

    Reveal answer

    Two queues: the producer sends on the request queue and waits; the consumer replies on the reply queue, identifying the response by a correlation ID or using a temporary reply queue.

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  135. Recall concept · cap-14 ●○○

    What is the broadcast capability in event-driven architectures?

    Reveal answer

    Publishing events without knowing who will receive them, possibly with several subscribers: high decoupling.

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  136. Recall relationship · cap-14 ●●○

    When should event-based be chosen over request-based?

    Reveal answer

    Event-based for responsiveness and scale; request-based when the workflow is well defined and requires control. Event-based only supports eventual consistency and is hard to test.

    Source: Notes, ch. 14 — Event-Driven Architecture Style

  137. Recall concept · cap-15 ●●○

    What scaling problem does the space-based architecture try to solve?

    Reveal answer

    Uneven scaling: the web server scales easily, the application less so, and the database is the hardest; the central database becomes a bottleneck.

    Source: Notes, ch. 15 — Space-Based Architecture Style

  138. Recall concept · cap-15 ●●○

    What does a processing unit contain in the space-based architecture?

    Reveal answer

    The application logic (all or part of it), an in-memory data grid and a data replication engine (e.g. Hazelcast, Apache Ignite).

    Source: Notes, ch. 15 — Space-Based Architecture Style

  139. Recall concept · cap-15 ●●●

    What are the components of the virtualized middleware?

    Reveal answer

    Messaging grid (receives and routes requests), data grid (synchronizes the caches), processing grid (optional, orchestrates several units) and deployment manager (starts/stops units according to load).

    Source: Notes, ch. 15 — Space-Based Architecture Style

  140. Recall concept · cap-15 ●●○

    How does data reach the database in the space-based architecture?

    Reveal answer

    The units never access the database directly: they send changes through data pumps (usually messaging) to data writers, which update the database at some point.

    Source: Notes, ch. 15 — Space-Based Architecture Style

  141. Recall relationship · cap-15 ●●●

    When are data readers invoked?

    Reveal answer

    Only when all the units with that cache have crashed, on a redeploy, or to read archived data that is not in the cache.

    Source: Notes, ch. 15 — Space-Based Architecture Style

  142. Recall relationship · cap-15 ●●○

    What is the advantage of the data abstraction layer (writers + readers)?

    Reveal answer

    It isolates the processing units from the database, making it easier to handle database changes.

    Source: Notes, ch. 15 — Space-Based Architecture Style

  143. Recall concept · cap-15 ●●●

    What is a data collision, and what factors does its rate depend on?

    Reveal answer

    When a piece of data is updated locally and, at the same time, overwritten by replication from another unit. The rate grows with the number of instances, with the square of the update rate and with the replication latency, and falls with the cache size.

    Source: Notes, ch. 15 — Space-Based Architecture Style

  144. Recall relationship · cap-15 ●●●

    If a cache's update rate doubles, what happens to the collision rate?

    Reveal answer

    It quadruples, because it is proportional to the square of the update rate (CollisionRate = N·UR²/S·RL).

    Source: Notes, ch. 15 — Space-Based Architecture Style

  145. Recall concept · cap-15 ●●○

    What is the difference between a replicated and a distributed cache?

    Reveal answer

    Replicated: each unit has all the data in memory — fast and fault-tolerant, good for small, static caches. Distributed: a central cache server — more consistent, but with more latency and a single point of failure.

    Source: Notes, ch. 15 — Space-Based Architecture Style

  146. Recall relationship · cap-15 ●●●

    In a store, inventory changes all the time and requires consistency; the user profile changes little. Which caches should be used?

    Reveal answer

    Distributed for the inventory (consistency, high update rate) and replicated for the profile (performance, static data); both can be used.

    Source: Notes, ch. 15 — Space-Based Architecture Style

  147. Recall relationship · cap-15 ●●●

    Why is near-cache not recommended for the space-based architecture?

    Reveal answer

    Because the front caches (subsets of the backing cache) are not synchronized with each other, creating inconsistencies in performance and responsiveness between units.

    Source: Notes, ch. 15 — Space-Based Architecture Style

  148. Recall relationship · cap-15 ●●○

    Which systems benefit from the space-based architecture?

    Reveal answer

    Systems with highly variable, high load, such as concert ticketing (sudden spike, consistent seat availability) and online auctions.

    Source: Notes, ch. 15 — Space-Based Architecture Style

  149. Recall relationship · cap-15 ●●○

    What deployment flexibility does the space-based architecture offer?

    Reveal answer

    It allows mixing cloud and on-premises: processing units in the cloud and the database on-prem, synchronized by data pumps.

    Source: Notes, ch. 15 — Space-Based Architecture Style

  150. Recall relationship · cap-15 ●●○

    What are the strengths and weaknesses of the space-based architecture?

    Reveal answer

    It maximizes elasticity, scalability and performance; it is complex, expensive and hard to test (data loss on failures, simulating extreme load).

    Source: Notes, ch. 15 — Space-Based Architecture Style

  151. Recall relationship · cap-16 ●●○

    What historical context led to orchestration-driven SOA?

    Reveal answer

    In the 1990s, expensive hardware and operating systems, with no reliable open source options; large companies sought to reuse everything as much as possible, with extreme technical partitioning.

    Source: Notes, ch. 16 — Orchestration-Driven Service-Oriented Architecture

  152. Recall concept · cap-16 ●●○

    What is the service taxonomy of orchestration-driven SOA?

    Reveal answer

    Business services (entry point, definitions only), enterprise services (reusable building blocks, e.g. CreateCustomer), application services (one-off use) and infrastructure services (logging, monitoring), coordinated by an orchestration engine (ESB).

    Source: Notes, ch. 16 — Orchestration-Driven Service-Oriented Architecture

  153. Recall relationship · cap-16 ●●●

    Why did SOA's maximum reuse prove disastrous?

    Reveal answer

    Because reusing the same definition (e.g. Customer) across the enterprise couples everything: a change needed for one service propagates to all of them, even unrelated ones.

    Source: Notes, ch. 16 — Orchestration-Driven Service-Oriented Architecture

  154. Recall relationship · cap-16 ●●●

    The life insurance team needs a new field in Customer, which is the same service used by auto and health insurance. What happens in SOA, and how would microservices handle it?

    Reveal answer

    In SOA, the change forces testing and redeploying everyone who uses Customer. In microservices, each bounded context would have its own customer model, accepting duplication to avoid coupling.

    Source: Notes, ch. 16 — Orchestration-Driven Service-Oriented Architecture

  155. True or false relationship · cap-16 ●○○

    The book treats orchestration-driven SOA mainly as a lesson in what to avoid.

  156. Recall names-and-dates · cap-17 ●○○

    When and by whom was the term microservices defined?

    Reveal answer

    By Martin Fowler and James Lewis, in a blog post from March 2014.

    Source: Notes, ch. 17 — Microservices Architecture

  157. Recall concept · cap-17 ●●○

    Which DDD concept inspires microservices?

    Reveal answer

    The bounded context: each service models a domain or workflow and contains everything it needs (code, schema), coupled internally but never externally.

    Source: Notes, ch. 17 — Microservices Architecture

  158. Recall relationship · cap-17 ●●○

    Why, in microservices, is duplicating code preferred to sharing it?

    Reveal answer

    Because sharing creates coupling between services; the architecture favors decoupling over reuse.

    Source: Notes, ch. 17 — Microservices Architecture

  159. Recall concept · cap-17 ●●○

    What criteria help define the boundaries of a microservice?

    Reveal answer

    Purpose (functional cohesion), transactions (entities that need to cooperate should stay together) and choreography (services that communicate too much may need to be one).

    Source: Notes, ch. 17 — Microservices Architecture

  160. Recall relationship · cap-17 ●●●

    Two microservices exchange dozens of messages per request and almost always take part in the same transaction. What should be done?

    Reveal answer

    Consider merging them into a single service: both the transactions criterion and the choreography criterion indicate that the granularity is too fine.

    Source: Notes, ch. 17 — Microservices Architecture

  161. True or false relationship · cap-17 ●○○

    The smaller the microservices, the better.

  162. Recall concept · cap-17 ●●○

    How do microservices handle data?

    Reveal answer

    Each service has its own database (isolation is a requirement); for the source of truth, a domain that owns each piece of data is defined, or replication/caching is used.

    Source: Notes, ch. 17 — Microservices Architecture

  163. Recall relationship · cap-17 ●●●

    Why can't the API layer in microservices be a mediator or orchestrator?

    Reveal answer

    Because that would centralize logic and create coupling, contrary to the philosophy of decoupling.

    Source: Notes, ch. 17 — Microservices Architecture

  164. Recall concept · cap-17 ●●○

    How does the sidecar pattern solve operational reuse?

    Reveal answer

    Each service gets a sidecar with common components (logging, monitoring, circuit breaker), connected through a service plane — the service mesh.

    Source: Notes, ch. 17 — Microservices Architecture

  165. Recall concept · cap-17 ●●○

    What are the two common frontend approaches in microservices?

    Reveal answer

    A monolithic frontend connected to the API layer, or microfrontends split into components (e.g. with React).

    Source: Notes, ch. 17 — Microservices Architecture

  166. Recall concept · cap-17 ●●●

    What does protocol-aware heterogeneous interoperability mean?

    Reveal answer

    Services know how to call each other (protocol-aware), can have different stacks (heterogeneous) and interoperate over the network.

    Source: Notes, ch. 17 — Microservices Architecture

  167. Recall concept · cap-17 ●●●

    What is domain/architecture isomorphism?

    Reveal answer

    How well the shape of a problem naturally fits an architecture style.

    Source: Notes, ch. 17 — Microservices Architecture

  168. Recall relationship · cap-17 ●●●

    What should be done when the urge arises to create transactions that cross microservice boundaries?

    Reveal answer

    Generally, don't: reassess the granularity and merge the services involved; when unavoidable, use the Saga pattern.

    Source: Notes, ch. 17 — Microservices Architecture

  169. Recall concept · cap-17 ●●●

    How does the Saga pattern work?

    Reveal answer

    A service synchronously mediates the interaction between microservices and, in case of error, sends compensating transactions to undo the steps already done — which is usually complex.

    Source: Notes, ch. 17 — Microservices Architecture

  170. Recall relationship · cap-17 ●●○

    What are the strengths and weaknesses of microservices?

    Reveal answer

    Highly scalable, elastic, evolvable and modular; expensive, complex, and network latency can be a performance bottleneck.

    Source: Notes, ch. 17 — Microservices Architecture

  171. Recall relationship · cap-18 ●●○

    Why do preferences for architecture styles change over time?

    Reveal answer

    Because of experiences from the past, changes in the ecosystem, new capabilities (e.g. Docker) and external factors, such as license prices.

    Source: Notes, ch. 18 — Choosing the Appropriate Architecture Style

  172. Recall concept · cap-18 ●●○

    What should the architect consider when choosing a style?

    Reveal answer

    Domain, architecture characteristics, organizational factors, domain/architecture isomorphism, monolithic vs. distributed, data governance and synchronous vs. asynchronous communication.

    Source: Notes, ch. 18 — Choosing the Appropriate Architecture Style

  173. Recall relationship · cap-18 ●●○

    What is the recommended default between synchronous and asynchronous communication?

    Reveal answer

    Synchronous by default; asynchronous only when necessary.

    Source: Notes, ch. 18 — Choosing the Appropriate Architecture Style

  174. Recall relationship · cap-18 ●●●

    Why can Silicon Sandwiches be monolithic, while Going, Going, Gone calls for distributed?

    Reveal answer

    Silicon Sandwiches is simple, with a single quantum and no major performance demands (a modular monolith or microkernel is enough); the auction has different requirements across its parts and high demands for elasticity and performance, favoring microservices or events.

    Source: Notes, ch. 18 — Choosing the Appropriate Architecture Style

  175. Recall concept · cap-19 ●○○

    What are the three architecture decision antipatterns?

    Reveal answer

    Covering your assets, Groundhog Day and email-driven architecture.

    Source: Notes, ch. 19 — Architecture Decisions

  176. Recall concept · cap-19 ●●○

    What is the covering your assets antipattern, and how do you avoid it?

    Reveal answer

    Avoiding deciding for fear of being wrong. It is mitigated by waiting until the last responsible moment (with the most information) and collaborating continuously with the developers.

    Source: Notes, ch. 19 — Architecture Decisions

  177. Recall concept · cap-19 ●●○

    What is the Groundhog Day antipattern, and how do you avoid it?

    Reveal answer

    Nobody knows why the decision was made, so it is discussed over and over; it is avoided by justifying each decision technically and in business terms (cost, time to market, satisfaction, positioning).

    Source: Notes, ch. 19 — Architecture Decisions

  178. Recall relationship · cap-19 ●●○

    Why not record architecture decisions in the body of emails?

    Reveal answer

    Because they get lost and usually come without the justification; better to link to the decision document and include only the relevant people.

    Source: Notes, ch. 19 — Architecture Decisions

  179. Recall relationship · cap-19 ●●●

    Every quarterly meeting reopens the discussion of why Kafka was chosen over RabbitMQ. What antipattern is this, and what should be done?

    Reveal answer

    Groundhog Day; record the decision in an ADR with context and technical and business justification.

    Source: Notes, ch. 19 — Architecture Decisions

  180. Recall concept · cap-19 ●●○

    When is a decision architecturally significant?

    Reveal answer

    When it affects structure, nonfunctional characteristics, dependencies, interfaces or construction techniques.

    Source: Notes, ch. 19 — Architecture Decisions

  181. Recall concept · cap-19 ●●○

    What are the sections of an ADR?

    Reveal answer

    Title, status (proposed, accepted, superseded), context, decision (with justification), consequences and, optionally, compliance and notes/metadata.

    Source: Notes, ch. 19 — Architecture Decisions

  182. Recall relationship · cap-19 ●●○

    What goes in the consequences section of an ADR?

    Reveal answer

    The expected impact of the decision, good and bad — the trade-offs accepted.

    Source: Notes, ch. 19 — Architecture Decisions

  183. Recall relationship · cap-19 ●●●

    What is the compliance section of an ADR for?

    Reveal answer

    To say how the decision will be measured and governed, by manual review or by a fitness function.

    Source: Notes, ch. 19 — Architecture Decisions

  184. Recall relationship · cap-19 ●●●

    Where should ADRs be stored?

    Reveal answer

    Each decision in a file; the code repository is an option, but a wiki or shared file system is usually better, because not everyone has access to the repository and there are integration and enterprise decisions, outside any one application.

    Source: Notes, ch. 19 — Architecture Decisions

  185. Recall detail · cap-19 ●●○

    When an ADR is superseded, what is recorded?

    Reveal answer

    Which ADR superseded it and, in the new one, which it superseded; the old one is presumed to have been accepted.

    Source: Notes, ch. 19 — Architecture Decisions

  186. Recall concept · cap-20 ●○○

    How does the risk matrix work?

    Reveal answer

    Multiply impact (1–3) by likelihood (1–3): 1–2 is low, 3–4 medium, 6–9 high.

    Source: Notes, ch. 20 — Analyzing Architecture Risk

  187. Multiple choice relationship · cap-20 ●●○

    A risk has high impact and medium likelihood. What is its score?

  188. Recall concept · cap-20 ●●○

    How is a risk assessment organized?

    Reveal answer

    A table of criteria (e.g. scalability, availability) by domain, with totals per row and column; you can show only the high risks and indicate the trend with +/− or arrows.

    Source: Notes, ch. 20 — Analyzing Architecture Risk

  189. Recall concept · cap-20 ●●○

    What is risk storming, and what are its steps?

    Reveal answer

    A collaborative exercise to identify risks with other architects and developers, first individually and then as a group; steps: identification, consensus and mitigation.

    Source: Notes, ch. 20 — Analyzing Architecture Risk

  190. Recall relationship · cap-20 ●●○

    Why should each risk storming session deal with a single criterion?

    Reveal answer

    To keep focus (e.g. only performance) and avoid mixing different risk dimensions in the same discussion.

    Source: Notes, ch. 20 — Analyzing Architecture Risk

  191. Recall relationship · cap-20 ●●○

    What risk score is given to an unknown or untested technology?

    Reveal answer

    Always the maximum, 9.

    Source: Notes, ch. 20 — Analyzing Architecture Risk

  192. Recall relationship · cap-20 ●●●

    Why does the mitigation step involve a stakeholder?

    Reveal answer

    Because someone from the business needs to say what cost makes sense for each mitigation; alternatives, sometimes less effective, are negotiated until the cost is acceptable.

    Source: Notes, ch. 20 — Analyzing Architecture Risk

  193. Recall relationship · cap-20 ●●●

    In the nurse diagnostics system, all types of user used the same API, exposing controlled data. How was the risk mitigated?

    Reveal answer

    By separating API gateways by user type (admin, nurse, self-service), making access and security more granular.

    Source: Notes, ch. 20 — Analyzing Architecture Risk

  194. Recall relationship · cap-20 ●●●

    In the risk storming example of the nurse diagnostics system, how was the risk of a demand surge during flu season handled?

    Reveal answer

    With queues in front of the diagnostics engine and an outbreak cache, since the interface wouldn't withstand many requests per second.

    Source: Notes, ch. 20 — Analyzing Architecture Risk

  195. True or false relationship · cap-20 ●○○

    Risk storming is done once, at the start of the project.

  196. Recall concept · cap-21 ●○○

    What principle always applies when presenting parts of an architecture?

    Reveal answer

    Present them in the context of the whole system.

    Source: Notes, ch. 21 — Diagramming and Presenting Architecture

  197. Recall concept · cap-21 ●●○

    What features should a good diagramming tool have?

    Reveal answer

    Layers (show and hide parts), templates (a library of components) and magnets (straight, connected lines).

    Source: Notes, ch. 21 — Diagramming and Presenting Architecture

  198. True or false relationship · cap-21 ●○○

    It is worth keeping a diagram even when outdated, if it took a lot of work to make.

  199. Recall concept · cap-21 ●●○

    What are the four levels of the C4 model?

    Reveal answer

    Context (system, users and external systems), container (physical deployment boundaries), component and class.

    Source: Notes, ch. 21 — Diagramming and Presenting Architecture

  200. Recall relationship · cap-21 ●●●

    What is C4's main shortcoming?

    Reveal answer

    It is better suited to monolithic architectures than to distributed ones, such as microservices.

    Source: Notes, ch. 21 — Diagramming and Presenting Architecture

  201. Multiple choice relationship · cap-21 ●●○

    Which open source diagramming standard covers architectures across business domains and tries to be simple?

  202. Recall concept · cap-21 ●●○

    What line convention does ch. 21 suggest?

    Reveal answer

    Solid lines for synchronous communication and dotted lines for asynchronous, with arrows when the direction matters.

    Source: Notes, ch. 21 — Diagramming and Presenting Architecture

  203. Recall detail · cap-21 ●●●

    What shape convention is common in architecture diagrams?

    Reveal answer

    There is no formal standard, but 3D elements usually indicate deployable artifacts and rectangles indicate containment; a key resolves ambiguity.

    Source: Notes, ch. 21 — Diagramming and Presenting Architecture

  204. Recall concept · cap-21 ●●○

    What is the central difference between a presentation and a reading?

    Reveal answer

    In a presentation the presenter controls the flow of ideas; so time should be organized by ideas, not by slides, using transitions to mark topics.

    Source: Notes, ch. 21 — Diagramming and Presenting Architecture

  205. Recall concept · cap-21 ●●○

    What are incremental builds in slides?

    Reveal answer

    Revealing information gradually, as the idea is developed, instead of a wall of text the audience reads before the talk.

    Source: Notes, ch. 21 — Diagramming and Presenting Architecture

  206. Recall concept · cap-21 ●●○

    What is the difference between an infodeck and a presentation?

    Reveal answer

    An infodeck is made to be read, not presented: it needs to be more complete, without animations or dependence on the talk.

    Source: Notes, ch. 21 — Diagramming and Presenting Architecture

  207. Recall relationship · cap-21 ●●●

    What is a blank slide for in a presentation?

    Reveal answer

    To take the focus off the screen and put it on the presenter, emphasizing the spoken part (invisibility).

    Source: Notes, ch. 21 — Diagramming and Presenting Architecture

  208. Recall concept · cap-22 ●○○

    What are the three architect personalities described in ch. 22?

    Reveal answer

    Control freak, armchair and effective.

    Source: Notes, ch. 22 — Making Teams Effective

  209. Recall concept · cap-22 ●●○

    What characterizes the control freak architect?

    Reveal answer

    Tries to control every detail — names, technologies, everything — and ends up doing the developers' work.

    Source: Notes, ch. 22 — Making Teams Effective

  210. Recall concept · cap-22 ●●○

    What characterizes the armchair architect?

    Reveal answer

    Doesn't get involved in the implementation or guide the team: only draws diagrams, and the developers end up taking on the architect's role.

    Source: Notes, ch. 22 — Making Teams Effective

  211. Recall concept · cap-22 ●●○

    Which factors determine how much control the architect should exercise?

    Reveal answer

    Team familiarity, team size, overall experience, project complexity and project duration.

    Source: Notes, ch. 22 — Making Teams Effective

  212. Recall relationship · cap-22 ●●●

    A team of 12 people, mostly junior, on a highly complex 6-month project, but who already know each other well. More or less control?

    Reveal answer

    More control: large size, inexperience and complexity call for control; familiarity and moderate duration pull toward less, but the balance tips toward control.

    Source: Notes, ch. 22 — Making Teams Effective

  213. Recall relationship · cap-22 ●●●

    Why do short projects call for less control and long projects for the architect's attention?

    Reveal answer

    Short projects have no time for formalities and it's better to let the team be free; in long ones, the architect helps the team not lose its sense of urgency.

    Source: Notes, ch. 22 — Making Teams Effective

  214. Recall concept · cap-22 ●●○

    What is process loss, and how do you identify it?

    Reveal answer

    The difference between the team's theoretical maximum productivity and its real productivity (Brooks's Law); many merge conflicts are a sign, and parallelizing tasks helps.

    Source: Notes, ch. 22 — Making Teams Effective

  215. Recall concept · cap-22 ●●○

    What is pluralistic ignorance?

    Reveal answer

    In a large team, people don't object to a decision for fear of having missed something the others seem to have seen; the architect should avoid acceptance by inertia.

    Source: Notes, ch. 22 — Making Teams Effective

  216. Recall concept · cap-22 ●●○

    What sign indicates diffusion of responsibility?

    Reveal answer

    Uncertainty about who does what and dropped tasks — a sign of a team that is too large.

    Source: Notes, ch. 22 — Making Teams Effective

  217. Recall relationship · cap-22 ●●●

    In a 15-person meeting, everyone agrees with a risky proposal and, afterwards, several confess they had doubts. What phenomenon is this?

    Reveal answer

    Pluralistic ignorance: each assumed the others understood something they didn't see, and nobody objected.

    Source: Notes, ch. 22 — Making Teams Effective

  218. Recall concept · cap-22 ●●○

    What rules does the book give for checklists?

    Reveal answer

    Independent items, nothing trivial or already done well, the smallest size possible with the necessary steps, and nothing that can be automated.

    Source: Notes, ch. 22 — Making Teams Effective

  219. Recall concept · cap-22 ●●○

    What is the Hawthorne effect, and how does it help with checklists?

    Reveal answer

    People act differently when they know they may be observed; announcing that checklists will be checked reduces items ticked without being done.

    Source: Notes, ch. 22 — Making Teams Effective

  220. Recall detail · cap-22 ●●○

    What are the three useful checklists cited?

    Reveal answer

    Developer code completion (definition of "done"), unit and functional testing (edge cases) and software release (each deployment failure becomes an item).

    Source: Notes, ch. 22 — Making Teams Effective

  221. Recall relationship · cap-22 ●●●

    Which library decisions should go through the architect?

    Reveal answer

    The most general ones, such as frameworks and general libraries; specific libraries (e.g. a PDF reader) can be left to the developers.

    Source: Notes, ch. 22 — Making Teams Effective

  222. Recall concept · cap-23 ●●○

    How do you deal with a stakeholder who says they want "zero downtime"?

    Reveal answer

    Understand that it means availability is critical; clarify with data what each level implies, leave cost and time as the last argument and divide and conquer, qualifying requirements by part of the system.

    Source: Notes, ch. 23 — Negotiation and Leadership Skills

  223. Recall relationship · cap-23 ●●●

    Why should cost and time be the last argument in a negotiation with stakeholders?

    Reveal answer

    Because, if they come first, they end the discussion before the merits are discussed; the other justifications should come first.

    Source: Notes, ch. 23 — Negotiation and Leadership Skills

  224. Recall concept · cap-23 ●●○

    How do you resolve a technical deadlock between architects (e.g. asynchronous vs. REST)?

    Reveal answer

    Demonstration beats discussion: run an experiment, ideally in a production-like environment; avoid appealing to hierarchy and heated arguments.

    Source: Notes, ch. 23 — Negotiation and Leadership Skills

  225. Recall concept · cap-23 ●●○

    How should the architect negotiate with developers?

    Reveal answer

    Justify and argue instead of dictating, seeking for the developer to reach the conclusion themselves; if they disagree, the developer should be able to defend their choice.

    Source: Notes, ch. 23 — Negotiation and Leadership Skills

  226. Recall concept · cap-23 ●●○

    What is the difference between essential and accidental complexity?

    Reveal answer

    Essential complexity is inherent to the problem; accidental complexity is created unnecessarily by the solution and should be avoided at all costs.

    Source: Notes, ch. 23 — Negotiation and Leadership Skills

  227. Recall concept · cap-23 ●○○

    What are the 4 Cs of architecture?

    Reveal answer

    Communication, collaboration, clarity and conciseness.

    Source: Notes, ch. 23 — Negotiation and Leadership Skills

  228. Recall relationship · cap-23 ●●○

    What does being pragmatic, yet visionary, mean?

    Reveal answer

    Planning for the future without abandoning present practicality, respecting budget, time, technical limitations and the team's skills.

    Source: Notes, ch. 23 — Negotiation and Leadership Skills

  229. Recall relationship · cap-23 ●●○

    Where does the architect's leadership come from, according to ch. 23?

    Reveal answer

    Not from the title, but from example: treating every problem as a people problem, seeking collaborative solutions, avoiding imperatives and becoming the team's go-to person.

    Source: Notes, ch. 23 — Negotiation and Leadership Skills

  230. Recall relationship · cap-23 ●●○

    How should the architect deal with meetings?

    Reveal answer

    Decline unnecessary ones (notes are enough to stay informed), call as few as possible — weighing whether it's worth more than the developers' work — and be strict about agenda and time.

    Source: Notes, ch. 23 — Negotiation and Leadership Skills

  231. Recall concept · cap-24 ●○○

    What is the 20-minute rule?

    Reveal answer

    Spending at least 20 minutes a day learning something new, preferably at the start of the day, when there are fewer interruptions.

    Source: Notes, ch. 24 — Developing a Career Path

  232. Recall concept · cap-24 ●●○

    What is a personal technology radar for?

    Reveal answer

    For keeping track of trends without committing too much to any technology; it is inspired by ThoughtWorks' Technology Radar (what is growing, shrinking, mature or speculative).

    Source: Notes, ch. 24 — Developing a Career Path

  233. Recall relationship · cap-24 ●●○

    Why does the book recommend social media for the architect?

    Reveal answer

    Because it broadens technical breadth and because new opportunities often come from acquaintances outside one's closest circle.

    Source: Notes, ch. 24 — Developing a Career Path

  234. Recall concept · cap-24 ●○○

    What is the book's final advice for improving as an architect?

    Reveal answer

    Practice: designing real architectures is indispensable.

    Source: Notes, ch. 24 — Developing a Career Path

See all questions (234)

Transparency note AI was used in this post for: generating the study questions · creating the English version