Erstellen Sie Apps mit Ihren bevorzugten APIs jetzt noch schneller
Astra DB includes Stargate, an open-source, data API gateway that sits between your application and the database.
Every database you create automatically has gRPC, GraphQL, REST, a Document (schemaless JSON) API, alongside native driver (CQL) coordinators. As your traffic scales, Stargate automatically scales.
Vorteile von Stargate
Einfache Verknüpfung der Datenbank
Sie müssen nicht länger Treiber installieren und upgraden oder sich auf nicht unterstützte Treiber verlassen.
Mehr Kontrolle für Entwickler
Nutzen Sie die API, mit der Sie am besten vertraut sind, und verkürzen Sie die Lernkurve.
Fokus aufs Geschäft
Ab sofort gehört die aufwendige Wartung Ihrer Datenzugriffs-/Datenabstraktionsschicht der Vergangenheit an.
gRPC
Combining driver-level performance with a cloud native approach, Stargate’s gRPC clients offer new options for your microservices or applications when interacting with Astra DB. It’s easier to learn than drivers since gRPC automatically handles networking and operations tasks, it’s a simpler API. Now you can get out of the business of creating, maintaining or using unsupported drivers with our clients for Go, Node.js, Rust and Java. And you can keep up with the rapid development of new front end technologies by easily creating clients on your own without the complexity of driver development.
GraphQL
GraphQL allows users to query multiple tables in one call and retrieve only the data needed. It reduces ‘overfetching’ and ‘underfetching’ common with other APIs such as REST. The GraphQL API enables fine-grained manipulation of JSON data by enabling direct interaction with specific key-value pairs within the document.Work with GraphQL in schema-first, or CQL-first modes. And because GraphQL can query not just multiple databases but multiple data stores, GraphQL opens up the possibility of federating data from multiple sources.
REST
The standard bearer for APIs because it’s mature and universally known, most developers already know the RESTful commands to interact with Astra DB. They can use familiar verbs; GET, PUT, POST and DELETE to create a new table, schema, index, add and retrieve data or work with an existing table. Great when you don’t have a supported gRPC client or driver for your language or language version.
Document
The schemaless Document API provides enormous flexibility to work with JSON documents/models. It automatically creates the schema on-the-fly to accommodate any type of JSON structure. Powerful search capabilities allow you to search within a specific document or across the entire collection. Fetch the full JSON document or a subdocument from any collection. Leverage this API with storage attached indexes to support a wide range of query patterns for unmatched development agility. Got structured or semi-structured data? JSON schema is also supported to improve testability, data validation and API documentation.