On Monday, December 20, 2027, at the last meeting of the year, Marta raised an uncomfortable question. The reservations Andrés had just signed last one year. Customers' addresses will still have to be protected ten years from now. What can be said today about what systems will look like then? In this lesson you will learn to reason about the future without pretending to know it: to tell the forces that drive change from the things that do not change, and to recognize the signal that shows a line of evolution has stopped being a promise. You will go through six lines, from real-time data to quantum computing. And you will see what Verdalia prepares for today, without betting on any of them.
A warning that applies to the whole lesson: almost everything that follows is forecast, not fact. Technology forecasts are often wrong, in both timing and direction. Here you will not find dates or market figures. You will find concepts, and the questions to judge them by when they arrive. The lesson also includes content on cryptography and regulation: in a real system, those decisions must be reviewed with security and compliance professionals.
How to Reason About the Future
Nobody knows which technology will dominate ten years from now. What we do know are the forces pushing things along, because they have been doing so for decades:
| Force | Where it pushes |
|---|---|
| The cost of compute and storage | What is expensive today gets cheaper, and things get done that did not pay off before. People's work does not get cheaper |
| Teams' scarce attention | People do not multiply at the pace of systems. Everything that can be delegated to a platform will be |
| Regulation | More obligations about where data is, how it is protected, and what a machine decides |
| Energy | Data center consumption is a physical and economic limit. Efficiency matters again |
| Security | Attacks are becoming automated. What is encrypted today must withstand tomorrow's machines |
And we know the things that do not change, because they do not depend on technology:
| Invariant | Why it will still hold |
|---|---|
| Everything is a trade-off | Improving one quality attribute worsens another. No technology has avoided it |
| Quality attributes | Availability, performance, security, maintainability, and cost will still be required, and measured |
| Coupling and cohesion | What changes together should live together. It applies to functions, to services, and to agents |
| The fallacies of distributed computing | The network will keep failing, being slow, and costing money, as you saw in Module 3 |
| Conway's law | Systems will keep resembling the organizations that build them |
| Data outlives code | An application gets rewritten in a year. Its data is inherited for decades |
This leads to a practical rule: invest in what does not change, and rent what does. A team that knows how to measure, decide, and record will adopt any technology well. A team that only masters one tool depends on that tool lasting.
For each line of evolution you will find the same profile: concepts, example, advantages, challenges, and adoption signal, which is the observable fact that would show the time has come. A signal is useful when it can be checked. “When it matures” is not a signal. “When my provider offers it as a managed service” is.
Real-Time Data and Data Mesh
In the lesson “Current Trends” we saw event streaming platforms as a trend being adopted. The forecast is that they will stop being a choice: that systems will be born publishing their facts, and that nightly batch processing will be the exception.
Data mesh takes the idea to the organization. It proposes that analytical data should not belong to a central team, but to each business domain, which publishes it as a product. It is microservices, applied to data.
| Aspect | Description |
|---|---|
| Key concepts | Event streams as the source of truth. Data as a product, with an owner, a contract, and measured quality. Ownership by domain. Self-service platform. Federated governance: common rules and local decisions |
| Example | At Rutalia, the tracking team publishes the event stream for each shipment, documented and versioned. Billing and the portal consume it, without asking anyone for anything |
| Advantages | Data arrives in seconds. Whoever knows the data is accountable for it. The central team's bottleneck disappears |
| Challenges | It requires many mature teams. The cost of the platform. Definitions diverge: what an “active customer” is in each domain |
| Adoption signal | Several teams wait weeks for a central data team to get to them. Or a business decision is made late because the data arrives the next day |
It is a reasonable forecast for large organizations, and a bad idea for small ones. Data mesh solves a people problem.
Increasingly Abstract Platforms
The history of infrastructure is a ladder of abstractions: own servers, virtual machines, containers, and functions. On each rung, the team sees less infrastructure and decides less about it. Verdalia climbed three rungs in a year. The forecast is that the ladder will continue: that teams will describe what the system must do and with what guarantees, and the platform will decide where and how it runs. The infrastructure disappears from view. It does not disappear.
WebAssembly, which we introduced as an early trend, is a candidate for the deployment unit of that stage. A module is smaller than a container, starts in milliseconds, runs isolated, and is the same on a server, at the edge, and in the browser.
| Aspect | Description |
|---|---|
| Key concepts | Serverless computing across the board, including for databases. Scaling to zero. Portable modules, with explicit permissions |
| Example | Savia Play runs signature validation on its CDN. With portable modules, the same function could run on either of its two providers, without rewriting it |
| Advantages | Less operations work. Cost proportional to usage. Less vendor lock-in, if the format is standard |
| Challenges | Less control, and harder debugging: what you cannot see you cannot inspect either. The platform's limits become the architecture's limits. State remains the hard problem |
| Adoption signal | The provider offers it as a managed service, with support and in the team's language. And there is a case of your own where startup time or isolation matters |
What does not change: someone is still responsible for the data, the permissions, and the configuration. It is the first row of the shared responsibility model, from Module 6.
Artificial Intelligence in Design and Operations
The previous lesson treated models as components of the system. What matters here is another use: models as a tool for whoever designs and operates. Part of this already exists. Its future reach is the most uncertain forecast in this lesson.
| Aspect | Description |
|---|---|
| Key concepts | Coding assistants, which propose, explain, and modify code. Architecture assistants, which draft diagrams and ADRs, or review a design. Assisted operations, or AIOps: alert correlation, anomaly detection, and diagnostic suggestions. Multi-agent systems, in which several agents with different roles collaborate on a task |
| Example | During an incident, an assistant gathers the related alerts, compares them with previous postmortems, and proposes three hypotheses. The on-call person decides |
| Advantages | Less repetitive work. Prototypes in hours. Knowledge that is more accessible to newcomers |
| Challenges | Code and designs that are plausible, and wrong. More code written than code understood. The risks from the previous lesson, inside the development process itself |
| Adoption signal | The team has automated tests and reviews that would catch a mistake, whoever writes it. Without that safety net, producing faster means getting things wrong faster |
| What changes in the architect's role | What does not change |
|---|---|
| Writing the first draft costs less. Reviewing costs the same | Someone is accountable for the decision. An assistant does not sign an ADR |
| Exploring ten options is as cheap as exploring two | Choosing requires knowing the business, the team, and the constraints |
| Architecture rules must be able to check themselves, because more code is produced than can be read | The trade-offs, and the conversation with the business to agree on them |
| Documenting well is worth more: assistants work with what is written down | The judgment to say no |
The last row on the left has a consequence for Verdalia. Its 16 ADRs, its diagrams, and its runbooks no longer serve only people. A team with the why written down will make better use of these tools than one with the why in its memory.
Quantum Computing
A classical computer works with bits, which are 0 or 1. A quantum computer works with qubits, which exploit three properties of quantum physics:
| Property | Intuitive idea |
|---|---|
| Superposition | A qubit is not in 0 or in 1, but in a combination of both, described by two numbers called amplitudes. When you measure it you get 0 or 1, with a probability that depends on those amplitudes, and the combination disappears |
| Entanglement | Two qubits can become linked, so that the result of measuring one is related to the result of measuring the other |
| Interference | Amplitudes can add up or cancel out. A quantum algorithm manipulates them so that the incorrect answers cancel out and the correct one is reinforced |
It is worth clearing up a common misunderstanding. A quantum computer does not “try all the solutions at once and pick the right one.” Measuring gives a single result. The advantage exists only for problems where someone has found an algorithm that exploits interference.
| Where it promises an advantage | Where it does not |
|---|---|
| Simulating molecules and materials, which are quantum systems | Serving pages, querying a database, or confirming an order |
| Factoring large numbers, which affects cryptography | Almost all business software |
| Some optimization and search problems, with a more modest advantage that is still being researched | Any task a classical computer already handles well |
That is why it does not replace classical computing. Qubits are fragile: they lose their state with noise, and many physical qubits must be devoted to correcting the errors of one useful qubit. Current machines are experimental. Nobody knows for certain when there will be one able to solve practical problems at scale.
The foreseeable model is hybrid. The quantum unit acts as a coprocessor, just like a graphics card: a classical program prepares the problem, sends the appropriate part, and processes the result. And it is accessed like a cloud service. For the architecture it will be one more external service, slow and expensive, behind a port and an adapter.
flowchart LR
application["Classical application"] --> port["Port: optimize routes"]
port --> classical["Classical adapter: today's algorithm"]
port --> quantum["Quantum adapter: prepares the problem and interprets the result"]
quantum -->|"Circuit"| service["Quantum service, in the cloud"]
service -->|"Measurement results"| quantum
| Aspect | Description |
|---|---|
| Key concepts | Qubit, superposition, entanglement, interference, and error correction. Hybrid model. Quantum coprocessor as a service |
| Example | A pharmaceutical company simulates a molecule. Rutalia could, some day, optimize its 1,400 routes. Today it does that well with classical algorithms |
| Advantages | Problems that are intractable today, in a few fields |
| Challenges | Immature hardware, few algorithms with a proven advantage, and a shortage of professionals |
| Adoption signal | A problem of your own that classical methods do not solve, and a service that demonstrably solves it better |
A Simulated Qubit, in Python
The program is a classical simulation, for teaching purposes. There is nothing quantum about it: it stores the amplitudes as complex numbers and draws the result of each measurement with random.
import math
import random
R = 1 / math.sqrt(2)
class Qubit:
"""Classical simulation of a qubit: two amplitudes, which are complex numbers."""
def __init__(self):
self.alpha, self.beta = complex(1), complex(0) # starts in state 0
def hadamard(self):
a, b = self.alpha, self.beta
self.alpha, self.beta = R * (a + b), R * (a - b)
def probabilities(self):
return abs(self.alpha) ** 2, abs(self.beta) ** 2
def measure(self, rng):
result = 0 if rng.random() < self.probabilities()[0] else 1
self.alpha, self.beta = (complex(1), complex(0)) if result == 0 else (complex(0), complex(1))
return result # after measuring, the superposition is gone
def measure_many(prepare, times, rng):
counts = {0: 0, 1: 0}
for _ in range(times):
counts[prepare().measure(rng)] += 1
return counts
def in_superposition():
qubit = Qubit()
qubit.hadamard()
return qubit
def with_two_gates():
qubit = in_superposition()
qubit.hadamard()
return qubit
rng = random.Random(2027)
p0, p1 = in_superposition().probabilities()
print(f"After one Hadamard gate: probability of 0 = {p0:.2f}, of 1 = {p1:.2f}")
print("1,000 measurements:", measure_many(in_superposition, 1000, rng))
p0, p1 = with_two_gates().probabilities()
print(f"After two Hadamard gates: probability of 0 = {p0:.2f}, of 1 = {p1:.2f}")
print("1,000 measurements:", measure_many(with_two_gates, 1000, rng))
# Two entangled qubits: four amplitudes, for the states 00, 01, 10, and 11
pair = {"00": R, "01": 0, "10": 0, "11": R}
results = rng.choices(list(pair), weights=[abs(a) ** 2 for a in pair.values()], k=1000)
print("Entangled pair, 1,000 measurements:", {state: results.count(state) for state in pair})
print(f"Amplitudes needed to simulate 50 qubits: {2 ** 50:,}")Output:
After one Hadamard gate: probability of 0 = 0.50, of 1 = 0.50
1,000 measurements: {0: 519, 1: 481}
After two Hadamard gates: probability of 0 = 1.00, of 1 = 0.00
1,000 measurements: {0: 1000, 1: 0}
Entangled pair, 1,000 measurements: {'00': 483, '01': 0, '10': 0, '11': 517}
Amplitudes needed to simulate 50 qubits: 1,125,899,906,842,624Explanation:
Qubitstores two amplitudes,alphaandbeta. The probability of measuring 0 is the square of the modulus ofalpha, whichabscalculates, and that of measuring 1, the square of the modulus ofbeta. The two always add up to 1.hadamardis the gate that creates superposition. It combines the two amplitudes, and divides by the square root of 2 so that the probabilities still add up to 1.measuredraws the result with those probabilities, and leaves the qubit in the state obtained. This is the collapse: measuring destroys the superposition.random.Random(2027)creates a seeded generator, so that the output is always the same.- The entangled pair is represented with four amplitudes.
rng.choicesdraws among the four states, with the weight of each one.
Interpretation:
- One gate. The qubit gives 0 half the time. So far, it looks like a coin.
- Two gates. A coin tossed twice still comes up heads half the time. The qubit always gives 0. At the second gate, the two contributions to state 1 have opposite signs and cancel out. That is interference, and it is what distinguishes an amplitude from a probability.
- The entangled pair. Each qubit, on its own, gives 0 or 1 at random. But 01 and 10 never come up: the two results always match.
- The last line explains why this is not solved by simulating it. Each qubit doubles the number of amplitudes that have to be stored. With 50, there are more than a quadrillion.
Post-Quantum Cryptography and Crypto-Agility
The most immediate effect of quantum computing on an ordinary architecture is not using it. It is defending against it.
In the lesson “Data Protection” we distinguished symmetric encryption, asymmetric encryption, and hash functions. General-purpose asymmetric encryption relies on mathematical problems, such as factoring very large numbers, that a classical computer cannot solve in a reasonable time. A quantum algorithm is known that could, on a sufficiently large and stable machine, which does not exist today.
| Family | Where it is used | Expected effect |
|---|---|---|
| General-purpose asymmetric encryption and digital signatures | TLS key exchange, certificates, and signatures | Severe: the algorithms would have to be replaced |
| Symmetric encryption | Data at rest and in transit, once the key has been agreed | Moderate: using longer keys is considered sufficient |
| Hash functions | Integrity, passwords, and HMAC | Moderate: using longer digests is considered sufficient |
Post-quantum cryptography consists of new asymmetric algorithms, which run on classical computers and rely on problems that a quantum computer would not be able to solve either. Standards bodies have already published the first standards, and libraries, browsers, and providers are gradually incorporating them. They usually do so in hybrid mode, which combines a classical algorithm with a new one, in case the new one has a flaw that is still unknown.
If the machine does not exist, why deal with it now? Because of the risk of harvest now, decrypt later. An attacker can capture encrypted traffic today, store it, and decrypt it on the day they are able to. It affects data that must stay secret for many years.
The architectural response is not to adopt a specific algorithm today. It is crypto-agility: the ability to change algorithms without redesigning the system.
| Practice | What it prevents |
|---|---|
| An inventory of where cryptography is used, with which algorithm, and who manages it | Discovering the uses one by one, in the middle of an emergency |
| A single module that encapsulates the algorithms. The rest of the code asks to “sign” or “encrypt” | Algorithm names scattered all over the code |
| The algorithm is chosen by configuration | One deployment for every change |
| Every encrypted or signed piece of data stores the identifier of the algorithm and of the key next to it | Not knowing how an old piece of data was protected |
| Old algorithms are still accepted for reading, and data is migrated gradually | Migrating everything at once, with downtime |
Verdalia has already applied this idea once, without giving it a name. Its passwords are stored in the format scrypt$32768$8$1$<salt>$<digest>: the algorithm and its parameters travel with the data. That is why it was able to migrate the old passwords as each customer logged in, without asking anyone to change theirs.
Crypto-Agility in Python
The example uses a store's gift vouchers. Each voucher carries a signature, which prevents anyone from making one up or changing its amount. It is signed with HMAC, which is symmetric cryptography and is in the standard library. Post-quantum algorithms are not. The mechanism is the same for any family: a registry, a configuration, and an identifier stored next to the data.
import hashlib
import hmac
# Algorithm registry: identifier -> function that signs
ALGORITHMS = {
"hs1": lambda key, data: hmac.new(key, data, hashlib.sha1).hexdigest(),
"hs256": lambda key, data: hmac.new(key, data, hashlib.sha256).hexdigest(),
"hs3-256": lambda key, data: hmac.new(key, data, hashlib.sha3_256).hexdigest(),
}
RETIRED = {"hmd5"} # no longer accepted, not even for verifying
CONFIG = {"current_algorithm": "hs256"} # in the store, an environment variable
def sign(key, text, algorithm=None):
algorithm = algorithm or CONFIG["current_algorithm"]
return f"{algorithm}${ALGORITHMS[algorithm](key, text.encode())}"
def verify(key, text, stored):
"""Returns whether the signature is valid and, if it should be migrated, the new signature."""
algorithm, _, signature = stored.partition("$")
if algorithm in RETIRED or algorithm not in ALGORITHMS:
return False, None
expected = ALGORITHMS[algorithm](key, text.encode())
if not hmac.compare_digest(expected, signature):
return False, None
if algorithm != CONFIG["current_algorithm"]:
return True, sign(key, text)
return True, None
KEY = b"sample-key-not-real"
vouchers = { # gift voucher -> signature stored next to it
"GIFT-1001|25.00": sign(KEY, "GIFT-1001|25.00", "hs1"), # with an old algorithm
"GIFT-2040|50.00": sign(KEY, "GIFT-2040|50.00"), # with the current one
"GIFT-0007|10.00": "hmd5$0f3c9a1b", # with one already retired
}
CONFIG["current_algorithm"] = "hs3-256" # changing the algorithm is one line
for voucher, stored in list(vouchers.items()):
valid, new_signature = verify(KEY, voucher, stored)
print(f"{voucher} {stored[:16]:16} valid: {valid!s:5} {'migrated' if new_signature else 'untouched'}")
if new_signature:
vouchers[voucher] = new_signature
print("After the migration:", sorted({stored.partition("$")[0] for stored in vouchers.values()}))
tampered = "GIFT-1001|250.00"
print("Tampered amount:", verify(KEY, tampered, vouchers["GIFT-1001|25.00"])[0])Output:
GIFT-1001|25.00 hs1$28750e0ddec2 valid: True migrated GIFT-2040|50.00 hs256$1769744502 valid: True migrated GIFT-0007|10.00 hmd5$0f3c9a1b valid: False untouched After the migration: ['hmd5', 'hs3-256'] Tampered amount: False
Explanation:
ALGORITHMSis the registry: a dictionary that maps each identifier to the function that signs. Alambdaexpression is a short function without a name. Adding an algorithm means adding a line.signreturns the identifier and the signature, joined by the$sign. If no algorithm is given, it uses the one in the configuration.verifyreads the identifier from the stored data, withpartition, and looks up that algorithm in the registry. It does not use the current one: it uses the one it was signed with.- If the signature is valid and the algorithm is not the current one, it also returns the new signature. The caller stores it. This is the gradual migration.
RETIREDcontains the algorithms that are no longer accepted, not even for verifying. It is the end of the cycle: first you stop signing with an algorithm, and later you stop accepting it.
Interpretation:
- The first two vouchers were signed with algorithms other than the current one. Both are verified with their own, and migrated.
- The third uses a retired algorithm. It is rejected. Before retiring an algorithm you need to know how much data still uses it, and decide what to do with it.
- After the migration, the retired voucher keeps its old signature. The program does not destroy data it does not understand.
- A tampered amount does not pass verification, with any algorithm.
Data Sovereignty and Regulation
| Aspect | Description |
|---|---|
| Key concepts | Residency: which country the data is in. Sovereignty: which laws it is subject to, which also depends on who the provider is. Multi-region and multi-cloud architectures adopted because of legal obligation, not for availability |
| Example | Brotes opens in a country that requires its citizens' data to be stored within its territory. It must partition users by region, decide which data can cross the border, and how to display a feed with posts from two regions |
| Advantages | Compliance, and access to markets and customers that require it. Less dependence on a single provider |
| Challenges | It is the partitioning from Module 4, with legal rules instead of technical ones. Environments, costs, and the people needed all multiply. Consistency between regions is hard |
| Adoption signal | A specific legal obligation or contract, confirmed by legal advisors. Not a hunch |
The forecast of more regulation is one of the most solid in this lesson, because it is the continuation of a trend that goes back years. What cannot be foreseen is its content. A design that knows where each piece of personal data is, like the inventory from Module 5, adapts better to any regulation.
Local-First Systems
| Aspect | Description |
|---|---|
| Key concepts | Local-first: the primary copy of the data lives on the user's device. The application works offline, and syncs in the background. Data structures that merge changes made in two places without conflict. A continuation of edge computing |
| Example | Rutalia's couriers' terminals record deliveries in a garage with no coverage, and sync on the way out |
| Advantages | Instant response. It works without a network. Data can stay on the device, which helps privacy |
| Challenges | Syncing and conflicts. Schema changes, with thousands of devices on different versions. The security of data on a device that gets lost |
| Adoption signal | Users who work with a poor connection, and a measured cost for each interruption |
It is the availability vs. consistency trade-off from Module 4, taken to the extreme: each device is a replica that accepts writes.
Verdalia: What It Prepares For and What It Lets Pass
The December 20 meeting ended with a table, which was added to the radar:
| Line | Decision | Signal that would revisit it |
|---|---|---|
| Real-time data and data mesh | Let it pass | Several teams, or a business decision that cannot wait until the next day |
| More abstract platforms | Let it pass. The image function is the only experiment | NubeAtlas offers the service, and there is a case of our own |
| AI in design and operations | Assess, with one rule: every change goes through the pipeline and through review by a person | Reviewed with the May radar |
| Quantum computing | Let it pass | None foreseen |
| Post-quantum cryptography | Prepare: inventory and crypto-agility | NubeAtlas or PagoRaíz offer hybrid TLS, or a regulation requires it |
| Data sovereignty | Nothing to do: everything is in the eu-sur-1 region |
Selling outside Spain |
| Local-first systems | Let it pass | An application for the warehouse |
Only one line calls for work, and it is two days. Lucía and Íker went through the system and saved the result in docs/security/crypto-inventory.md:
| Use | Family | Who manages it | Identifier next to the data? | Can it be changed? |
|---|---|---|---|---|
| TLS between customers and the store | Asymmetric and symmetric | NubeAtlas, on the load balancer | Negotiated on each connection | Yes, through the provider's configuration |
| TLS to PagoRaíz, the email provider, and the CDN | Asymmetric and symmetric | Each provider | Negotiated | Depends on the provider |
| Passwords | Slow hash, scrypt | Verdalia | Yes | Yes. It has already been migrated once |
| Encryption of the three fields | Symmetric | Verdalia | Yes, the format carries its version | Yes, re-encrypting with a job |
| Analytics pseudonyms | HMAC | Verdalia | No | No, not without losing the continuity of the reports |
| External backups | Symmetric, with a protected key | Verdalia | Yes, in the header of each backup | Yes, in new backups |
| Gift voucher signatures | HMAC with SHA-1 | Verdalia | No | No: the algorithm was hardcoded |
The inventory led to three conclusions:
- Verdalia's asymmetric cryptography is in the hands of its providers. That is the advantage of managed services. Verdalia's task is to ask each one about its plans, and write them down. Lucía sent five emails.
- Two uses were not agile. The gift voucher signature, which Verdalia has been issuing since 2021, was a use nobody remembered. Íker gathered the algorithms into a single module,
verdalia/crypto.py, with the registry from the example. The old signatures all used the same algorithm, and a job added their identifier. New vouchers are signed with the algorithm in the configuration. Since January, the analytics files carry a column with the pseudonym version. - No post-quantum algorithm is adopted. Verdalia does not store secrets that must last for decades, and it has nobody who could evaluate a cryptographic library. When its providers offer them, it will turn them on.
There was no ADR: no choice was made between options with a significant trade-off. The inventory and the radar table are enough.
Common Mistakes and Tips
- Treating a forecast as a fact. And planning around it. Adoption signals exist so that you do not have to believe anyone.
- Betting early. Adopting an immature technology to “be prepared” is paying today for a future that may never arrive.
- Ignoring what is certain. There will be more regulation, and cryptographic algorithms will change. Preparing for both costs little.
- Believing that quantum computing speeds up any program. It has an advantage in a few problems, and none of them is serving a store.
- Writing the name of an algorithm in twenty places. On the day of the change, each one is a search.
- Confusing residency with sovereignty. Data being in a country does not, on its own, decide which laws apply to it.
- Delegating judgment to an assistant. A draft is not a decision.
- Practical tip. For each future technology, write a single line: the signal that would make you look at it again. Then forget about it until the signal appears.
Exercises
Exercise 1: Fact, Trend, or Forecast
Classify each statement as a fact, a trend being adopted, or a forecast, and rewrite those that promise more than they can deliver:
- “Within five years, all systems will be serverless.”
- “Changing a cryptographic algorithm is cheaper if the algorithm's identifier is stored next to the data.”
- “Quantum computers will make all current encryption useless.”
- “Several large companies publish their analytical data by domain.”
Exercise 2: Harvest Now, Decrypt Later
Order these pieces of data from most to least exposed to the harvest-now-decrypt-later risk, and justify the order: a Verdalia customer's cart; a patient's medical record; the delivery address of an order; the number of an identity document, collected by Rutalia on delivery.
Exercise 3: One More Algorithm
Add the hs512 algorithm to the crypto-agility program, with hashlib.sha512, and make it the current one. State what happens to the vouchers already migrated to hs3-256, and what would have to be done to retire hs1.
Solutions
Solution to Exercise 1
- Forecast, and an exaggerated one. Rewritten: “Serverless computing is spreading to more types of workload. High, constant workloads will still be cheaper on fixed capacity.”
- Fact. It is a property of the design, which can be checked.
- Forecast, and false in its generality. Rewritten: “A sufficiently large quantum computer, which does not exist today, would break general-purpose asymmetric algorithms. For symmetric ones, longer keys are considered sufficient.”
- Trend being adopted. It says that it exists, not that it suits everyone.
Solution to Exercise 2
| Order | Data | Reason |
|---|---|---|
| 1 | Medical record | It is sensitive for the person's whole life, and it cannot be changed |
| 2 | Identity document | It lasts for years, and it can be used for impersonation |
| 3 | Delivery address | It is personal, but it changes and is usually known to many people |
| 4 | Cart | It loses its value within days |
The risk depends on how long the data must remain secret, compared with how long the machine could take to exist. For the cart, the deadline passes long before. The minimization from Module 5 is once again the best defense: Rutalia keeps the proof of delivery for a year, and what has already been deleted cannot be decrypted.
Solution to Exercise 3
ALGORITHMS["hs512"] = lambda key, data: hmac.new(key, data, hashlib.sha512).hexdigest()
CONFIG["current_algorithm"] = "hs512"Vouchers signed with hs3-256 are still verified with their algorithm, which remains in the registry, and they are migrated to hs512 the next time they are verified. To retire hs1, you first have to count how many vouchers still use it. The ones that get used migrate on their own. The ones nobody presents are never verified, and never migrated: you need a job that goes through them and, since the signature cannot be recalculated without verifying it, verifies them and signs them again. Only then is hs1 moved to RETIRED. Common mistake: retiring an algorithm when “hardly anyone uses it anymore,” and then discovering that the “hardly anyone” were customers' vouchers.
Conclusion
In this lesson you have learned to reason about the future honestly: starting from the forces that push, such as the cost of compute, teams' attention, regulation, and energy, and from what does not change, such as trade-offs, quality attributes, coupling, and the fallacies of distributed computing. You have gone through six lines of evolution, each with its adoption signal. You have met quantum computing at an introductory level, you have simulated a qubit, and you have seen why it will not replace classical computing. And you have learned that its most immediate effect is cryptographic, and that the response is crypto-agility: an inventory, a single module, configuration, and an identifier next to the data.
Of the seven rows in its table, Verdalia lets five pass, assesses one, and prepares for another. It has a cryptographic inventory, a module that gathers its algorithms, and five questions sent to its providers. It has not bet on anything.
The lesson leaves an idea that deserves to be developed. If you cannot know what will change, the only thing you can design is the ability to change. Verdalia has been doing that for a year, by hand: boundaries between modules, ports and adapters, decisions with an expiration date. What is missing is for the system itself to check that those rules are still being followed, when nobody is looking and whoever writes the code. It was the fourth word in Marta's notebook, and it is the topic of the next lesson: “Evolutionary Architecture: Designing for Change.”
