I have a javascript/typescript programs that need to make use of existing libraries written in Java, C and C++, python, etc.
What is the best way to facilitate the communication?
What I can think of is to implement each of them as different Web services on local computer. Is there other ways that can reduce overhead of communication, and reduce the effort making the communication possible (like wrapping them in services)?
There are a number of options to glue the different libraries together:
Bridge modules that let you call the libraries directly from Node:
Message queue that will serve as the bus between the different applications like 0MQ or RabbitMQ
Wrap each program/library as a web service (as you suggested)
If your TypeScript script runs in NodeJs, then you can run an external process using Node's Child Process.
If your TypeScript script runs in a browser, then an HTTP request is the most easy way.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With