I have two clusters A and B where one element on B is sending GET requests to A through an user defined API on a time basis. The user defined script sends back the response.
I also have one script on A that sends http messages to B when certain events occur. So I've created also an user defined API on B. Then, the user defined script parses the POST message and sets data in the element.
Any recommendation about it? Is there a better approach?
Current implementation is working fine. I'm using HttpClient to call GetAsync and SendAsync methods.
Hi Daniel, With the information you provided, your implementation seems to be perfectly fine. If the amount of triggers and their payload size is reasonable, I would see no particular issue with keeping that implementation.
For the User-Defined APIs feature, you do indeed need an indexing database (STaaS/Elastic/OpenSearch). There is no way around this right now.
One thing that you could potentially look into as an alternative is the element replication feature. This would allow you to replicate an element from one cluster into another.