This is a collection of common application use-cases that can be solved with database features. All problems and solutions have different trade-offs that are worth talking about.
Patterns that are internal to the ORM are not mentioned here. Like the in-memory persistence context. For those there will a separate section.
Written
Future
- Transactional outbox
- Queue in DB
- Full-text search
- Soft-delete
- Get or Create
- Upsert
- BLOB in DB
- Optimistic Locking
- Pessimistic Locking
- Auditing