Skip to main content

Statistics Collection service

This service receives data on the usage of API keys for requests to maps, search, and navigation services, processes this data, and writes it to Apache Kafka. The API Keys service then reads the data to calculate the consumption of limits per key.

Architecture

Architecture of the Statistics Collection service

The map services (Tiles API), search services (Catalog APIs), and navigation services (Navi-Back) send information about requests made to the services using the API key to the Statistics Collection service via HTTP API. The Statistics Collection service processes the received data and writes it to Apache Kafka.

The API Keys service then reads this data from Apache Kafka and updates the usage counters for the keys in Redis storage. This allows you to monitor the limits of consumption per key and take action regarding keys that have exceeded the established limits.

Important

The statistics on limit consumption are updated with a delay (about a minute) after a request to the services using the API key.

Dependencies

Apache Kafka storage for events related to API keys.

For more information on how to check requirements for each service, refer to the System requirements document.

What’s next?