The relationship of the two applications to call functions?

The application has A Windows and Linux (closed source code) that allows you to plug custom plug-ins .dll and .so. I need to link this app with the app NodeJS (open source) plugin. That is, I need to have the app on NodeJS could call the function in the plug-in application A, and turn to the application A can call a function in the app on NodeJS. You will need some interface for communication between applications. To the end of the two applications to get one. Of course you need to pass some parameters in these fucntion. How it is implemented and on what basis?
June 5th 19 at 21:48
2 answers
June 5th 19 at 21:50
Solution
RPC is suitable for decision, the GRPC is much lib different languages
What if you use HTTP Protocol? - Ofelia72 commented on June 5th 19 at 21:53
HTTP will be another layer for this task. And RPC for such purposes intended. - thurman_Considine commented on June 5th 19 at 21:56
How about https://github.com/socketio/socket.io + https://github.com/socketio/socket.io-client-cpp - Ofelia72 commented on June 5th 19 at 21:59
Actually you can use anything at all, even through gmail emails to share :) But best practice is RPC. Conveniently same: write the necessary functions in one application, a couple of lines wrapped them in RPC server and call from any other application.

And if you do it using sockets or http, you'll have to fuss with the call processing, serialization, and other things that have been written already for us. - thurman_Considine commented on June 5th 19 at 22:02
,
1. C++: https://grpc.io/docs/quickstart/cpp.html
2. NodeJs: https://grpc.io/docs/quickstart/node.html

They pointed out how to create services and how to contact them. - thurman_Considine commented on June 5th 19 at 22:05
If gRPC restrictions on the number of calls in time? For example, if the localhost connection between the two applications, how many calls can be produced every 500ms? - Ofelia72 commented on June 5th 19 at 22:08
there is no limit, the speed depends on the iron. - thurman_Considine commented on June 5th 19 at 22:11
June 5th 19 at 21:52
>>You will need some interface for communication between applications.

Or CLI or TCP/UDP. If in node.trashcan can make a micro service in a proprietary application we need to implement the interface, or "twitching" micro service, or the built-in HTTP transport.

Find more questions by tags Programming