Skip to content

Add concept projects 12 to 15: caching, money, authorisation, equals/hashCode - #11

Merged
mama-samba-braima merged 1 commit into
mainfrom
concepts-12-15
Dec 2, 2026
Merged

mama-samba-braima merged 1 commit into
mainfrom
concepts-12-15

Conversation

@mama-samba-braima

Copy link
Copy Markdown
Contributor

Four more junior/mid concept projects, same broken-first format as 01 to 11.

  • 12 Caching with Redis: every request hits the slow source; JSON serialisation, stale data after an update, self-invocation, TTL, cache stampede (sync = true needs a locking cache writer on Boot 4), Redis down.
  • 13 Money as double: 1,000 payments of 0.10 pay out 99.99; BigDecimal and numeric columns, BigDecimal traps, rounding rules, splitting a bill, money in JSON.
  • 14 Authorisation and JWT: merchant A reads merchant B's invoices; tenant-scoped queries with 404, mass assignment, role checks, token validation. The signing key is a labelled dev-only value overridable by JWT_SECRET.
  • 15 equals and hashCode: value objects, the hashCode contract, mutable keys lost in a HashSet, records, JPA entities with generated ids, proxies and natural ids.

Index, CI list and root README updated.

…uthorisation and JWT, equals and hashCode

Each has a broken start/ and a fixed solution/, the demo, inspect and check
launchers, and both task files. Adds them to the index and the CI list.
@mama-samba-braima
mama-samba-braima merged commit e6da0b0 into main Dec 2, 2026
32 of 34 checks passed
@mama-samba-braima
mama-samba-braima deleted the concepts-12-15 branch December 2, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant