Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Kafka consumer lag #2067

Open
alteest opened this issue Feb 11, 2025 · 0 comments
Open

Bug: Kafka consumer lag #2067

alteest opened this issue Feb 11, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@alteest
Copy link

alteest commented Feb 11, 2025

Describe the bug
Use consumer to get data from Kafka and it's read not all data. It goes to zero and then grows up to ~4k (I suppose it depend on messages).

How to reproduce
Simple kafka broker and consumer

broker = KafkaBroker(
    settings.KAFKA_BOOTSTRAP,
    security=SASLPlaintext(
        username=settings.KAFKA_USER,
        password=settings.KAFKA_PASSWORD,
        use_ssl=False
    ),
    max_request_size=settings.KAFKA_MAX_REQUEST_SIZE,
    graceful_timeout=settings.KAFKA_GRACEFUL_TIMEOUT,
    logger=None,
    validate=False
)

subscriber = broker.subscriber(
    *settings.KAFKA_TOPICS, group_id=settings.KAFKA_GROUP,
    batch=True, max_records=settings.KAFKA_MAX_RECORDS
)

Expected behavior
I want to see minum consumer lag

Observed behavior
See on screenshots and what is strange it's related to uphills on 'Message consume per minute'

Screenshots

Image

Image

Environment
faststream[cli,confluent]==0.5.23

@alteest alteest added the bug Something isn't working label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant