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 https://play.reduct-storage.dev/auth/refresh
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}" \
-a https://play.reduct-storage.dev/b/my_data
# Write some data
curl -d "some_data_1" \
-X POST \
--header "Authorization: Bearer ${ACCESS_TOKEN}" \
-a https://play.reduct-storage.dev/b/my_data/entry_1?ts=10000
curl -d "some_data_2" \
-X POST \
--header "Authorization: Bearer ${ACCESS_TOKEN}" \
-a https://play.reduct-storage.dev/b/my_data/entry_1?ts=20000
# Query data
curl --header "Authorization: Bearer ${ACCESS_TOKEN}" \
https://play.reduct-storage.dev/b/my_data/entry_1/q?ttl=30
# Read data by using the query ID
curl --header "Authorization: Bearer ${ACCESS_TOKEN}" \
https://play.reduct-storage.dev/b/my_data/entry_1?q=<ID>
For more information see API Documentation
Top comments (0)