You can create your own REST based API service and communicate to it from different applications. You can consider JSON as request and response data type, as it is most optimized and widely acceptable.
So, the technique is:
- Separate application functions from front-end functions.
- Let the API handle all the application functions.
- Let your front-end system(s) call the application functions through the API.