Parse Server provides a great feature called Cloud Code, where a client can directly call server-side functions. For example, in a JavaScript client:
let weather = await Parse.Cloud.run('forecastWeather');
This functionality is incredibly useful as it simplifies communication without exposing API endpoints. However, this capability seems to be limited to Client-to-Server interactions.
In a microservice environment, we aim to maintain a clean architecture and avoid exposing unnecessary APIs. Ideally, I’d like to call a Cloud Code function hosted on Server A from Server B, enabling Server-to-Server communication.
Is there any way to adapt or tweak Parse Server to support this kind of interaction? Alternatively, are there recommended approaches to achieve similar functionality while keeping the codebases clean in a microservice setup?
Any insights or suggestions would be greatly appreciated!