> For the complete documentation index, see [llms.txt](https://docs.codebattles.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codebattles.ru/en/how-the-system-works/arkhitektura.md).

# Architecture

<figure><img src="https://3530347106-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNmxNebGSoyvcFD4st7Ia%2Fuploads%2Fgit-blob-a9fac763bb9dee2c8bbeed3f48eabc196d708c21%2Fimage%20(22).png?alt=media" alt=""><figcaption></figcaption></figure>

*<mark style="color:red;">**Redis**</mark>* - cache for complex queries (...)

*<mark style="color:purple;">**Gateway**</mark>* - Nginx for distributing requests to multiple servers

*<mark style="color:green;">**Init Configurer**</mark>* - executing SQL on the first application load and initializing the standard state (Python)

*<mark style="color:blue;">**PostgreSQL**</mark>* - database (...)

*<mark style="color:purple;">Frontend</mark>* - For the teacher interface Nginx (JS, React)

*<mark style="color:purple;">Frontend\_2</mark>* - For the participant interface Nginx (JS, React)

*<mark style="color:orange;">Backend</mark>* - api (Python, Flask)

*<mark style="color:blue;">\*\*\*\* cheker\*\*</mark>* - service for checking tasks in the desired language (Java, Javalin)
