DataStax News: Astra Streaming now GA with new built-in support for Kafka and RabbitMQ. Read the press release.
Accessing Cassandra with the Stargate REST API
REST APIs are a popular way to expose interfaces in microservice and cloud-native architectures. Stargate makes it easy to serve a RESTful API directly from any Cassandra database, allowing you to access data via simple HTTP operations.
What Is A RESTful API?
REST stands for Representational State Transfer. The RESTful API style was invented by Roy Fielding and his colleagues in 2000 as a way of using standard HTTP commands like POST, PUT, GET, DELETE, and others to support exchange of data using formats such as JSON. This style of interface promotes a clean separation between implementation of clients and servers. Over time the RESTful style has emerged as the most common way of specifying interfaces for stateless microservices that can scale independently and store their data in databases like Cassandra.Next concept: Why use the REST API with Cassandra?
Why Use The REST API With Cassandra?
REST is the most popular API style, while Cassandra is known for high scalability. The marriage of a RESTful interface to Cassandra through the Stargate data gateway means you get all the benefits of scale with a well understood interface pattern.
When the Stargate REST API is added to an existing Cassandra deployment, it automatically creates HTTP endpoints that allow you to perform create, read, update, and delete (CRUD) operations on tables in your database. You can also create new database tables directly via the API.
How To Get The Stargate REST API
Stargate is an open-source data gateway now available in DataStax Astra. If you already have an Astra database, the Stargate REST API is already enabled. If you don’t have a Cassandra cluster and want one, you can set up a database for free at astra.datastax.com. If you have access to your own self-hosted Cassandra cluster, see the Stargate documentation for the quickstart guide for installing and using the REST API.Next: Try it out
Try It Out
With the Stargate REST API you can serve RESTful APIs directly from Cassandra. Here’s two ways you can try it yourself.
Items releated to Stargate REST API
Stargate Discord Server
Join our discord room to chat with the contributors and meet the community.Start Learning