Architecture decisions
19 questions in 5 subtopics.
Architecture decision records
You are a senior developer and your team decided to use Spring Data JPA with Flyway instead of MyBatis for a new service. Write down what an architecture decision record for this decision should contain.Two years after a team chose MongoDB for an order service, a new tech lead wants to move to PostgreSQL, and nobody remembers why MongoDB was chosen. How would ADRs have helped, and how do you handle the decision now?You are introducing ADRs across 30 teams. Many engineers see them as bureaucracy. How do you make the practice useful and lasting?As the most senior technical leader, how do you decide which architecture decisions must be made centrally and which teams should make themselves, and how do you record and communicate central decisions?Trade-off analysis
Your team needs to call a slow pricing service from a product page endpoint. Options are calling it synchronously, caching its responses, or listening to price change events. Compare them as you would in a design discussion.Your team must choose between a modular monolith and microservices for a new product with 8 engineers and an uncertain domain. How would you analyse the trade-offs?Two senior engineers strongly disagree on whether to use Kafka or a managed cloud queue for a new event backbone used by many teams. As the architect, how do you run the trade-off analysis so the decision is accepted?The executive team asks you to choose between speeding up feature delivery this year and investing in a platform rebuild that slows features for 12 months. How do you analyse and present the trade-off?Build vs buy
Your team needs a feature-flag system for a Spring Boot service. A teammate wants to write one in a day using a database table. What questions would you raise before agreeing?Your company needs a workflow engine for loan approvals with human tasks, timers and audit. Compare building on Spring State Machine and custom tables, using an open-source engine, or a managed service.Your platform team has built an internal API gateway, service registry and config server over eight years. Cloud-managed equivalents now exist. How would you decide what to keep and what to replace?As the most senior technical leader, how do you set a company-wide build vs buy policy so teams make consistent decisions?Technology selection
Your team wants to adopt Kotlin coroutines in a Java Spring Boot service. As a senior developer, how would you evaluate the proposal?Your service team must decide between Spring WebFlux and Spring MVC with virtual threads for a new high-concurrency API on Java 25. How would you decide?How would you set up a technology radar or similar process to guide technology choices across 40 Java teams?Your company has been a Java and Spring shop for 15 years. Some leaders want to move new development to another language for hiring and productivity reasons. As the senior technical leader, how do you evaluate this strategic bet?Evolutionary architecture
What are fitness functions in evolutionary architecture, and how would you implement two of them for a Spring Boot codebase?How would you design a large system so that its architecture can change over the next five years without big rewrites?Your architecture must support unknown future business models. As the senior technical leader, how do you balance building for flexibility against overengineering?No question matches these choices.