Skip to content
Thomas Hansen edited this page Aug 16, 2014 · 1 revision

how is the RPC interface implemented?

Currently, we create a namespace within a firebase. The services providing computation / functions are loaded and start listening for function specific data references in teh firebase. When a client wants to make an RPC call, it simply pushes the function name, and parameters to firebase, and the agents for that function will be notified. One of them can start a transaction actually running the function, and writing the result back to firebase at a specific data path the client subscribed to after pushing the rpc meta data. This way the client is notified when the return value is ready and can call a callback with the rpc result.

Clone this wiki locally