Distance travelled per spike¶
Comparison of the backend spikes. Every spike had the same 30-minute timebox and the same target
(see spikes/README.md). Data comes from each spikes/<tech>/SPIKE.md.
Definition of "distance travelled"¶
Distance travelled is the number of steps reached, in order, on a ladder of five steps that AREA needs from its application server. The time spent to get there is only used to break ties.
| Step | What it checks | Why it matters for AREA |
|---|---|---|
| S1 | A server listens on port 8080 |
Base of the shared target |
| S2 | GET /ping answers exactly {"status":"ok"} |
First JSON route, base of the shared target |
| S3 | The port is read from PORT |
Configuration through the environment, needed for Docker Compose |
| S4 | An OpenAPI page is served | The subject requires an OpenAPI description with a browsable interface |
| S5 | An OAuth login works (GitHub for example) | AREA relies on OAuth2 for its services |
Why this definition:
- Every step is a yes or no fact written in the
SPIKE.md, so two people reading the reports get the same number. - The steps follow what the subject asks of the server, so going further on the ladder means getting closer to the real product, not just writing more code.
- Time is a weaker signal: it depends on the prior experience of the person who ran the spike (see "Limits"), so it only separates spikes that reached the same step.
Comparison¶
| Criterion | FastAPI | ASP.NET Core | Express | NestJS |
|---|---|---|---|---|
| Owner | Ethaniel | Ethaniel | Esteban | Clément |
| Prior experience | Used once before | None (C# and ASP.NET new) | Comfortable with Node.js and Express | TypeScript yes, NestJS new |
| Timebox | 30 min | 30 min | 30 min | 30 min |
| Time actually spent | 27 min | 8 min, stopped on purpose | 20 min | about 15 min |
S1 server on 8080 |
✅ | ❌ | ✅ | ✅ |
S2 /ping |
✅ | ❌ | ✅ | ✅ |
S3 PORT read |
✅ | ❌ | ✅ | ✅ |
| S4 OpenAPI page | ✅ built in (/docs) |
❌ | ✅ extra package (swagger-ui-express) |
✅ official package (@nestjs/swagger) |
| S5 OAuth login | ❌ not started | ❌ | ❌ not started | ❌ not started |
| Distance | 4 / 5 | 0 / 5 | 4 / 5 | 4 / 5 |
| Main blocker | uv tooling (project name clash, stale lock file), then which start command reads PORT |
Hard-to-follow Microsoft documentation and learning C# from scratch | None reported | Decorator setup for the OpenAPI schema (tsconfig.json options, reflect-metadata) |
Suggested score for criterion C3 "Spike distance" of decision/matrix-template.md:
distance 5 gives 5, distance 4 gives 4, distance 3 gives 3, distance 1 or 2 gives 2, distance 0 gives 1.
Limits¶
- Prior experience is not equal. Esteban already knew Express and Ethaniel had used FastAPI once, while nobody knew ASP.NET Core. The ASP.NET Core result measures the cost of learning C# as much as the framework itself.
- One person per spike. Each result depends on one member's background and on the documentation they picked.
- Express OpenAPI timing. The Express report says the OpenAPI page was added after the target was reached; it does not say whether this was inside the 30 minutes.
- Alexandre's spike is not done. The table will get a fifth column if it is run.
Conclusion¶
FastAPI, Express and NestJS all reached step S4 inside the timebox, and none tried OAuth (S5). ASP.NET Core did not reach S1. Distance therefore rules out ASP.NET Core for this team but does not separate the three others: the choice between them depends on the other criteria of the matrix, mainly OAuth support (C1) and background jobs for hooks (C2), which no spike tested.