You are developing a sever-side enterpri

考试题库2022-08-02  30

问题 You are developing a sever-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 customer.It might also(1)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(2).There are logical components corresponding to different functional areas of the application.What’s the application’s deployment architecture Define an architecture that structures the application as a set of(3),collaborating services.This approach corresponds to the Y-axis of the Scale Cube.Each service is:Flighty 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 services)without being imported by changes to other services and without affecting other services.(4)deployable——enable a team to deploy their services 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 teams.Services(5)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.responseC.textD.File问题3选项A.loosely coupledB.loosely cohesionC.High coupledD.Highly cohesion问题4选项A.DependentlyB.IndependentlyC.CoordinatelyD.Integratedly问题5选项A.interoprateB.coordinateC.communicateD.depend

选项

答案 CBABC

解析 你们正在开发一个全方位的企业应用系统。它必须支持各种不同的客户机,包括桌面浏览器。移动浏览器和本地移动应用程序。应用程序还可以向客户公开第三方的API。它还可以通过webservices或消息代理与其他应用程序协作。应用程序通过执行业务逻辑、访问数据库、与其他系统交换消息以及返回HTML/JSON/XML响应来处理请求(HTTP请求和消息)。它有一些逻辑组件对应于应用程序的不同功能区域。
那么这个应用程序有什么样的部署体系结构呢?
将应用程序的体系结构定义为一组松散耦合的协作服务集合,对应于ScaleCube的y轴伸缩。
每个服务具有如下特征:
易于维护和测试——支持快速和频繁的开发和部署。
与其他服务的松散耦合——使团队能够独立工作(大部分时间在其服务器上),而不会受到对其他服务的更改的影响,也不会影响其他服务。
独立部署——允许团队部署他们的服务,而不必与其他团队协调。
能够被一个小团队开发,避免了大团队的高交流领导,这对于高生产力是至关重要的。
服务通信使用HTTP/REST等同步原协议或AMQP等同步协议。服务可以彼此独立地开发和部署。每个服务都有自己的数据库,以便与其他服务解耦。服务之间的数据一致性是使用某种特定的模式来维护的。
转载请注明原文地址:https://tihaiku.com/congyezige/2409547.html

最新回复(0)