Product engineeringFeaturesTranslations
Backend Translation System
Backend architecture and translation handling
👤 Aditya Patle (aditya.patle@creliohealth.in)📅 Updated: Mar 29, 2026📁 Services🏷️ backend🏷️ django🏷️ redis🏷️ s3
Backend Translation System
Tech Stack
- Django (Python)
- AWS S3
- Redis
- MySQL
Core Components
AWS S3
- Stores translation files
- Region-based + lab-specific
Redis Cache
- Stores translations in memory
- Reduces latency
- Avoids repeated S3 reads
Database
TranslationConfiguration Table
- Stores lab-specific metadata
- Contains
has_custom_translationsflag
Translation Fetch Logic
-
Check Redis cache
-
If hit → return
-
If miss:
- Fetch from S3
- Convert to hash map
- Store in Redis
-
Merge translations
-
Return response
Data Structures
- Stored as hash maps
- Key → translation key
- Value → translated string
Performance Considerations
- Redis improves response time
- Reduces S3 dependency
- Scales with growing data