Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • 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
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 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 November 24, 2025

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® documentation for producers and consumers.

Was the article helpful?

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