Coder Social home page Coder Social logo

Distributed EA about gocey HOT 2 CLOSED

salvacorts avatar salvacorts commented on July 23, 2024
Distributed EA

from gocey.

Comments (2)

salvacorts avatar salvacorts commented on July 23, 2024

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.

from gocey.

salvacorts avatar salvacorts commented on July 23, 2024

Done

from gocey.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.