Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Implement automatic caching of API calls #484

Closed
karmacoma opened this issue Mar 20, 2017 · 4 comments
Closed

Implement automatic caching of API calls #484

karmacoma opened this issue Mar 20, 2017 · 4 comments
Assignees
Milestone

Comments

@karmacoma
Copy link
Contributor

We should cache the results of API calls using the Redis key/value store, with a TTL corresponding with the 10 second block time. This would save repeated round trips to the database for the same dataset.

The feature should be optional, dependent on the availability of a Redis server.

@karmacoma
Copy link
Contributor Author

API endpoints should be conditionally cached, therefore we need some granular control. The solution should be independent of express.js with flexibility to serve both http and websocket protocols.

@karmacoma
Copy link
Contributor Author

We should include functional tests to ensure results are cached appropriately.

@karmacoma
Copy link
Contributor Author

Redis server connection details could be stored along the existing db connection details: https://github.com/LiskHQ/lisk/blob/development/config.json#L11

@karmacoma
Copy link
Contributor Author

Documentation would need to be updated to reflect an optional Redis installation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants