You are developing a server-side enterpr

资格题库2022-08-02  49

问题 You are developing a server-side enterprise application. It must support a variety of different clients including desktop browsers, mobile browsers and native mobile applications. The application might also expose an API for 3rd parties to consume. It might also(  )with other applications via either web services or a message broker. The application handles requests (HTTP requests and messages) by executing business logic; accessing a database; exchanging messages with other systems; and returning a HTML/JSON/XML (  ). There are logical components corresponding to different functional areas of the application.What's the application's deployment architectureDefine an architecture that structures the application as a set of (  ), collaborating services. This approach corresponds to the Y-axis of the Scale Cube. Each service is:● Highly maintainable and testable - enables rapid and frequent development and deployment● Loosely coupled with other services - enables a team to work independently the majority of time on their service(s) without being impacted by changes to other services and without affecting other services(  )deployable - enables a team to deploy their service without having to coordinate with other teams● Capable of being developed by a small team - essential for high productivity by avoiding the high communication head of large teamsServices(  )using either synchronous protocols such as HTTP/REST or asynchronous protocols such as AMQP. Services can be developed and deployed independently of one another. Each service has its own database in order to be decoupled from other services. Data consistency between services is maintained using some particular pattern.问题1选项A.integrateB.coordinateC.cooperateD.communicate问题2选项A.requestB.response\C.textD.file问题3选项A.loosely coupledB.loosely cohesionC.highly coupledD.highly cohesion问题4选项A.DependentlyB.IndependentlyC.CoordinatelyD.Integratedly问题5选项A.interoperateB.coordinateC.communicateD.depend

选项

答案 ABABC

解析 假设你在开发一个服务端应用。该应用必须支持各种各样的客户端,包括桌面浏览器、手机浏览器和本地手机应用。应用可能也需要公开部分API供第三方使用,还可能于其他应用通过Web Service或者消息代理(message broker)相集成。应用执行业务逻辑来处理请求(HTTP请求或者消息);访问数据库;与其他系统交换消息;并返回HTML/JSON/XML类型的响应。有一些逻辑组件对应于应用的不同功能模块。
应用的部署架构是什么?
通过采用y轴方向上伸缩立方(Scale Cube)来设计应用的架构,将应用按功能分解为一组松耦合且相互协作的服务的集合。每个服务具有如下特征:
高可维护性和可测试性——支持快速、频繁的开发和部署;
与其他服务松耦合——使团队能够在大部分时间独立地工作于其服务上,而不受对其他服务的更改的影响,也不影响其他服务;
可独立部署——团队能够不与其他团队协调而部署他们的服务;
能够由一个小团队开发——通过避免大型团队的高沟通主管,对高生产力至关重要。
服务间通过HTTP/REST等同步协议或AMQP等异步协议进行通信。服务可以独立开发和部署。每个
转载请注明原文地址:https://tihaiku.com/congyezige/2418160.html

最新回复(0)