The StoreAndHash Service

The StoreAndHash service provides an API for posting data to the AWS storage, getting the hash of the data and URL for further download.

This document describes the service from a deployment point of view.

Working knowledge of gRPC is assumed.

The Service

The service wraps access to the AWS and IPFS instances for storing files. It is possible to specify connection details as well as the custom path to upload the file.

Monitoring

There are two http urls available for monitoring applications, the first is a trivial alive url that returns 200 if the service is up.

wget https://myservice.com:2001/alive should return 200 OK.

More usefully

wget https://myservice.com:2001/alarms/lowbalance will return a json response indicating whether all the monitored wallets have balances above their low balance thresholds.

In the case where all wallets are ok the following is returned

{"allOk":true,"lowBalancedWallets":[],"errors":[]}

…otherwise allOk:false will be returned along with details of the problems.