Giter Club home page Giter Club logo

Comments (8)

marcellanz avatar marcellanz commented on July 29, 2024

@kwehden I'd say:

  • build the project
  • read the docs
  • understand the protocol
  • generate the proto/grpc stubs for Go
  • wire TCK with the Go implementation
  • run the TCK and see it failing
  • implement EntityDiscovery
  • run the TCK and see it still failing
  • …implement any of the other services

Beside that, studying the Java/JS implementation helps too (see also #3)

from cloudstate.

viktorklang avatar viktorklang commented on July 29, 2024

Also depends a bit on whether it is an API-first or a protocol-first approach,
but if I was doing the Go support I'd start by coming up with an idiomatic Go API based on looking at the Java and JavaScript Shopping Cart samples (since those are used by the TCK).

After having created an idiomatic Go API and implemented the Shopping Cart app with it, I'd then generate a gRPC Server for the Entity protocol (https://github.com/cloudstateio/cloudstate/blob/master/protocols/protocol/cloudstate/entity.proto)

Then I'd implement the Entity Protocol.

Then add the Go Shopping Cart as a TCK permutation and run that to validate what works and doesn't.

Then I'd iterate on top of running the TCK and implementing support for the EventSourced protocol (https://github.com/cloudstateio/cloudstate/blob/master/protocols/protocol/cloudstate/event_sourced.proto)

Then the CRDT protocol and the funciton protocol etc.

from cloudstate.

viktorklang avatar viktorklang commented on July 29, 2024

I've pushed (to master) some better explanation to TCK verification failures, to better help guide implementation of the protocol. Enjoy!

from cloudstate.

marcellanz avatar marcellanz commented on July 29, 2024

Thanks, I'll try it today.

(BTW EntityDiscovery#reportError was helpful in similar cases, where the proxy informed the client what he expects when it was not sent properly by the client)

from cloudstate.

viktorklang avatar viktorklang commented on July 29, 2024

@marcellanz Cool. Yeah, reportError was a slick addition by @jroper. Once we have a bit more bandwidth we should start nailing down a formal specification of the protocol.

from cloudstate.

marcellanz avatar marcellanz commented on July 29, 2024

@viktorklang nice. I found the .proto files most of the time very valuable and accurate.
Only when something was not obiviously clear I visited the implementation. I can list the points where it was the case.

Sent with GitHawk

from cloudstate.

viktorklang avatar viktorklang commented on July 29, 2024

Closing this in favor of #3

from cloudstate.

viktorklang avatar viktorklang commented on July 29, 2024

@marcellanz Would love to get your feedback there!

from cloudstate.

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.