Closed geekbrother closed 2 months ago
The record TTL is 90 days. (Which should be ok for sessions).
does it need to be 90 days? our current longest living data is 30 days
I'm talking from the perspective of data migrations, if our highest value is going to be 90 days, then next time we decide to do full migration we would need to shadow the data for 90 days to be sure
And it probably will happen in the next 3 month, as we will be transitioning to the permissioned network
The record TTL is 90 days. (Which should be ok for sessions).
does it need to be 90 days? our current longest living data is 30 days
I'm talking from the perspective of data migrations, if our highest value is going to be 90 days, then next time we decide to do full migration we would need to shadow the data for 90 days to be sure
And it probably will happen in the next 3 month, as we will be transitioning to the permissioned network
It decreased to 30 days. The context: slack.
Description
This PR implements the IRN client abstraction into the blockchain-api. The following changes are made:
CI/CD and build
WalletConnect/irn-node
repository was added as a git submodule.irn_api
andnetwork
packages were added as dependencies from theirn-node
.BSL-1.0
license was added to the allowed list.The following IRN client configuration parameters were added:
RPC_PROXY_IRN_NODE
environment variable andirn_node
terraform variable for the IRN node address to connect to in IP:Socket format.RPC_PROXY_IRN_KEY
environment variable andirn_key
terraform variable for the IRN client private key.RPC_PROXY_IRN_NAMESPACE
environment variable andirn_namespace
terraform variable for the IRN storage namespace.RPC_PROXY_IRN_NAMESPACE_SECRET
environment variable andirn_namespace_secret
terraform variable for the IRN storage namespace secret.The following IRN client storage commands were added:
set
,get
,del
.hset
,hget
,hdel
,hfields
,hvalues
.IRN client abstraction is bound to the
irn
global state to be accessible from handlers.The record TTL is 30 days. (Which should be ok for sessions).
How Has This Been Tested?
get
,set
,del
were implemented. The test is ignored by default, because we don't want to spin up a cluster for each CI (and will be covered in the handler integration test).cargo test -- storage::irn::tests::test_irn_client_set_get_del --exact --show-output --ignored
. The test were successfully passed in the local environment.cargo test -- storage::irn::tests::test_irn_client_hashmap --exact --show-output --ignored
. The test were successfully passed in the local environment.Due Diligence