Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does it mean "We use C++/C as backend"

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

like image 742
Rahul Avatar asked May 03 '11 17:05

Rahul


1 Answers

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.

like image 64
Jacob Mattison Avatar answered Oct 10 '22 13:10

Jacob Mattison