协议、中间件、Web 服务和 api 之间的区别? [英] Difference between protocol,middleware , web services and api?

查看:122
本文介绍了协议、中间件、Web 服务和 api 之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些术语似乎非常相似,这让我很困惑.
目前我知道:

These terms seem to be very similar which confuses me a lot.
So far I know:

  • 协议是一组规则,允许两个人之间进行通信的方法系统,就像现实生活中的语言,系统是两个人们说话.
  • API 是一种软件,它允许从一个系统到另一个,它就像一个女服务员(API),它将客户端的请求发送到厨房并将响应从厨房发送回客户端.
  • Web Servives 是使用 http 协议与客户端和服务器通信的 APIS.在前面的女服务员示例中,http 协议将是客户、女服务员和厨房用来相互交流的语言.

  • A protocol is a set of rules,methods that allow communication between two systems, it is like a real life lenguage and the systems are the two people talking.
  • An API is a software that allows communication from one system to another, it is like a waitress(API) that takes request from a client to the kitchen and sends back the response from the kitchen to the client.
  • Web Servives are APIS that uses http protocol to communicate with the client and the server. In the previous example of the waitress, the http protocol would be the lenguage that the client,waitress and the kitchen use to communicate to each other.

中间件是运行 API (?) 的软件

Middleware is the software that runs the API (?)

我说得对吗?

推荐答案

简单来说,

协议可以被视为两个或多个方(组件)之间用于相互通信的诉讼或共同协议.大多数情况下,协议包括在相互沟通时应使用的步骤和/或程序.

Protocol can be considered as a law suit or common agreement between two or more parties (components) used for communication with each other. Most of the times protocol includes the steps and/or procedures that should used when communicating with each other.

API 允许并定义两个应用程序如何使用服务提供应用程序定义的方法相互通信.与协议相比,API 描述了在应用程序之间进行通信的编程方式.服务调用应用程序必须正确遵守标准才能获得所需的服务.

API allows and defines how two applications can communicate with each other by using the methodologies defined by the service providing application. Compared to a protocol, API describes the programmatic ways to communicate in-between applications. Service calling application must properly adhere to the standards in order to get the required service.

Web 服务这些与 API 非常相似.Web 服务值得注意的一点是,开发 Web 服务需要用户通过 Internet 访问它.因此可以将 Web 服务视为在线 API.

Web services these are very similar to APIs. Notable thing with the web services is, developing a web service expects users to access it over the internet. Therefore web service can be considered as an online API.

中间件允许与位于多台计算机上的分布式应用程序组件进行通信(只需链接位于不同机器上的组件即可获得完整的应用程序功能).中间件通过克服异构因素(操作系统、硬件、网络设备等)来最大限度地减少开发工作.中间件位于应用程序(应用程序组件)和操作系统之间.

Middleware allows to communicate with distributed application components located in several computers (Simply links the components located in various machines in order to get the full application capabilities). Middleware minimizes the developing effort by overcoming heterogeneous factors (OS, hardware, network equipment etc.). Middleware locates in between application (application components) and the OS.

这篇关于协议、中间件、Web 服务和 api 之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆