Binding / Talking method between language.
Generally, service communication uses a REST approach with HTTP and TCP protocols and XML or JSON as the serialization format. From an interface perspective, it is about embracing the web design approach. But nothing stops you from using binary protocols or your own data formats.
RPC with Interface description language
A software developer defines:
- data structures (called messages)
- and services
in a description file following the grammar of an interface description language.
Source code is generated from that description for generating or parsing a stream of bytes that represents the structured data.
- Microsoft Bond protocols
- Java CPP: native C++, jni under the hood
- Java Native Interface (JNI)
- Python : See Python - Java
REST calls from client to server.
Net protocol through socket.