简体   繁体   English

Web服务器上的多个应用程序被认为是微服务或SOA

[英]Multiple applications on web server is consider Microservice or SOA

I'm preparing for an interview which will contain architectural questions. 我正在准备一次面试,面试将涉及建筑问题。 While I was studying, I was thinking about my past experiences. 在学习期间,我正在考虑自己的过去经历。 In my previous job, we put most of our applications (about 8~10) on a single tomcat instances, since we didn't have to worry about scaling. 在我之前的工作中,我们将大多数应用程序(大约8到10个)放在单个tomcat实例上,因为我们不必担心扩展。

All applications were independent from one another, each one had a different schema on the database, so I believe our apps could be consider microservices. 所有应用程序都彼此独立,每个应用程序在数据库上都有不同的架构,因此我认为我们的应用程序可以视为微服务。

But they were on the same web server, so if it goes down, all applications goes down, which is something what would happen on a SOA architecture. 但是它们位于同一台Web服务器上,因此,如果它出现故障,所有应用程序都将崩溃,这将在SOA体系结构中发生。 Of course this would happend on a lower level, which might not have anything to do with the architecture of the software itself. 当然,这将在较低级别上发生,这可能与软件本身的体系结构无关。

So my question is, having all the applications on a single web server instance is SOA or Microservice? 所以我的问题是,将所有应用程序放在单个Web服务器实例上是SOA还是Microservice? The image below (from here ) makes me more confused. 下图(从此处开始 )使我更加困惑。

SOA与微服务

Microservices are a design constraint, not a deployment constraint. 微服务是设计约束,而不是部署约束。 How the services are deployed is completely independent of how they are designed. 服务的部署方式完全独立于设计方式。 They could even be in the same assembly, assuming you had some sort of design that strongly separated them so that they are not interdependent on each other (not recommending this). 假设您采用某种设计将它们强烈分隔,以使它们彼此之间不相互依赖(不建议这样做),它们甚至可能位于同一装配中。

The point is, could you deploy them separately? 问题的关键是,你可以单独部署呢? If not, you have interdependencies, and have violated some principal of microservice design. 如果不是,则您具有相互依赖性,并且违反了微服务设计的某些原则。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SoA /微服务架构的常见工作流程? - Common workflows for SoA/ microservice architectures? 基于项目,微服务和服务(在 SOA 中)可以是同一个东西吗? - Can a Microservice and a Service (in SOA) be the same thing based on the project? 用于实时SOA应用程序的最佳消息传递介质? - Best messaging medium for real-time SOA applications? 使用Web浏览器作为瘦客户端访问服务器上的某些应用程序 - Using Web Browser as a Thin Client to Access certain applications on Server Web应用程序中真正的客户端-服务器体系结构的陷阱? - Pitfalls of true client-server architecture in web applications? 限制2个Web应用程序中同一用户的多次登录 - Restrict Multiple Login of same user across 2 Web Applications 如何正确构建微服务应用程序? (后端,前端,数据库) - How to build microservice applications right? (backend, frontend, database) 多个ASP.NET MVC应用程序; 用于共享UI资产的服务器? - Multiple ASP.NET MVC Applications; Server for shared UI Assets? 带有ASP.NET Web Api建议的SOA样式体系结构 - SOA style architecture with ASP.NET Web Api suggestions SOA:为什么不使用Erlang / OTP Web服务器作为服务? - SOA: Why do not use Erlang/OTP web servers as services?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM