Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distributed EA #7

Closed
salvacorts opened this issue May 14, 2019 · 2 comments
Closed

Distributed EA #7

salvacorts opened this issue May 14, 2019 · 2 comments
Labels

Comments

@salvacorts
Copy link
Owner

salvacorts commented May 14, 2019

Design and implement the communication schema between the private network (nodes in the cloud) and the rest of users (using their browsers)

@salvacorts salvacorts changed the title Communicate Private network with Browsers Communicate Cloud and Browsers May 14, 2019
@salvacorts
Copy link
Owner Author

salvacorts commented May 14, 2019

We need a proxy like nginx or envoy to communicate the cloud system with the exterior while load-balancing resources.

For the heavy task, we may want to use WebAssembly so we can use almost the same (native) code in the cloud nodes and in the user browser as well as achieving a better performance than using JS alone in the browser.

The problem with using WebAssembly only in the browser is the (efficient) communication between the browser and the cloud. We can address this problem by:

  1. Use HTTP to communicate and use JSON as a way to communicate nodes. Easy to implement.
  2. User GRPC and Protocol Buffers to communicate between nodes. To do that, we will need to use JS to retrieve the response from the webassembly execution and then send it over grpc.

It seems that GRPC is not supported in Go over WebAssembly, but, this repo seems to solve it: https://github.com/johanbrandhorst/grpcweb-wasm-example.

@salvacorts salvacorts changed the title Communicate Cloud and Browsers Distributed EA May 29, 2019
@salvacorts
Copy link
Owner Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant