> For the complete documentation index, see [llms.txt](https://docs.mobguards.com/ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mobguards.com/ru/backend-integration/architecture.md).

# Архитектура

Ниже представлены два способа активного использования BotProtection. Оба имеют одинаковую архитектуру, но разные способы получения информации. Чтобы узнать больше о синхронизации и асинхронной проверке, перейдите к части [Взаимодействие с бэкендом](/ru/master.md#vzaimodeistvie-s-vashim-bekendom).

### Синхронный метод

![](/files/-LzlgB7FGsV5p6pS4XgH)

В методе проверки синхронизации зашифрованный токен JWT отправляется клиенту на серверную часть компании. Чтобы декодировать его и получить результат проверки, бэкенд компании использует открытый ключ, предоставляемый при интеграции BotProtection.

### Асинхронный метод

![](/files/-LzlgDCaBcKUTOTu_aTe)

При асинхронной проверке серверная часть компании запрашивает результаты машины BotProtection для конкретных UUID / идентификаторов устройств / идентификаторов вызовов.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mobguards.com/ru/backend-integration/architecture.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
