Skip to content

perf(cohort): serve GET /cohort/{id} API from gzipped blob#25

Merged
vaibhav-jain-exp merged 5 commits into
mainfrom
optimize-get-cohort-api
Oct 28, 2025
Merged

perf(cohort): serve GET /cohort/{id} API from gzipped blob#25
vaibhav-jain-exp merged 5 commits into
mainfrom
optimize-get-cohort-api

Conversation

@vaibhav-jain-exp
Copy link
Copy Markdown
Contributor

perf(cohort): serve GET /cohort/{id} API from gzipped blob (Redis + memory)

  • Store pre-gzipped cohort JSON in Redis and cache in-memory
  • Serve cached gzip bytes directly in cohorts API
  • Add Redis key for cohort blob and wire through ProjectProxy/Server

…emory)

- Store pre-gzipped cohort JSON in Redis and cache in-memory
- Serve cached gzip bytes directly in cohorts API
- Add Redis key for cohort blob and wire through ProjectProxy/Server
Copy link
Copy Markdown

@bgiori bgiori left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just dont use global objects for cache and we're all good.

Comment thread core/src/main/kotlin/EvaluationProxy.kt
Comment thread core/src/main/kotlin/cohort/CohortBlobCache.kt Outdated
Comment thread core/src/main/kotlin/cohort/CohortBlobCache.kt
@vaibhav-jain-exp vaibhav-jain-exp merged commit 82f1eb7 into main Oct 28, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants