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

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.

主站蜘蛛池模板: 平湖市| 抚远县| 敖汉旗| 茶陵县| 西乡县| 和林格尔县| 安吉县| 周宁县| 舞钢市| 延安市| 和田市| 墨脱县| 宁德市| 友谊县| 新巴尔虎右旗| 茶陵县| 阳新县| 舟山市| 大关县| 巴楚县| 门头沟区| 天长市| 淮南市| 河源市| 祁门县| 缙云县| 锡林浩特市| 藁城市| 马关县| 庆云县| 淮南市| 泸西县| 林甸县| 阿坝县| 绍兴县| 年辖:市辖区| 泾阳县| 宁晋县| 榆树市| 唐海县| 邳州市|