Spring Data JPA Interview Question: Production Outage Due to ID Generation
Design, code example, concepts and more.
Background
A Spring Boot + PostgreSQL fintech application has been running for years.
User IDs are generated using a database sequence:
After a marketing campaign, new registrations fail with:
ERROR: integer out of rangeWhat exactly went wrong? What will be your initial investigation steps?
PostgreSQL sequences are always BIGINT, so the sequence did not run …



