知识点滴 - Function和Service的区别

服务被视为功能的集合

在广泛意义上讲,服务可视为对需求的响应。功能是实施服务的实际命令或活动,一个特定的功能可能有助于一个以上的服务。一个功能可以提供一个服务的全部或部分。在加油站,汽车服务涵盖许多功能,包括加油、换空滤、检查刹车或轮胎等等。在机修厂,汽车的调教服务则包括诸如更换火花塞、调整发动机正时或皮带校准等功能。

Services as Collections of Functions

Services have been described using broad categories of response to demands. Functions are the actual commands or activities that implement services, and a given function may contribute to more than one service. A function can deliver all or part of a service. Functions that make up car services at the gas station include changing fluids, changing filters, inspecting brakes or tires, and so forth. At the mechanic shop, the service known as a tune-up would be comprised of functions such as changing spark plugs, adjusting engine timing or belt alignment, and so forth.

释义

Services

Noun.  (Business, economics) That which is produced, then traded, bought or sold, then finally consumed and consists of an action or work.

Functionality

Noun.  The ability to perform a task or function; that set of functions that something is able or equipped to perform.

=== 分割线 === 

function vs service vs platform

随着devops的采用,产品和技术需要用同样的语言。来自不同团队的人使用不同的词汇,造成不必要的混乱是很常见的。特别是考虑到合作是devops思想的核心,有一个一致的说法会有很大的帮助。

在我们深入研究之前,让我们先看看用于定义产品的常用术语以及它们之间的关系。功能位于金字塔的顶端;功能是一种编程结构,执行特定的任务,当某些功能聚集在一起时,就形成了一个微服务。一个微服务是能够执行目标业务操作的功能的集合。当这些微服务被放在一起时,就形成了一个服务。服务是一种业务结构,用于解决现实世界的问题(业务目标)。平台是一种通用服务,它扩展了服务,增加了托管能力。一个平台是一个可以托管其他服务的服务,这种机制通过提供API来实现。平台和服务一起形成一个产品。产品是由一个实体提供的服务的集合。产品与相关支持(技术和商业上)一起被称为方案(offering)。

Offering: 它是产品的业务表现形式。整个企业单位共同对相关的各个方面进行支持。包括像客户支持、技术支持、法律支持和其他服务的功能,使其成为一个可用的产品。

Product: 所有的整合,连同后台操作、服务、呼叫路由和跟踪以及与其他产品的整合。它是一个业务单元(BU)为达成商业目标而提供的。

Platform: 它是一个服务的集合,可以为不同的用例进行扩展和定制。

Service: 服务是一套完整的功能,这些功能捆绑到一起,可以发布。

Microservice: 微服务是service的组成部分,它有自己的CICD pipelien,提供非常具体的业务操作。从持续集成和发布(CICD)的角度来看,它是一个原子实体,因此对微服务内部功能的任何改变都触发该特定微服务的改变,经由所属的pipeline来触发新新的发布,从而不影响整个服务。

Functions: 微服务内部包含的是功能,和当前系统无关,只是微服务内部逻辑结构的一部分。在系统框图中,可以用方框代表微服务的各个不同功能。

Pipeline定义参见Pipeline

参考:

4 Services and Functions | Distributed Geolibraries: Spatial Information Resources, Summary of a Workshop |The National Academies Press

Functionality vs Services - What's the difference? | WikiDiff

https://rlohani.medium.com/function-vs-service-vs-platform-e2ac25445167

猜你喜欢

转载自blog.csdn.net/guoqx/article/details/129850107
今日推荐