DEV Community

Cover image for Reduct Storage 0.7.0 was released
Alexey Timin for ReductStore

Posted on

Reduct Storage 0.7.0 was released

I'm happy to announce that Reduct Storage 0.7.0 has been released yesterday.

In this release, we have introduced data querying, which allows iterating records via a time interval. This approach is significantly better than reading timestamps of records as a list and then read the records. The list could be huge. Now you can query data for a time interval and use its ID to read records.

You can try it with CURL and our demo server:

export API_TOKEN=reduct
# Take a temporal access token by using API token
curl -X POST --header "Authorization: Bearer ${API_TOKEN}" -a

export ACCESS_TOKEN=<copy it from json>
# Create a bucket (if doesnt exist)
curl -d "{\"quota_type\":\"FIFO\", \"quota_size\":10000}" \
  -X POST \
  --header "Authorization: Bearer ${ACCESS_TOKEN}"   \

# Write some data
curl -d "some_data_1" \
  -X POST \
  --header "Authorization: Bearer ${ACCESS_TOKEN}"   \

curl -d "some_data_2" \
  -X POST \
  --header "Authorization: Bearer ${ACCESS_TOKEN}"   \

# Query data
curl --header "Authorization: Bearer ${ACCESS_TOKEN}"   \

# Read data by using the query ID
curl --header "Authorization: Bearer ${ACCESS_TOKEN}"   \<ID>
Enter fullscreen mode Exit fullscreen mode

For more information see API Documentation

Top comments (0)