Clarifying architecture with Service Blueprints: system operations
I’ve previously written about how Service Blueprints are a really useful tool for documenting and understanding the architecture of a system. A service blueprint is a diagram that shows the interactions between the user, and the architectural elements. Along the top of the blueprint are the steps of the user journey. Underneath each step are the architectural elements that enable that step.
Architecture is, as I’ve previously written, multi-dimensional. Each dimension has different types of architectural elements. In this post I’ll describe how service blueprints can be used to document the system operations that are discovered in step 1 of the Assemblage process.
Discovering systems operations
Step 1 of the Assemblage architecture definition process distills the application’s requirements into a set of system operations.
A system operation is an externally invokable behavior implemented by the application.
It reads and/or writes one or more business entities, a.k.a. DDD aggregates, such as
A system operation has a parameters, and an operational return value and can be thought of as a method implemented by the application.
Collectively, the system operations model the application’s black box behavior.
System operations are often invoked by the user
System operations are invoked in one of three ways: human users, other applications, and the passing of time. In many applications, the user is the primary actor. As a result, service blueprints are often a useful part of the documentation for system operations. Let’s look at an example.
A service blueprint for placing an order
Place Order scenario consists of the following user actions:
- Enter delivery address and desired delivery time
- Select an available restaurant
- View the shopping cart
The following diagram shows the service blueprint for this scenario.
Along the top of the blueprint are the user actions and along with a wireflow mockup of the page that the user sees.
Underneath each user action are the system operations that are invoked in response to the user action.
System commands update business entities and system queries retrieve business entities in order to populate the next page.
For example, when the user enters the delivery address and desired delivery time, the
findAvailableRestaurants() system query is invoked.
The results of this query are used to populate the next page, which displays the list of available restaurants.
When the user, clicks the ‘Buy’ button, the
createOrder() system command is invoked, which creates the
The blueprint connects system operations to user actions
What’s particularly useful about this blueprint is that it connects the system operations to the user actions. The intent of each system operation is clear from the user action that triggers it and, in the case of query, the design of the next page.
In the next article, I’ll describe a more elaborate version of this service blueprint that includes additional useful information.
Need help with accelerating software delivery?
I’m available to help your organization improve agility and competitiveness through better software architecture.