GithubHelp home page GithubHelp logo

Comments (2)

qweeze avatar qweeze commented on August 25, 2024

You should specify advertised_host in stream plugin's configuration.

The reason for that is when publishing messages, we need to make sure that the client is connected to a writable broker (leader)

from rstream.

xuqinghan avatar xuqinghan commented on August 25, 2024

You should specify advertised_host in stream plugin's configuration.

The reason for that is when publishing messages, we need to make sure that the client is connected to a writable broker (leader)

Thanks.
I read https://blog.rabbitmq.com/posts/2021/07/connecting-to-streams/
https://www.rabbitmq.com/stream.html

finally follow this https://blog.rabbitmq.com/posts/2021/07/rabbitmq-streams-first-application

docker-compose.yml

version: '3.8'

services:
  rabbitmq-stream:
    restart: always
    #image: rabbitmq-webstomp
    build: ./ 
    command: rabbitmq-server
    environment:
      RABBITMQ_ERLANG_COOKIE: SWQOKODSQALRPCLNMEQG
      RABBITMQ_DEFAULT_USER: guest
      RABBITMQ_DEFAULT_PASS: guest
      RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: -rabbitmq_stream advertised_host localhost

    ports:
      - "15672:15672" # mangerment webpage
      - "5672:5672" #rabbitmq
      - "15674:15674" #web stomp
      - "61613:61613" #stomp
      - "5552:5552" # stream

add "RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: -rabbitmq_stream advertised_host localhost".

it works.

Thanks!

from rstream.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.