You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by "tabish121 (via GitHub)" <gi...@apache.org> on 2025/12/05 20:38:10 UTC

[PR] ARTEMIS-5797 Updated docs for AMQP federation [activemq-artemis]

tabish121 opened a new pull request, #6101:
URL: https://github.com/apache/activemq-artemis/pull/6101

   Add more detailed documentation for AMQP federation convering more of the configuration options and example configurations.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For additional commands, e-mail: gitbox-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact



Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on PR #6101:
URL: https://github.com/apache/artemis/pull/6101#issuecomment-3639196326

   We manually wrapped our previous mark-down docs which was extremely tedious and prone to mess up. Lines with no wrapping are a pain to scroll down and read. Soft wrapping is an option in some cases, but not all.
   
   The sentence-per-line convention is a balance of the two options, and [it's recommended by the AsciiDoc folks](https://asciidoctor.org/docs/asciidoc-recommended-practices/#one-sentence-per-line) for a number of reasons.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on code in PR #6101:
URL: https://github.com/apache/artemis/pull/6101#discussion_r2608365831


##########
docs/user-manual/images/amqp-federation-address-hub-spoke.png:
##########


Review Comment:
   That makes sense. Thanks!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on PR #6101:
URL: https://github.com/apache/artemis/pull/6101#issuecomment-3639224304

   If you use the [AsciiDoctor plugin for IntelliJ](url) you can just do Ctrl-Alt-Shift-F and the plugin will format everything correctly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram merged PR #6101:
URL: https://github.com/apache/artemis/pull/6101


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on PR #6101:
URL: https://github.com/apache/artemis/pull/6101#issuecomment-3639166675

   The convention we've adopted for AsciiDoc uses one sentence-per-line. I see that being used in some places, but not in others.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "tabish121 (via GitHub)" <gi...@apache.org>.
tabish121 commented on code in PR #6101:
URL: https://github.com/apache/artemis/pull/6101#discussion_r2608511733


##########
docs/user-manual/images/amqp-federation-address-hub-spoke.png:
##########


Review Comment:
   I added some clarification in that paragraph about the linkages between nodes



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "tabish121 (via GitHub)" <gi...@apache.org>.
tabish121 commented on PR #6101:
URL: https://github.com/apache/artemis/pull/6101#issuecomment-3639173484

   > The convention we've adopted for AsciiDoc uses one sentence-per-line. I see that being used in some places, but not in others.
   
   Is there a technical reason for that, it makes actually writing them god awful. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on code in PR #6101:
URL: https://github.com/apache/artemis/pull/6101#discussion_r2608283803


##########
docs/user-manual/amqp-address-federation.adoc:
##########
@@ -0,0 +1,136 @@
+= Address Federation
+:idprefix:
+:idseparator: -
+:docinfo: shared
+
+Address federation can be thought of as full multicast over the connected brokers.
+Every message sent to address on `Broker-1` will be delivered to every queue bound to that address on that broker, but also will be delivered to the matching address on `Broker-2`, `Broker-3` ... `Broker-N` and all the queues bound to that address.
+
+Address federation creates consumers that read messages from the matching address on the remote peer when demand is detected on a local address that matches a specific federation address policy. On the remote peer a queue binding is created on the federated address which will store and forward messages sent to that address back to the initiating broker. Once a message arrives at the federation address consumer on the initiating broker it is then published into the local address which routes the message into each of the queues bound to that address.
+
+Address federation can be configured to operate in a single direction between peers or can configured to operate in both directions between peers allowing message to flow in both directions delivering messages to consumers on either broker that were sent to the matching address on the opposing broker instance.
+
+image::images/amqp-federation-address-concept.png[]
+
+== Common Address Federation topologies

Review Comment:
   Capitalize _topologies_?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "tabish121 (via GitHub)" <gi...@apache.org>.
tabish121 commented on code in PR #6101:
URL: https://github.com/apache/artemis/pull/6101#discussion_r2608288004


##########
docs/user-manual/images/amqp-federation-address-hub-spoke.png:
##########


Review Comment:
   The arrows represent a consumer link with the arrow point to where the messages flow. There is demand on the other spokes which means the hub listens on the spoke in case messages are delivered there as it needs to forward them to where there is demand.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "tabish121 (via GitHub)" <gi...@apache.org>.
tabish121 commented on PR #6101:
URL: https://github.com/apache/artemis/pull/6101#issuecomment-3639229045

   Not everyone uses intellij 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "tabish121 (via GitHub)" <gi...@apache.org>.
tabish121 commented on code in PR #6101:
URL: https://github.com/apache/artemis/pull/6101#discussion_r2608293198


##########
docs/user-manual/amqp-address-federation.adoc:
##########
@@ -0,0 +1,136 @@
+= Address Federation
+:idprefix:
+:idseparator: -
+:docinfo: shared
+
+Address federation can be thought of as full multicast over the connected brokers.
+Every message sent to address on `Broker-1` will be delivered to every queue bound to that address on that broker, but also will be delivered to the matching address on `Broker-2`, `Broker-3` ... `Broker-N` and all the queues bound to that address.
+
+Address federation creates consumers that read messages from the matching address on the remote peer when demand is detected on a local address that matches a specific federation address policy. On the remote peer a queue binding is created on the federated address which will store and forward messages sent to that address back to the initiating broker. Once a message arrives at the federation address consumer on the initiating broker it is then published into the local address which routes the message into each of the queues bound to that address.
+
+Address federation can be configured to operate in a single direction between peers or can configured to operate in both directions between peers allowing message to flow in both directions delivering messages to consumers on either broker that were sent to the matching address on the opposing broker instance.
+
+image::images/amqp-federation-address-concept.png[]
+
+== Common Address Federation topologies

Review Comment:
   fixed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "tabish121 (via GitHub)" <gi...@apache.org>.
tabish121 commented on code in PR #6101:
URL: https://github.com/apache/artemis/pull/6101#discussion_r2608376459


##########
docs/user-manual/images/amqp-federation-address-hub-spoke.png:
##########


Review Comment:
   It's not always intuitive and it was a bit hard to create diagrams that don't get way to busy trying to show what's going on.  I was trying to keep from adding to much actual implementation details but eventually we might want to expand on things more as folks ask questions.  



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "tabish121 (via GitHub)" <gi...@apache.org>.
tabish121 commented on PR #6101:
URL: https://github.com/apache/artemis/pull/6101#issuecomment-3639299422

   > Done.
   
   Thanks, that saves me some eye strain 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "tabish121 (via GitHub)" <gi...@apache.org>.
tabish121 commented on PR #6101:
URL: https://github.com/apache/artemis/pull/6101#issuecomment-3639207093

   > We manually wrapped our previous mark-down docs which was extremely tedious and prone to mess up. Lines with no wrapping are a pain to scroll down and read. Soft wrapping is an option in some cases, but not all.
   > 
   > The sentence-per-line convention is a balance of the two options, and [it's recommended by the AsciiDoc folks](https://asciidoctor.org/docs/asciidoc-recommended-practices/#one-sentence-per-line) for a number of reasons.
   > 
   > For what it's worth, I've not found the process to be a hindrance or an annoyance. Is there something specific that's "god awful"? 😆
   
   I won't ever remember to do it, so will always have to go back and do it as I apparently will now, and reading it either involves endless scrolling for long sentences or a jumbled mess if you use auto wrap.  In any case I will mark this as draft and try and find some motivation to fix it later.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on PR #6101:
URL: https://github.com/apache/artemis/pull/6101#issuecomment-3639259088

   Done.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org


Re: [PR] ARTEMIS-5797 Updated docs for AMQP federation [artemis]

Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on code in PR #6101:
URL: https://github.com/apache/artemis/pull/6101#discussion_r2608276572


##########
docs/user-manual/images/amqp-federation-address-hub-spoke.png:
##########


Review Comment:
   What do the arrows specifically represent here? Are they based on what the underlying federation would be doing given the message demand from the consumers and the message supply from the producer? If so, I would expect there to be _no_ arrow between Spoke 3 and the Hub since there is neither demand or supply on Spoke 3.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org