Illustration Image

5/19/2022

Reading time:2

Stargate API brings GraphQL to Cassandra database

logo

This resource is based on an article originally published here.

image

michelangelus - Fotolia

Among the challenges of the open source Apache Cassandra database is that it doesn't easily support a number of common API interfaces, including REST and GraphQL.

DataStax's new Stargate API changes that. The company, based in Santa Clara, Calif., released version 1.0 of the Stargate API. DataStax is one of the commercial sponsors behind the Cassandra database and also has the Astra database as a service (DBaaS) offering that supports the new Stargate API.

DataStax first announced the Stargate API project on Sept. 14 and, together with a community of open source contributors, has been building out the technology in the months since then.

Among the organizations testing the Stargate API is San Francisco-based business review service Yelp.

"At Yelp, we use open source Apache Cassandra to power a variety of use cases," said Sirisha Vanteru, engineering manager at Yelp. "We were looking to move to a GraphQL API to give our Cassandra users the flexibility to access their data without the overhead of coding against the Cassandra driver."

Without the Stargate API, developers have to write additional code to enable access for GraphQL, which makes it easier for data to be consumed in other applications. Vanteru noted that Yelp has started to do some early testing of Stargate in its development environment.

Stargate
Stargate

How the Stargate API extends Cassandra

Over the course of 2020, DataStax has been trying to figure out what it can do to help bring more developers to the Cassandra database, said Ed Anuff, chief product officer at the company.

"Developing for Cassandra hasn't been as easy as it could be and what we heard when we talked to a lot of developers was that it would be great if they could talk to it using APIs," Anuff said.

With the Stargate API, the goal is to provide a bridge that will enable the use of common API models including REST and GraphQL with the Cassandra data model. Instead of application developers having to learn an interface model that will only work with Cassandra, they can use an approach they are already familiar with, Anuff explained.

"If you're writing a front-end web page and you want data in a specific format, you can use GraphQL to do so. It's very straightforward," Anuff said. "We do expect that most databases over the next two years will eventually all have to speak GraphQL natively."

Open Source community benefits from Stargate API

While DataStax started the Stargate API and is integrating it with its DataStax Astra DBaaS, the project is an open source effort and can be used by any developer or even rival database vendor.

There are multiple vendors that offer commercial support and services around the Cassandra database, including Amazon and Instaclustr, among others. Anuff noted that the Stargate API is available for use under the Apache open source license.

"Our goal is really to make sure that the Cassandra ecosystem is flourishing and that developers building new applications are using Cassandra," Anuff said.

Next Steps

DataStax Astra serverless DBaaS optimizes deployments

Apollo GraphQL raises $130M to enable graph layer

Dig Deeper on Database management

Related Articles

logo
api.management
node
api

Explore Further

api

stargate

graphql

Become part of our
growing community!
Welcome to Planet Cassandra, a community for Apache Cassandra®! We're a passionate and dedicated group of users, developers, and enthusiasts who are working together to make Cassandra the best it can be. Whether you're just getting started with Cassandra or you're an experienced user, there's a place for you in our community.
A dinosaur
Planet Cassandra is a service for the Apache Cassandra® user community to share with each other. From tutorials and guides, to discussions and updates, we're here to help you get the most out of Cassandra. Connect with us and become part of our growing community today.
© 2009-2023 The Apache Software Foundation under the terms of the Apache License 2.0. Apache, the Apache feather logo, Apache Cassandra, Cassandra, and the Cassandra logo, are either registered trademarks or trademarks of The Apache Software Foundation. Sponsored by Anant Corporation and Datastax, and Developed by Anant Corporation.

Get Involved with Planet Cassandra!

We believe that the power of the Planet Cassandra community lies in the contributions of its members. Do you have content, articles, videos, or use cases you want to share with the world?