Designing Data Gateway for Cassandra in Open Source
1–10 of 14 posts
Re: Designing Data Gateway for Cassandra in Open Source
#2Re: Designing Data Gateway for Cassandra in Open Source
#3Re: Designing Data Gateway for Cassandra in Open Source
#4Any thoughts on whether the internal API would use streaming or unary calls?
Re: Designing Data Gateway for Cassandra in Open Source
#5A well written and concise article describing design tradeoffs and options for Stargate!
Re: Designing Data Gateway for Cassandra in Open Source
#6Re: Designing Data Gateway for Cassandra in Open Source
#7If it is new, what drove the decision to use gRPC? Performance?
Re: Designing Data Gateway for Cassandra in Open Source
#8I'm very curious on how you solicited feedback and collaborated on the article and design decisions up to now. Can you speak to what worked well or not so well as you hashed out the details?
Re: Designing Data Gateway for Cassandra in Open Source
#9Great read. As someone not very familiar with Stargate, is the internal communication via gRPC (e.g. from most services to bridge) totally new to v2? Or does Stargate v1 use gRPC internally as well? If it is new, what drove the decision to use gRPC? Performance?
1. REST could be a viable option and has been used many times when splitting up a monolith but we didn't believe it could give us the performance we would need due to opening and closing connections
2. With REST we would essentially have to define our own schema definition language to describe the transport of messages between service and persistence which would also add the overhead of serializing and deserializing json payloads
3. CQL is a proven transport mechanism but requires the use of a driver which means whatever language used to implement the service must also have a workable driver (flexibility is a driving design principle for v2)
4. The session based nature of drivers would cause issues in a multi-user or multi-tenant environment
5. Although CQL fits most of our use cases it doesn't quite cover everything
So, yes performance was a factor in choosing gRPC but there was also the flexibility it gave us while being able to reuse CQL thus avoiding reinventing the wheel.
Re: Designing Data Gateway for Cassandra in Open Source
#10This was an awesome read! I appreciate how you were able to cover a lot of ground that went deep technically while still being succinct. I'm very curious on how you solicited feedback and collaborated on the article and design decisions up to now. Can you speak to what worked well or not so well as you hashed out the details?
Up until now we've primarily used our [Discord server](https://discord.gg/33mKDHHFUE) and Github issues for feedback. Starting with v2 we plan to start using Github Discussions as another avenue. Although we like Discord for free form discussion and quick questions it's not great for retention or searching for past solutions. Issues felt a bit constrained and tend to be directly tied to pull requests. Our hope is that with Discussions we'll be able to have more long form discussions that can be retained and made us of by others in the community. Also with Discussions we would like to start making use of an RFC process where anyone can propose designs, discuss, and then proceed with implementation.