serenity-health / roadmap

Public roadmap for development of Serenity's apps reported by our community of users
0 stars 1 forks source link

feature/set up DB cache for API #119

Open chris-dare opened 2 years ago

chris-dare commented 2 years ago

Tell us about your request! Integrate redis cache into the API server setup to cache DB queries

Which app does this concern? Provider portal

What will be benefit of this feature? Increased application performance

Describe the solution you'd like Set up redis via elasticache or a custom redis server. Be sure to put this on the same VPC as the DB is/will be. It's already been configured to run in docker but because we are not running docker, we are currently not experiencing it's usefulness. So once the new redis server is set, we'll just have to update the REDIS_DSN env var. See serenity.settings.CACHES for dets

Describe alternatives you've considered Ehi recommended that we use memcached but since redis has already been integrated into the app, I'd want us to go with redis and can explore replacing this with memcached later. It shouldn't be any bit difficult to replace. See https://docs.djangoproject.com/en/4.0/topics/cache/#memcached-1

Additional context Add any other context or screenshots about the feature request here.