I don't believe message topics should encode properties this
specific. It makes it awkward for consumers - they can't just
subscribe to "messages about aws cloud publishing", they have to
subscribe to "messages about aws cloud publishing for Cloud_Base
for Fedora 41 on x86_64", "messages about aws cloud publishing
for Cloud_Base for Fedora 41 on aarch64", "messages about aws
cloud publishing for Cloud_Base for Fedora 42 on x86_64" and on
and on and on, and keep updating it for new releases. It makes
things awkward for the code in wikitcms that writes the AMI
download tables in Cloud test pages - with fedimg it could just
find a single message per compose with all the relevant info in
it which would always be under the same topic, now it needs at
least two messages under different topics.
Also, I believe it breaks the schema stuff to some degree,
because the topic names of the schemas we define are not the same
as the topic names of the messages we publish.
I believe this kind of detail belongs in the message bodies, not
the topics. This rejigs things so we publish messages just with
the topics from the schema classes, and the message bodies
contain any information which was previously only in the topic.
I don't believe message topics should encode properties this
specific. It makes it awkward for consumers - they can't just
subscribe to "messages about aws cloud publishing", they have to
subscribe to "messages about aws cloud publishing for Cloud_Base
for Fedora 41 on x86_64", "messages about aws cloud publishing
for Cloud_Base for Fedora 41 on aarch64", "messages about aws
cloud publishing for Cloud_Base for Fedora 42 on x86_64" and on
and on and on, and keep updating it for new releases. It makes
things awkward for the code in wikitcms that writes the AMI
download tables in Cloud test pages - with fedimg it could just
find a single message per compose with all the relevant info in
it which would always be under the same topic, now it needs at
least two messages under different topics.
Also, I believe it breaks the schema stuff to some degree,
because the topic names of the schemas we define are not the same
as the topic names of the messages we publish.
I believe this kind of detail belongs in the message bodies, not
the topics. This rejigs things so we publish messages just with
the topics from the schema classes, and the message bodies
contain any information which was previously only in the topic.
Signed-off-by: Adam Williamson awilliam@redhat.com