Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Managed Service for Apache Kafka®
  • Getting started
    • Resource relationships
    • Topics and partitions
    • Brokers
    • KRaft protocol
    • Producers and consumers
    • User roles
    • Managing data schemas
    • Web interface for Apache Kafka®
    • APIs in Managed Service for Apache Kafka®
    • Host classes
    • High availability clusters
    • Networking in Managed Service for Apache Kafka®
    • Quotas and limits
    • Storage in Managed Service for Apache Kafka®
    • Connectors
    • Maintenance
    • Apache Kafka® settings
    • Apache Kafka® versioning policy
  • Access management
  • Pricing policy
  • Terraform reference
  • Yandex Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ
  1. Concepts
  2. Producers and consumers

Producers and consumers

Written by
Yandex Cloud
Updated at April 14, 2026
View in Markdown

Apache Kafka® is a distributed system for exchanging messages between data producers and consumers.

  • Producer is a data source application. It connects to an Apache Kafka® cluster and writes messages with data to specific topics and topic partitions. To write messages to a topic and partition, the user must have relevant permissions which come from roles.
  • Consumer is an application that receives and processes data from producers. Instead of getting data directly from a producer, it connects to the Apache Kafka® cluster, subscribes to relevant topics, and reads messages from them. To subscribe to a topic, the user must have relevant permissions which come from roles.

Consumer groupsConsumer groups

Apache Kafka® supports two consumer management modes:

  • Autonomous mode: Each consumer selects which Apache Kafka® topic sections to read all by themselves.

  • Group mode: The Apache Kafka® topic sections are automatically distributed among the group's consumers. The consumers thus read messages in a coordinated manner.

A consumer group consists of one or more consumers who collectively read messages from a topic. To keep track of messages already read by the consumer group, each Apache Kafka® topic section is mapped to a sequence number called group offset. As a result, each one of the topic's messages is delivered to only one consumer from the group.

The Apache Kafka® topic sections are distributed among the group's consumers:

  • Each section is assigned to one consumer within a specific group. At the same time, one consumer can process multiple sections.
  • If there are changes in group membership or the number of sections, rebalancing takes place: the sections get redistributed among the group's consumers.

For more information, see the Apache Kafka® guides for producers and consumers.

Was the article helpful?

Previous
KRaft protocol
Next
User roles
© 2026 Direct Cursus Technology L.L.C.