Skip to content

Unable to consume from streams in Scala or Python #14010

Answered by Gsantomaggio
thoefkens asked this question in Other
Discussion options

You must be logged in to vote

@thoefkens I tested your setup

Cluster from https://github.com/rabbitmq/rabbitmq-stream-go-client/tree/main/compose:

git clone [email protected]:rabbitmq/rabbitmq-stream-go-client.git .
make rabbitmq-ha-proxy 

Three cluster nodes:

Run your script ( with a lb mode and changed the port to 5553)

import asyncio
import os
import json
import logging
from rstream import (
    AMQPMessage,
    Consumer,
    ConsumerOffsetSpecification,
    MessageContext,
    OffsetType,
)

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)

RABBITMQ_HOST = os.getenv('RABBITMQ_HOST', 'localhost')
RABBITMQ_PORT = int(os.getenv('RABBITMQ_PORT', '5553'))
RABBITMQ_USERNAME = os.getenv('RABBIT…

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@thoefkens
Comment options

@Gsantomaggio
Comment options

@thoefkens
Comment options

@thoefkens
Comment options

@Gsantomaggio
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@thoefkens
Comment options

Answer selected by michaelklishin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #14010 on June 02, 2025 18:15.