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_translations flag

Translation Fetch Logic

  1. Check Redis cache

  2. If hit → return

  3. If miss:

    • Fetch from S3
    • Convert to hash map
    • Store in Redis
  4. Merge translations

  5. 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

On this page