onaio / fhir-gateway-extension

This repo holds the OpenSRP permissions checker and data access checker
Other
0 stars 1 forks source link

Performance optimization enhancements via Caching #13

Closed ndegwamartin closed 11 months ago

ndegwamartin commented 11 months ago

Overview We need to port optimisation updates from the forked FHIR Info Gateway that was based on the Load Testing carried out earlier. The implementation uses a timeout based caching approach via a Caching library (Caffeine). We need to have a default configuration of 60 seconds with the options to disable caching and/or specifying the cache expiry timeout in seconds. This configuration is via an environment variable named OPENSRP_CACHE_EXPIRY_SECONDS. e.g.

export OPENSRP_CACHE_EXPIRY_SECONDS=30

To disable caching, configure the above environment variable with a value of 0.

Acceptance criteria

Resources