Comments (8)
@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.
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.
I've pushed (to master) some better explanation to TCK verification failures, to better help guide implementation of the protocol. Enjoy!
from cloudstate.
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.
@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.
@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.
Closing this in favor of #3
from cloudstate.
@marcellanz Would love to get your feedback there!
from cloudstate.
Related Issues (20)
- TCK: order of state action updates for addItem by the value entity ShoppingCart HOT 4
- Empty streamed responses are not actually connected HOT 2
- Dead letter logs on CRDT entity passivation HOT 1
- Failure: multiple grpc services in the same package HOT 1
- Projections for value entities
- HTTP API default mappings HOT 1
- Docker build error for Dockerfile.js-shopping-cart HOT 3
- Documentation on How to get started is not complete
- How / when are new versions of cloudstate-proxy-dev-mode published HOT 5
- Upgrade to akka-persistence-spanner 1.0.0-RC5 HOT 16
- Add local cache images layer for docker images on build HOT 5
- [proto] having gRPC service names PascalCase'd and others. HOT 1
- Usability issue with CRUD entity naming HOT 9
- Native-image Cassandra smoke test is flaky HOT 2
- nil pointer exception in spanner_store.go
- K8s Resource limits not applied to user functions HOT 2
- Additional conditions not managed properly when reconciling StatefulService
- NPM module postinstall fails on Windows
- A proposal to find and agree on a common protocol to discover services HOT 5
- The wrong site HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudstate.