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

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

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

![](/files/-LzlgB7FGsV5p6pS4XgH)

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

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

![](/files/-LzlgDCaBcKUTOTu_aTe)

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


---

# Agent Instructions: 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.
