什么是一个API,框架和中间件之间的区别? [英] What is the difference between an API , framework and middleware?

查看:2974
本文介绍了什么是一个API,框架和中间件之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是随机在了我的头上了这个问题!什么API,框架和中间件之间的区别?基本上他们都应用提供抽象低层次的服务。在这种情况下,为什么被称为好点网名为框架和Windows API .. API?

Just Randomly got this question in my head! Whats the difference between API , Framework and middleware? Essentially all of them provide abstract low level services to apps. In that case why is dot net called framework and windows API called well.. API?

推荐答案

这是API是应用程序编程接口。它只是指的是程序员使用的软件接口的方法的术语。例如,DAO可能有一个save()方法。保存是DAO API的一部分。在高层次上,你可能有一个将用户添加到系统的功能。系统API的那一部分。

An API is an Application Programmer Interface. Its just a term that refers to the methods a programmer will use to interface with the software. For example, a DAO might have a save() method. Save is part of the DAO API. At a high level, you might have an Add User to System functionality. Thats part of the system API.

一个框架是一个工具或工具集。例如,Spring是管理你的控制,依赖注入的反转,并提供了漂亮的模板,使您的生活更轻松的框架。你可以通过它的API使用Spring。

A framework is a tool or set of tools. For example, Spring is a framework that manages your inversion of control, dependency injection, and provides nifty templates to make your life easier. You use Spring via its API.

中间件是软件,可以让一堆孤立的系统或功能进行交互。所以,如果你有一个网站,支付系统,您可以使用中间件hookem了。

Middleware is software that allows a bunch of isolated systems or functionalities to interact. So if you have a website, and a payment system, you use middleware to hookem up.

这篇关于什么是一个API,框架和中间件之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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