Stargate on existing cassandra data #2610
-
to use the startgate REST and Document API must the data be ingested first via startgate's APis or can we query and search using the Document API on existing cassandra data that was perhaps sinked in via kafka connect to cassandra? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
You need to ingest data first via the API. In addition, the Documents API is getting deprecated as we are building https://github.com/stargate/jsonapi. |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
thanks. got it |
Beta Was this translation helpful? Give feedback.
-
thank you a lot |
Beta Was this translation helpful? Give feedback.
OK then there was a confusion.. Let me try to be more precise..
REST API (https://stargate.io/docs/latest/develop/dev-with-rest.html)
This is not
jsonapi
, this is REST API for accessing the CQL data. For this API, you don't need to ingested data through it.. It works out of the box with the existing CQL tables you might have in Cassandra. Thus, if you want to use this you can use existing Kafka connector, insert data using CQL and then read/write after that with REST API.This is what we call CQL-first API. It means you can write/read using CQL and/or REST API at the same time. For example one app can write rows using CQL, and other app can read data using REST calls. Or vice versa. You w…