Spring Cloud面试题整理全是干货

Spring Cloud面试题整理全是干货哦,希望对大家的职场有帮助。

1、什么是微服务?

 The microservice architectural style is an approach to developing a single application as a suite of small services, each running in its own process and communicating with lightweight mechanisms, often an HTTP resource API. These services are built around business capabilities and independently deployable by fully automated deployment machinery. There is a bare minimum of centralized management of these services , which may be written in different programming languages and use different data storage technologies.

首先微服务并没有一个官方的定义,想要直接描述微服务比较困难,我们可以通过对比传统WEB应用,来理解什么是微服务。

1、传统的web项目VS微服务

1、传统的Web项目

传统的WEB应用核心分为业务逻辑、适配器以及API或通过UI访问的WEB界面。业务逻辑定义业务流程、业务规则以及领域实体。适配器包括数据库访问组件、消息组件以及访问接口等。

尽管也是遵循模块化开发,但最终它们会打包并部署为单体式应用。

猜你喜欢

转载自blog.csdn.net/yetaodiao/article/details/132537132