~/talk

Multitenant Mystery Only Rockers in the Building

Talkat Spring I/O 2023 Β· 2023-05-18..05-19Β· [databases]
slides:none on file

Shows how a Java Spring Boot 3.1 app implements schema-per-tenant isolation with Hibernate and Postgres, uses Testcontainers and Flyway for dev, and wires Keycloak for per-tenant auth via a dynamic client-registration/authentication-manager resolver. Adds Micrometer/OpenTelemetry and MDC logs to tag traces and metrics with tenant IDs. Builds a Gateway to extract tenant from hostname. A surprising bug: a global cache returns another tenant’s guitar; fixed by a tenant-aware cache key generator, restoring correct isolation.

AI-written summary Β· about

  1. 0:00Introduction
  2. 1:10Multi-tenancy overview
  3. 3:58Tenant resolution
  4. 7:27Tenant context management
  5. 11:06Data isolation strategies
  6. 14:20Implementing separate schemas
  7. 19:22Hibernate configuration
  8. 25:38Observability and logging
  9. 29:12Distributed tracing
  10. 38:46Gateway routing
  11. 41:12Dynamic security
  12. 45:19Debugging and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark β€” the status bar button does the same
?
this help
esc
close this, then clear every filter β€” or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.