Update transaction-script/Readme.md
Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
This commit is contained in:
parent
6cef98d41e
commit
31d753e59d
@ -16,10 +16,7 @@ Real world example
|
||||
> You need to create a hotel room booking system. Since the requirements are quite simple we intend to use the Transaction Script pattern here.
|
||||
|
||||
In plain words
|
||||
> All logic related to booking a hotel room like checking room availability,
|
||||
> calculate rates and update the database is done inside a single transaction script.
|
||||
> Similar procedure is also needed for cancelling a room booking and all
|
||||
> that logic will be in another transaction script.
|
||||
> Transaction Script organizes business logic into transactions that the system needs to carry out.
|
||||
|
||||
Programmatic example
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user