kolotaev/vakt

Create caching mechanism for Storages

kolotaev opened this issue · 2 comments

Since external persistent storages may be heavy I/O bound for Rule-based Policies (return all existing policies set), we need a caching mechanism that will alleviate slow performance with in-memory solutions.

For example: MemoryStorage shows 3 seconds per decision for 1 million policy set on PyPy and 12 seconds for Python 3.7. Which is order of magnitude faster than MongoStorage.

PR for the feature.

Resolved as of vakt v. 1.4.0.