use case
One thing a user or client wants the system to do, such as placing an order, described from their point of view.
In more detail
Organising services, transactions and queries around use cases keeps each one focused. A use case usually maps to one service method and one transaction.
Related terms
- service layer — The layer of an application that holds use cases and business rules, sitting between controllers and repositories.
- transaction — A group of database changes that succeed or fail together, so the data is never left half-updated.
Taught in
- Persistence With JPA And Hibernate — Modern Java: Virtual Threads & High-Throughput Services
- Spring Data Repositories — Modern Java: Virtual Threads & High-Throughput Services
- Tying It All Together — Modern Java: Virtual Threads & High-Throughput Services