Skip to content

Instantly share code, notes, and snippets.

@patrickheeney
patrickheeney / gist:c4a192cff86194c859f5
Last active August 29, 2015 14:06
Application Lifecycle

September 25, 2014

Request Cycle (with Service Layer)

  • HTTP Request -> Received by Controller.
  • Controller -> Serializes request data into command.
  • Controller -> Passes Command off to Command Bus.
  • CommandBus -> Resolves Command to Handler.
  • Command Handler -> Receives request and resolves any dependencies, fires any command events to modify the command data before and after handler action, then passes it off to a service layer.
  • Service -> Receives input and handles creation, retreiving and updating entities. It builds up the entities and related entities and hands it off to the repository for persisting and deleting.