In the four previous lessons you have seen how others reason: Marta, Germán, Aitana, and Óscar. This lesson is different, because the work is yours. It contains six integrative exercises, of increasing difficulty, set in the companies of the module. Each one brings together topics from several modules of the course, and none has a single correct answer. You will design a microservices architecture, locate a bottleneck from a set of measurements, secure a system with sensitive data, size a campaign, write an ADR, and design a complete system. Architecture is learned by deciding, and by making mistakes where making mistakes costs nothing.
A word of caution: exercise 3 deals with personal data. In a real system, the security and data protection measures must be reviewed with security and compliance professionals. All the companies and figures are fictitious.
How to Work Through These Exercises
Use the module's method as a guide: requirements and scope, quality attributes, scale estimates, high-level design, data and stores, critical points, failures and trade-offs, and evolution. Not every exercise asks for all eight steps, but in all of them it pays to start with the first three.
| Exercise | Difficulty | Suggested time | Modules it reviews |
|---|---|---|---|
| 1. Microservices | Medium | 60 minutes | 2, 3, and 4 |
| 2. Slow application | Medium | 40 minutes | 4 and 6 |
| 3. Security | Medium | 50 minutes | 5 |
| 4. Capacity and costs | Medium | 40 minutes | 4 and 6 |
| 5. ADR | High | 45 minutes | 1 and 3 |
| 6. New system | High | 90 minutes | All |
Work on paper or in a text file, and write your complete solution before reading the course's. Then score it with this rubric, from 0 to 2 on each criterion: 0 if it is missing, 1 if it is half done, and 2 if it is complete.
| Criterion | Question |
|---|---|
| Scope | Have you written down what is left out? |
| Numbers | Have you calculated in plain sight, and separated the data from the assumptions? |
| Quality | Can your quality attributes be measured, and are they ordered by priority? |
| Coherence | Does each piece of the design answer to a figure or a scenario? |
| Failures and trade-offs | Have you said what happens when each piece fails, and what you have sacrificed? |
| Decision | Have you noted the discarded alternatives, and when the decision should be reviewed? |
With 10 points or more, your solution is solid, even if it does not match the course's. Between 7 and 9, review the weak criteria. With fewer than 7, do it again before moving on. The useful comparison is not whether you chose the same pieces, but whether you can defend yours.
Exercises
Exercise 1: Microservices for an E-Commerce System
Problem. Jardinalia is a chain of garden centers with an online store. It receives 140,000 orders a month, with peaks of 9,000 simultaneous users. It has 52 developers in 5 teams: users, catalog, cart, payments, and orders. Its monolith is deployed once a week, and each team waits for the others. Management has decided to split it into five services, one per team.
Requirements. Each team must deploy without coordinating. If the catalog goes down, whoever has products in their cart must be able to pay. If the external payment gateway fails, no cart must be lost. Nobody must pay for a product that is out of stock, or pay twice.
Deliverable. A diagram of the services, with their data stores. A table of the communication between them, synchronous or asynchronous. The path of a purchase. And a table of failures.
Hints. Decide which service the stock lives in, and why. Remember Rutalia's saga. Think about which catalog data the cart needs to copy.
Exercise 2: A Slow Application
Problem. The stores complain about the “My shipments” page of Rutalia's portal, which is still part of Central. The target is a 95th percentile under 800 ms. These are the measurements:
| Measure | Value |
|---|---|
| 95th percentile, and median | 4.2 s and 2.9 s |
| Load at the peak hour | 60 requests per second |
| Application servers | 2, with the processor at 35% |
| Database | Processor at 92% |
| Listing query | 1,900 ms. It scans the shipments table, of 45 million rows, filters by customer_id, and sorts by date |
| Status queries | 50 per request, one for each shipment in the listing. 14 ms each |
| Page generation | 180 ms |
| Network and other | 120 ms |
| Usage pattern | 70% of the requests are reloads of the same page, within a minute |
Requirements. The team proposes adding a third application server. Assess that proposal, locate the bottleneck, propose improvements, and quantify the expected result of each one.
Deliverable. An ordered list of improvements, with the estimated time after each one, calculated in Python.
Hints. Add up what the database does on each request. Assume that, with a suitable index, the listing takes 25 ms, and that a query that fetches the 50 statuses takes 18 ms.
Exercise 3: Security With Sensitive Data
Problem. Rutalia is going to rebuild the mobile app for its 900 couriers. Every morning, the app downloads the route's deliveries: name, address, and phone number of each recipient. On each delivery it collects the signature and the ID document number of whoever receives it, and a photo of the package. That is 120,000 deliveries a day, and the proof of delivery is kept for a year.
Requirements. A lost phone must not expose data. A courier must only see the deliveries of their route for the day. A proof of delivery must not be alterable. And nothing must be lost if a data center fails.
Deliverable. A brief threat model, with six threats and their treatment. And the decisions on authentication and authorization, encryption, network, and backups.
Hints. Use the STRIDE categories from Module 5. Think about what data the phone really needs, and for how long.
Exercise 4: Capacity and Costs of a Campaign
Problem. Andrés expects the 2028 spring campaign to grow by 40%: from 1,260 to about 1,800 simultaneous users at the peak. Lucía has prepared the profile of a campaign month:
| Level | Simultaneous users | Hours per month |
|---|---|---|
| Peak | 1,800 | 30 |
| High | 1,300 | 180 |
| Medium | 900 | 320 |
| Low | 400 | 200 |
Verdalia's data: each user generates 0.12 requests per second. A replica serves 20 requests per second with the processor at 60%, and costs €0.055 per hour. The service keeps between 2 and 10 replicas. Each replica opens 12 connections to the database, and the alert fires at 160. The rest of the infrastructure costs €335 a month.
Requirements. Calculate the replicas for each level, the cost of the month, and what it would cost to keep the peak capacity all month long. Check whether the current configuration can handle the campaign.
Deliverable. A Python program, its output, and a list of changes to make before March.
Hints. The desired_replicas function from Module 6 and the servers_needed function from Module 4 do similar calculations. Look at every limit, not just the store's.
Exercise 5: A Complete ADR
Problem. On Monday, November 1, 2027, a public holiday, the “Plant of the Month” scheduled job started renewing the 640 active subscriptions, at €19.90 each. The job is a loop: for each subscription it charges, creates the order, and enqueues the email. At subscription 388, a connection dropout with PagoRaíz stopped it. On Tuesday, Íker launched it again, from the beginning. Nobody paid twice, thanks to the idempotency key SUB-<id>-2027-11. But 14 duplicate orders were created, and Íker spent 3 hours working out the status of each subscription.
The team is torn between two options. Íker proposes publishing one message per renewal on the managed queue service, the one from ADR-004. Lucía proposes a renewals table in PostgreSQL, working as a queue.
Requirements. It must be possible to resume the job where it stopped. Declined renewals, for example because of an expired card, are retried after 3 and after 7 days. Carmen must see the status of each renewal in the panel.
Deliverable. An ADR with the course's template: status, date, participants, context, options considered, decision, consequences, and review conditions.
Hints. Ask yourself where the state of a renewal lives in each option. Remember the outbox pattern. ADR-004 chose the queue for emails: reason out what is different here.
Exercise 6: A New System, With the Eight Steps
Problem. Rutalia wants the recipient to choose when they receive their package. When a shipment is registered, the recipient receives a link. With it they can choose a 2-hour slot, between 8:00 a.m. and 8:00 p.m., on any of the next 5 days, and change it until 10:00 p.m. the day before. Each route admits 12 deliveries per slot. Rutalia delivers 120,000 shipments a day, 310,000 during the campaign, with 1,400 routes. It is estimated that 35% of recipients will choose a slot, and that 40% will do so between 8:00 p.m. and 10:00 p.m.
Requirements. No slot must exceed its capacity. If the system does not work, the packages must still be delivered.
Deliverable. The eight steps of the method, with a diagram, the service level objectives, and a recovery plan.
Hints. Calculate the scale before choosing technologies. Remember Verdalia's last olive tree. Decide whether it is a new service or one more function of Central.
Solutions
The solutions are a reasoned answer, not the only one. Each one states its trade-offs and the defensible alternatives.
Solution to Exercise 1
flowchart TB
customers(["Customers"])
gateway["API gateway"]
users["user-service"]
catalog["catalog-service"]
cart["cart-service"]
orders["order-service, with the stock"]
payments["payment-service"]
bus["Event bus"]
psp[["Payment gateway"]]
dbu[("Relational")]
dbc[("Relational, search engine, and cache")]
dbk[("Key-value")]
dbo[("Relational")]
dbp[("Relational")]
customers --> gateway
gateway --> users --> dbu
gateway --> catalog --> dbc
gateway --> cart --> dbk
gateway --> orders --> dbo
orders -->|"Synchronous, with idempotency key"| payments --> dbp
payments --> psp
cart -.->|"Synchronous, with a local copy of the price"| catalog
orders --> bus
catalog --> bus
bus -.-> cart
bus -.-> users
| Decision | Reasoning |
|---|---|
| The stock lives in the order service | Reserving and creating the order must be a local transaction. Separating them would force a saga on the most delicate operation |
| The cart copies name and price when a product is added | If the catalog goes down, the cart can still be displayed. The price is revalidated on confirmation |
The catalog publishes price.changed, and the cart consumes it |
The cart is updated without asking on every read |
| Orders calls payments synchronously | The customer waits for the result of the charge. With a timeout, retries, and the same idempotency key |
| Emails, history, and statistics, through events | Nobody waits for their result |
The purchase is a saga orchestrated by the order service: reserve stock and create the order, in a local transaction; charge; and confirm. If the charge is declined, the compensation releases the reservation. The cart is emptied on receiving the order.confirmed event.
| If this fails... | What happens |
|---|---|
| The catalog | Browsing is not possible. The cart and the payment work, with the copied data |
| The cart | Nothing can be added or paid for. It is a replicated key-value store: its outages should be rare |
| The payment gateway | The order stays pending, the reservation expires, and the cart is kept |
| The event bus | Purchases carry on. The events wait in the outbox |
Trade-offs: the cart's price can be a few seconds behind, there are five databases to operate, and following a purchase requires distributed traces. Defensible alternatives: merging payments and orders into one service, if the payments team is small; or leaving the stock in the catalog, accepting one more saga. What is not defensible is the five services sharing one database.
Solution to Exercise 2
# Measured breakdown of a median "My shipments" request, in milliseconds
MEASURED = {"listing": 1900, "statuses, 50 queries": 700, "page": 180, "network and other": 120}
TARGET = 800
def report(title, times):
total = sum(times.values())
largest = max(times, key=times.get)
print(f"{title:34}{total:>6.0f} ms largest share: {largest} ({times[largest] / total:.0%})")
return total
initial = report("Initial situation", MEASURED)
# Proposal A: a third application server. It changes the time of no stage
report("A. Third application server", MEASURED)
# Proposal B: composite index on (customer_id, date)
with_index = dict(MEASURED, listing=25)
report("B. Composite index", with_index)
# Proposal C: in addition, the 50 statuses in a single query
without_n_plus_1 = dict(with_index, **{"statuses, 50 queries": 18})
optimized = report("C. And one query for the statuses", without_n_plus_1)
# Proposal D: in addition, a 60-second cache. 70% of the requests are reloads
HITS, MS_PER_HIT = 0.70, 15 + MEASURED["network and other"]
average_with_cache = HITS * MS_PER_HIT + (1 - HITS) * optimized
print(f"{'D. And a 60-second cache':34}{average_with_cache:>6.0f} ms on average")
print(f"Improvement of C: {initial / optimized:.1f} times. Meets the target: {optimized < TARGET}")
queries_before = 60 * 51
queries_after = 60 * (1 - HITS) * 2
print(f"Queries per second to the database: from {queries_before} to {queries_after:.0f}")Output:
Initial situation 2900 ms largest share: listing (66%) A. Third application server 2900 ms largest share: listing (66%) B. Composite index 1025 ms largest share: statuses, 50 queries (68%) C. And one query for the statuses 343 ms largest share: page (52%) D. And a 60-second cache 197 ms on average Improvement of C: 8.5 times. Meets the target: True Queries per second to the database: from 3060 to 36
- The bottleneck is the database. It accounts for 2,600 of the 2,900 ms, and it is at 92%. The application servers are at 35%: a third one improves nothing. Load balancing distributes the load of what can be distributed, and here everything converges on a single database.
- The order of the improvements is the order of cost. The index is one line. Removing the 50 queries, the “N+1” problem from Module 4, is a small code change. With both, the target is met.
- The bottleneck moves. After each improvement, the largest share of the time is in a different stage. That is why you measure again after every change.
- The cache is optional. It reduces the load, from 3,060 queries per second to 36, but a store may see a status a minute late. It is a business decision, and it requires invalidating or accepting the delay.
- The estimate speaks of the median. The target is the 95th percentile, which has to be measured after the change. If the slowness of the tail was due to the saturation of the database, it will improve even more than the median.
A valid alternative is to send this page to a read replica. It relieves the primary, but the query would still take 1,900 ms: a replica distributes the load, and does not fix a badly solved query.
Solution to Exercise 3
| Threat | Category | Treatment |
|---|---|---|
| Someone logs in with a courier's stolen password | Spoofing | Second factor. Session tied to the registered phone |
| A proof of delivery that has already been submitted is modified | Tampering | Proofs are append-only. Each one stores a cryptographic digest, and the store prevents overwriting |
| A courier denies having made a delivery | Repudiation | Audit log with identity, time, and location |
| A lost phone, with 80 addresses and phone numbers | Information disclosure | Device encryption, remote lock and wipe. Only the day's route is downloaded, and it is deleted when finished |
| A courier changes the identifier in the request and sees deliveries from another route | Disclosure and elevation of privilege | The server checks, on every request, that the delivery belongs to their route for today |
| A flood of requests blocks the API at 8:00 a.m. | Denial of service | Rate limit at the API gateway. The app works offline and synchronizes later |
| Area | Decisions |
|---|---|
| Authentication | Login with OpenID Connect and a second factor, at the start of the shift. 15-minute tokens, with renewal tied to the device |
| Authorization | Roles: courier, traffic_manager, customer_support, and auditor. And an attribute-based rule: the delivery must belong to the courier's route, and to today |
| Data | The recipient's phone number is not shown: the call goes through a switchboard. Field-level encryption for the ID document and the signature. Deletion when the year is up. Logs without personal data |
| Transit and network | TLS on every connection. Services in private subnets, with default deny and authenticated internal calls. Administration only via VPN |
| Backups | Point-in-time recovery. Encrypted backups in another region, with a 30-day deletion lock, and a tested restore every month |
Trade-offs: the daily second factor inconveniences 900 people, and offline mode forces data to be stored on the phone, which is what was meant to be avoided. The answer is minimization: the best-protected data is the data that is not there. Defensible alternative: passkeys tied to the device, instead of a password and a second factor. Common mistake: checking permissions in the mobile app, which is in the user's hands, and not on the server.
Solution to Exercise 4
import math
REQUESTS_PER_USER = 0.12 # per second
REQUESTS_PER_REPLICA = 20 # per second, with the processor at 60%
EUROS_PER_REPLICA_HOUR = 0.055
MIN_REPLICAS, MAX_REPLICAS = 2, 10
CONNECTIONS_PER_REPLICA = 4 * 3 # 4 processes, with 3 connections each
CONNECTION_ALERT = 160
FIXED_COST = 335 # everything that is not store replicas
# A campaign month: simultaneous users, and hours per month at each level
PROFILE = [("Peak", 1_800, 30), ("High", 1_300, 180), ("Medium", 900, 320), ("Low", 400, 200)]
def replicas(users):
load = users * REQUESTS_PER_USER
return max(MIN_REPLICAS, math.ceil(load / REQUESTS_PER_REPLICA))
print(f"{'Level':8}{'Users':>9}{'Hours':>7}{'Req/s':>7}{'Replicas':>10}{'Connections':>12}{'Euros':>8}")
replica_hours = 0
for level, users, hours in PROFILE:
n = replicas(users)
replica_hours += n * hours
print(f"{level:8}{users:>9}{hours:>7}{users * REQUESTS_PER_USER:>7.0f}{n:>10}"
f"{n * CONNECTIONS_PER_REPLICA:>12}{n * hours * EUROS_PER_REPLICA_HOUR:>8.0f}")
month_hours = sum(hours for _, _, hours in PROFILE)
compute = replica_hours * EUROS_PER_REPLICA_HOUR
peak = replicas(1_800)
print(f"Average replicas: {replica_hours / month_hours:.1f}")
print(f"With autoscaling: €{compute:.0f} of compute. Month total: €{FIXED_COST + compute:.0f}")
always = peak * month_hours * EUROS_PER_REPLICA_HOUR
print(f"With {peak} replicas all month: €{always:.0f} of compute. Total: €{FIXED_COST + always:.0f}")
print(f"The peak asks for {peak} replicas, and the configured maximum is {MAX_REPLICAS}")
print(f"With {MAX_REPLICAS} replicas, each one would work at "
f"{0.60 * 1_800 * REQUESTS_PER_USER / (MAX_REPLICAS * REQUESTS_PER_REPLICA):.0%}")
print(f"Maximum replicas without a connection alert: {CONNECTION_ALERT // CONNECTIONS_PER_REPLICA}")Output:
Level Users Hours Req/s Replicas Connections Euros Peak 1800 30 216 11 132 18 High 1300 180 156 8 96 79 Medium 900 320 108 6 72 106 Low 400 200 48 3 36 33 Average replicas: 5.9 With autoscaling: €236 of compute. Month total: €571 With 11 replicas all month: €442 of compute. Total: €777 The peak asks for 11 replicas, and the configured maximum is 10 With 10 replicas, each one would work at 65% Maximum replicas without a connection alert: 13
- The current configuration does not handle the peak with margin. 11 replicas are needed, and the maximum is 10. With 10, each one would work at 65%, and the failure of a single one would take them to 72%.
- The next limit is the database. With 13 replicas you reach 156 connections, on the edge of the alert. Beyond that, a connection pooler in front of PostgreSQL is needed, or fewer connections per process.
- The peak costs €18. It is 30 hours a month. Autoscaling saves €206 compared to keeping 11 replicas.
- The campaign month would cost €571, against the €512 forecast for 2027. With three campaign months and nine at €423, the annual average would be €460: within the €500 target.
Changes before March: raise the maximum to 13 replicas, with an ADR that reviews ADR-011; repeat the load test with 1,800 users; raise the minimum by hand before each email campaign, because the autoscaler reacts, and does not anticipate; and adjust the spending alert. Trade-off: the connection margin is running out, and the next campaign will require touching the data layer. Common mistake: sizing the store and forgetting what is behind it.
Solution to Exercise 5
ADR-015: Keep the “Plant of the Month” renewals in a PostgreSQL table that acts as a work list, rather than in the message queue
Status: Accepted.
Date: 2027-11-03
Participants: Marta decides; Íker, Lucía, and Carmen consulted; Andrés informed.
Context
The monthly renewal is a loop that charges, creates the order, and enqueues the email for each subscription. On November 1 it stopped at subscription 388 of 640. When relaunched it created 14 duplicate orders, and reconstructing the state took 3 hours. The state of each renewal is not written down anywhere. It must be possible to resume, to retry after 3 and after 7 days, and to check the status from the panel. It affects scenario QS-3.
Options considered
- A. One message per renewal, on the managed queue. Reuses what exists, with retries and a dead-letter queue. But the state would live in two places, the queue and the database. Publishing 640 messages and recording that they have been published is a dual write, which requires an outbox: that is, a table. A queue does not answer “which renewals are pending,” nor does it schedule a retry in 7 days.
- B. A
renewalstable, as a work list. One row per subscription and period, with a unique key, status, attempts, and the date of the next attempt. The state is queryable and transactional. It requires polling the table, and it does not work for high volumes.- C. Keep the loop, with a progress file. The cheapest. It solves neither the retries nor the query.
Decision
We adopt option B. The job on the 1st inserts one row per active subscription. The unique key on subscription and period prevents duplicates. A process takes the pending rows with
SELECT ... FOR UPDATE SKIP LOCKED, charges with the keySUB-<id>-<period>and, in a single transaction, creates the order and marks the row. The charge is made outside the transaction. The email keeps traveling through the queue, as ADR-004 decided.Consequences
Positive: the job resumes on its own; the order and the status change together; Carmen queries a table; there is no new infrastructure.
Negative: the process polls the table every minute; the table grows, and has to be archived.
Risks: that the table gets used as a general-purpose queue for other jobs. Mitigated by limiting this decision to renewals.
Review conditions
More than 20,000 renewals a month, the need to renew in under an hour, or another system having to react to renewals.
What sets this case apart from ADR-004 is the state. An email is a job that gets done and forgotten, and the queue is its place. A renewal is a piece of business data, with a history, that someone looks up. The SKIP LOCKED clause makes sure that two processes do not take the same row: the second one skips the locked ones. An ADR that chose the queue, with an outbox and a status table, would be just as valid if the volume were a hundred times higher. Common mistake: writing up the discarded options so that they look absurd. A good ADR gives each option its best argument.
Solution to Exercise 6
| Step | Result |
|---|---|
| 1. Requirements and scope | In: see the free slots, reserve, change, and cancel. Out: charging for the slot, choosing the courier, and replanning routes in real time |
| 2. Quality attributes | Consistency: no slot with more than 12 deliveries. Availability: 99.9%. Isolation: its outage does not stop the deliveries |
| 3. Scale | 310,000 × 0.35 = 108,500 reservations a day during the campaign. 40% in 2 hours: 43,400 / 7,200 = 6 per second. With 10 availability queries per reservation, 60 reads per second. 1,400 routes × 6 slots × 5 days = 42,000 live slots. About 5 GB a year |
| 4. High level | A new service, slots-service, behind the facade, with its own database and communication through events |
| 5. Data | A relational database. Tables slots(id, route, day, hour, available) and reservations(shipment_id, slot_id), with shipment_id as a unique key |
| 6. Critical point | The reservation: UPDATE slots SET available = available - 1 WHERE id = ... AND available >= 1, and the insertion of the reservation, in one transaction. Changing slots releases one and reserves another, in the same transaction |
| 7. Failures and trade-offs | If the service goes down, the shipment is delivered without a slot, as today. The displayed availability may be a few seconds behind. The reservation, never |
| 8. Evolution | An ADR: a new service, and not a function of Central. Review if reservations exceed 50 per second |
flowchart LR
recipient(["Recipient"])
facade["Facade"]
slots["slots-service"]
db[("Own database")]
bus["Event bus"]
intake["intake-service"]
routing["Routing"]
alerts["alerts-service"]
recipient --> facade --> slots --> db
intake -->|"shipment.created"| bus
routing -->|"route.planned"| bus
bus --> slots
slots -->|"slot.reserved"| bus
bus --> alerts
bus --> routing
The scale decides the design: 6 writes per second fit in a modest relational database. No partitions are needed, nor a specialized store, nor a complex cache. The difficulty is correctness, and it is solved with the same statement that prevented selling the last olive tree twice.
| Service level objective | Indicator | Target over 30 days |
|---|---|---|
| Availability | Reservation requests without a server error | 99.9% |
| Latency | Reservations answered in under 500 ms | 95% |
| Correctness | Slots with more deliveries than their capacity | 0 |
| Freshness | Reservations that reach Routing in under 1 minute | 99% |
| Recovery plan | Decision |
|---|---|
| Recovery point objective, or RPO | 5 minutes, with point-in-time recovery |
| Recovery time objective, or RTO | 1 hour |
| Backups | Encrypted, in another region, with a tested restore every month |
| Degradation | Without the service, the link shows a notice and the shipment follows the normal route |
| Reconciliation | A nightly process compares the reservations with what Routing has planned |
| Drill | Every six months, with a complete outage of the service |
Defensible alternatives: handing out 10% more than the capacity of each slot, because some reservations get changed; or reserving in memory, with an atomic counter, and persisting afterward, if the scale were a hundred times higher. Common mistake: starting with the technology. Whoever starts with “we will use a cache cluster” has not calculated that it is 6 reservations per second.
Common Mistakes and Tips
- Reading the solution before writing your own. Recognizing a good answer is much easier than producing one, and it gives false confidence.
- Looking for the correct answer. There are better and worse justified solutions. The one that is no good is the one that cannot be defended.
- Skipping the numbers. In all six exercises, one figure changed the design: 6 reservations per second, 11 replicas, 2,600 ms in the database.
- Solving the problem you know. Adding a server, putting in a cache, or using a queue because it is already there.
- Forgetting the failure. A design is not finished until it says what happens when each piece goes down.
- Designing alone. Explain your solution to someone else, and ask them to look for the weak point.
- Practical tip. Repeat exercise 6 with a system you know from your job. It is the step from the course to practice.
Conclusion
In this lesson you have put the whole course into practice. You have drawn the boundaries of five services, and decided what communicates synchronously and what through events. You have located a bottleneck with measurements, and confirmed that adding servers does not fix a query. You have modeled the threats of an application with personal data. You have sized a campaign, and discovered that the limit was in a configuration maximum and in the database connections. You have written an ADR in which the simplest option was the best. And you have designed a new system, from the requirements to the recovery plan.
This lesson ends Module 7. You have learned an eight-step method, and you have seen it work on four systems. Verdalia is a store with three people, where availability and maintainability weigh most. Rutalia is a parcel delivery company with six teams, which is splitting its monolith piece by piece. Brotes is a social network that reads four hundred times for every write. And Savia Play is a video platform that moves 153.6 Gbit per second. All four use the same pieces, and in each one a different piece carries the weight. That is the conclusion of the module: there is no best architecture, only an architecture suited to a set of requirements, a set of numbers, and a team. Verdalia now has fifteen recorded decisions, and each one has written into it the condition that will make it expire.
Everything you have used so far is established practice: techniques with years of track record, which we know when they work and when they do not. But the discipline moves. At the Valencia meetup, Marta heard about service meshes, serverless functions that run next to the user, internal platforms for teams, and architectures whose rules check themselves. She does not yet know which ones are useful to her, and which are noise. Telling them apart is also part of the craft. That is how Module 8 begins, with the lesson “Current Trends.”
