APIs are the key to cloud-native architectures that are scalable and decoupled, and GraphQL is a promising API strategy! With GraphQL, you can create applications and services to aggregate data from multiple services or data stores. Originally developed by Facebook in 2012, but publicly released in 2015, GraphQL is an open-source data query and manipulation API protocol.Next concept: Why GraphQL for Cassandra?
While REST is a more ubiquitous API protocol, GraphQL improves upon some of the limitations of REST. GraphQL uses a type-safe, graph-based schema. This means clients can query and manipulate specific data items on a single access. Nodes in the graph-based schema represent objects and edges represent relationships. Queries amount to using a single URL endpoint to perform graph traversals, which access dictionaries of values in each node. This means clients can use sophisticated queries to get tailored data in a single access, instead of multiple round trips using heavy payloads of entire records.
These seemingly simple improvements become significant performance benefits when used in cloud-native architectures at scale. And, if you want performance benefits at scale, use a GraphQL API for your Cassandra Storage!Next concept: How to Get GraphQL With Cassandra
You have several choices on how to get GraphQL with Cassandra. You can always build a GraphQL API for your Cassandra cluster. Or, if you don’t have a Cassandra cluster and want one, you can create a database using Astra, which has a built-in GraphQL API. You can try out Astra Online (DataStax Cassandra as a Service) and set up a database for free at astra.datastax.com.
Try The Astra GraphQL API Service for yourself - it allows you to scale your databases horizontally quickly, and easily. Give it a try!
Cedrick Lunven shows how to create APIs for your distributed database including REST, gRPC and GraphQL.Watch Now
Astra has a GraphQL API that allows you to create tables and query your table dataStart Learning
Watch a demonstration of how to create REST, gRPC and GraphQL APIs for Cassandra.Watch Now
Learn, by example, several technical reasons why GraphQL is a good fit for an Apache Cassandra™ application.Download Now