官术网_书友最值得收藏!

Infrastructure layer

The infrastructure layer provides support to all the other layers and is responsible for communication between the other layers, for example, interaction with databases, message brokers, file systems, and so on. It contains the supporting libraries that are used by the other layers. It also implements the persistence of business objects.

To understand the interaction of the different layers, let's use an example of booking a table at a restaurant. The end user places a request for a table booking using the UI. The UI passes the request to the application layer. The application layer fetches domain objects, such as the restaurant, the table, a date, and so on, from the domain layer. The domain layer fetches these existing persisted objects from the infrastructure and invokes relevant methods to make the booking and persist them back to the infrastructure layer. Once domain objects are persisted, the application layer shows the booking confirmation to the end user.

主站蜘蛛池模板: 长治市| 上杭县| 青神县| 高台县| 东乡族自治县| 汕尾市| 嵊州市| 南京市| 新邵县| 富顺县| 金阳县| 平昌县| 五台县| 根河市| 巧家县| 北海市| 泰顺县| 汉源县| 环江| 岑巩县| 金昌市| 阿图什市| 盖州市| 芒康县| 香港| 依安县| 宁陵县| 天柱县| 夏津县| 枣庄市| 静乐县| 蓬溪县| 达拉特旗| 平遥县| 黎城县| 墨脱县| 深圳市| 株洲市| 连城县| 南和县| 三原县|