Used Spring Data JPA repositories and entities for conversation threads, messages, and approval-gated writes, keeping state in the platform database instead of custom in-memory storage.
- What worked
- Repository abstractions kept persistence code small and testable, and supported tenant-scoped storage without custom replication logic.