Skip to content

RPC or PUB/SUB Not sure, need help! #11

Answered by orweis
cliffdude asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, Sorry for the delayed response.
And happy this might be a good fit for you :) (Does sound like it ;-) )

Question 1:
RPC or PUB/Sub? which is better suited for this purpose? Please remember that I will have multiple "clients" with databases connected from several locations.

RPC is 1x1, and Pub/Sub is meant as many-to-many. So Pub/Sub is the more natural option here.

Question2:
Regarding websockets_PUB/SUB from the server side:
My problem is that in the examples it is not clear how to get data back from the client after connecting to the server and sending a query, I have used endpoint.publish from the pub/sub library to send a query to the client that then executes it but I can't fi…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cliffdude
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants