Skip to content

Weighted decision matrix: backend framework

  • Member: Clément
  • Date: 2026-11-30

Weights

Weight Meaning
1 Nice to have: it rarely changes the outcome
2 Important: a weak score here costs us real time
3 Decisive: a weak score here can make the project fail

Scores

Score Meaning
1 Missing or very painful
2 Possible, with a lot of custom work
3 Possible, with some work or a third-party library
4 Well supported, small friction
5 Built in and simple

Criteria

# Criterion Weight What to look at
C1 OAuth2 / OIDC support 3 Libraries for OIDC login and OAuth2 delegated tokens, number of ready-made providers
C2 Background jobs and scheduled hooks 3 Running hooks on their own, scheduling, retries, deduplication
C3 Spike distance 3 How far the spike went inside the timebox (see spikes/DISTANCE.md)
C4 OpenAPI and contract tests 2 Generated OpenAPI document, browsable UI, tooling for contract tests
C5 Learning curve for the team 2 Time for the 4 members to become productive
C6 Ecosystem and documentation 2 Libraries for the services we plan, quality of the official docs
C7 Docker Compose setup 1 Image size, build simplicity, configuration through environment variables

Matrix

Weighted score = score × weight. Add one column pair per spiked framework.

Criterion Weight FastAPI FastAPI (weighted) ASP.NET Core ASP.NET Core (weighted) Express Express (weighted) NestJS NestJS (weighted)
C1 OAuth2 / OIDC 3 4 12 4 12 4 12 4 12
C2 Background jobs 3 3 9 4 12 3 9 4 12
C3 Spike distance 3 4 12 1 3 4 12 4 12
C4 OpenAPI 2 5 10 3 6 2 4 4 8
C5 Learning curve 2 4 8 2 4 4 8 3 6
C6 Ecosystem 2 4 8 3 6 5 10 4 8
C7 Docker Compose 1 4 4 3 3 4 4 4 4
Total (max 80) 63 46 59 62

Notes

One line per score you hesitated on, with the reason.

  • C1, all 4: no spike reached OAuth (S5), so I scored from the libraries only. FastAPI has Authlib, Express and NestJS have Passport (@nestjs/passport wraps it), ASP.NET Core has OIDC built in and GitHub through AspNet.Security.OAuth.GitHub. Each still needs token storage and refresh written by us, so none gets a 5.
  • C2, NestJS and ASP.NET Core 4, FastAPI and Express 3: NestJS has official modules for scheduling (@nestjs/schedule) and queues with retries (@nestjs/bullmq), and ASP.NET Core has BackgroundService built in. FastAPI and Express need a separate tool (Celery, APScheduler, BullMQ) wired by hand. Deduplication is the database's job in every case (see pocs/database-postgresql/).
  • C3: copied from spikes/DISTANCE.md (distance 4 gives 4, distance 0 gives 1).
  • C4, Express 2: the Express spike wrote its OpenAPI document by hand next to the code, so it can drift from the routes. NestJS generates it from decorators; FastAPI from type hints, with nothing to add.
  • C5, NestJS 3: TypeScript is known in the team, but modules, decorators and dependency injection take some time; the structure is close to the object-oriented code we write in C++, which helps. ASP.NET Core gets 2 because C# would be new to everyone.
  • C6, Express 5: most of the services we plan have an official Node.js SDK (GitHub, Discord, Google), which NestJS also uses, but NestJS adds its own layer to learn on top.
  • Close result: FastAPI 63 and NestJS 62 are within one point. For me the deciding questions are the hooks engine (C2) and whether the team prefers one language (TypeScript) for the server and the web client.