Catalogue · articles
The catalogue lives in a Spring Boot app.
Every article must be read, every night.
Spring Boot 3.4, a lab app
The problem
The app returns its articles in pages.
- Each page says how many there are.
- One day, the team changes the shape of that answer.
What is not changed
The app's code stays its own.
- The controller returns Spring's Page.
- The serialization is the team's choice.
What had to be written
pagination: { kind: spring-page }Name the framework.
A 23-line connector: 130 articles, 3 requests.
The change
The team follows Spring's warning.
- The total moves under page.
- The hub reads everything, one empty page too many.
The fix
pagination: { kind: spring-paged-model }One line changes.
- 3 requests again.
- 130 articles, one row each.
The limit
A lab app, not a published product.
- Written with Spring's own classes.
- Without the right preset, nothing is lost: one request too many.
Try it
The scenario replays locally.
Every step is published with its output.