Skip to content

Instantly share code, notes, and snippets.

@rsrini7
Forked from masak/bounded-contexts.txt
Created April 1, 2017 18:33
Show Gist options
  • Save rsrini7/182776f43f4a3bebc170519636d2a3bc to your computer and use it in GitHub Desktop.
Save rsrini7/182776f43f4a3bebc170519636d2a3bc to your computer and use it in GitHub Desktop.
airport model
AR \ BC | Check in | Drop L. | Passp. C | Board | Transit |
----------+----------+---------+----------+-------+---------+
Passenger | Y | | Y | Y | |
----------+----------+---------+----------+-------+---------+
Luggage | Y | Y | | | Y |
----------+----------+---------+----------+-------+---------+
Flight | Y | | | | |
----------+----------+---------+----------+-------+---------+
Three bounded contexts:
* Passenger tracking context
* Luggage tracking context
* Seat booking context
== Passenger-airport interaction lifetime
* Passenger buys a ticket
* Checks in
* Drops luggage
* Goes through passport control
* Boards the plane
* (Takes off)
* (Lands)
* (Picks up luggage)
== Passenger verbs
BookPassenger(PassengerId, FlightId)
CheckInPassenger(PassengerId, SeatId, NumberOfPackages)
SecurityClearPassenger(PassengerId)
BoardPassenger(PassengerId)
== Flight
RegisterFlight(FlightId, DateTime, Destination)
FlightTakeOff(FlightId)
FlightLand(FlightId)
== Luggage
RegisterLuggage(LuggageId, PassengerId, Destination)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment