개발자가 선호하는 API로 앱 빌드 시간을 단축해 보세요
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.
Stargate의 이점
간편한 데이터베이스 연결
드라이버를 설치하고 업그레이드하거나 지원되지 않는 드라이버에 의존하지 않아도 됩니다.
개발자를 위한 구성
개발팀에게 친숙한 API를 사용하여 학습 시간을 단축합니다.
비즈니스에 집중 가능
데이터 액세스/추상 계층을 유지해야 하는 부담을 덜어줍니다.
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.