Update transaction-script/Readme.md

Co-authored-by: Ilkka Seppälä <iluwatar@users.noreply.github.com>
This commit is contained in:
Ashish Trivedi 2020-08-10 00:25:43 +05:30 committed by GitHub
parent 6cef98d41e
commit 31d753e59d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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. > 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 In plain words
> All logic related to booking a hotel room like checking room availability, > Transaction Script organizes business logic into transactions that the system needs to carry out.
> 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.
Programmatic example Programmatic example