hyperledger-iroha / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
438 stars 280 forks source link

[feature request] Provide query expiration time #4983

Open 0x009922 opened 2 months ago

0x009922 commented 2 months ago

Description

Iroha supports "live" queries. They allow clients to make a query with first request and then continue making requests and retrieve batches of data from the same query. They do it by sending a ForwardCursor from Iroha back to Iroha.

There is a timeout after which, if clients do not continue interact with not yet exhausted query, that query becomes no longer available. This timeout is configured for each Iroha instance separately.

Problem

The expiration timeout is not visible for clients. So they don't have any way to know if a query is expired except for making another request to Iroha and receiving an error.

Possible solutions

Benefits