What does it mean "We use C++/C as backend"
What does it mean when people say we use C++/C as bac开发者_C百科kend. 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
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.
"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.
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.
精彩评论