“我们使用 C++/C 作为后端”是什么意思?
当人们说我们使用 C++/C 作为后端时,这是什么意思? 让我们以 facebook 为例,而前端是 php。 如何将任何其他语言绑定到 c++/c?
我的上下文是网络。
例如用户使用网站...可以认为o/p是由php使用模板生成的..
但是数据库/缓存/Web服务/业务逻辑等如何在c ++ / c中实现
What does it mean when people say we use C++/C as backend.
Lets say facebook for instance whereas frontend is php.
How can one bind any other lang to c++/c?
My context is web.
For instance user using a web site...Its agreeable to think that o/p is generated by php using templating..
but how is database/caching/web services/business logic etc implemented in c++/c
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
大多数语言都有某种方式连接到外部组件。例如,PHP 有 COM 构造函数,它允许您访问任何PHP 中的 OLE 兼容组件。该组件可能是一个 DLL,并且可以轻松地用 C 或 C++ 编写。
此外,一个设计良好的系统将由尽可能干净地分离的层组成。例如,视图引擎可能通过 Web 服务或企业服务总线与业务逻辑层进行通信。在这种类型的场景中,两个组件根本不需要用兼容的语言编写,只要它们可以发出或使用 Web 服务请求即可。
Most languages have some way to connect to external components. For example, PHP has the COM constructor, which allows you to access any OLE-compatible component from within PHP. That component is probably a DLL, and could easily be written in C or C++.
Additionally, a well-designed system will consist of layers that are separated as cleanly as possible. So, for example, the view engine could potentially communicate with the business-logic layer via web services, or via an Enterprise Service Bus. In this type of scenario, the two components need not be written in compatible languages at all, so long as they can make or consume web service requests.
“后端”和“前端”在脱离上下文时是毫无意义的词。应用程序中的每个抽象层都可以有前端和后端。
要回答这个问题,这只意味着他们在任意点使用 c/c++。
"backend" and "frontend" are meaningless words when used out of context. Each abstraction layer in your application can have frontends and backends.
To answer the question, it only means they use c/c++ at an arbitrary point.
前端通常是暴露给用户/世界的应用程序(Windows应用程序、Web应用程序或Web服务)。
后端通常是包含所有逻辑(进行计算、使用数据库)等的应用程序。
Frontend is usually the application that is exposed to user/world (a windows application, a web application or a web service).
Backend is usually the application which contains all logic (do calculations, work with the DB) etc.