Hi node mates:
I'm looking for your advice about how to design and implement an mechanism for real-time socket-based cross clustered-process data communication and computation.
[The server layout]
clientA <--tcp socket--> node service A <--> DataModelA <--> unique radis data store
clientB <--tcp socket--> node service B <--> DataModelB <--> unique radis data store
* node service A and B are cluster on the same server
* 1 data model represent 1 client at the run time
* both node service A and B talk to the same redis data store
[The function request]
I need to implement a mechanism, in which:
1. clients in difference processes can communication with each other efficiently.
2. there need to be a centralized place for data computation base on data models represents difference clients
the logic looks like the following diagram:
clientA <--tcp socket--> node service A
|
socket pipe
|
v
clientB <--tcp socket--> node service B <--> DataModelA and B <--> unique radis data store
Do you know what is the best way to do this, or is there something already been built
Many thanks,
ty