Skip to content

Instantly share code, notes, and snippets.

@antani
Created February 17, 2021 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antani/cd91e89e1e96b0673fef647688cf6f8b to your computer and use it in GitHub Desktop.
Save antani/cd91e89e1e96b0673fef647688cf6f8b to your computer and use it in GitHub Desktop.

#Samsiksha 17-Feb-21

OpenEdx API performance - what are the caches built around OpenEDX Can we cache most frequent queries - getEnrolment(), getCourseMeta()

Most important optimizations -

- CDN
- API Gateway
- Middle-tier cache
- OpenEDX caches

Measure -

- API response time - Flask is not a great choice to write high TP APIs - use flask_cache on all GET routes

App side optimization -

- In App Cache
- Image optimizations - Glide, Fresco
- LRU Cache / 
- HTTP Optimization
- How are we downloading content 
- Degrade performance on low quality internet

APIGateway -

- Assuming its optimized - not sure how effective it is with routing + response caching - we need to instrument APIs for this

Infrastructure -

- NewRelic on couple of nodes (get along with free tier ) 
- Synthetic test on these APIs while we develop (make part of integration test ?)
- Alpha build on Android - with Firebase SDK - even with current backend, it will give us good validation of client side optimizations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment