Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7848897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:21:53+00:00 2026-06-02T18:21:53+00:00

We are considering integrating messaging (publishing events) in our system, we multiple components, a

  • 0

We are considering integrating messaging (publishing events) in our system, we multiple components, a few different stacks etc.. We’ll start with a small number of publishers and subscribers and gradually introduce where it makes sense.

If we publish an event, say type: ‘NewProductAddedToCatalogue’, should it included all the attributes of the new product or just the new product Id or some form of rest url perhaps e.g. http://db.intranet/products/%5Buuid%5D. What are the advantages of each approach? I feel some subscribers would just be interested in a minimal number of attributes whilst others e.g. website publisher might want access to them all (or most). Are there any significant downside to either approach?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T18:21:56+00:00Added an answer on June 2, 2026 at 6:21 pm

    The quick answer – why not publish two types of event message?

    One could be a lightweight event with just the product ID and this would be used by subscribers who would then enrich the event data themselves.

    The other message would contain all the data needed to make sense of the event, for consumers who didn’t want to enrich the data.

    The longer answer – I don’t really like the “lightweight” event idea. The problem with this is that you are basically turning your event message into a “something changed” notification.

    This removes the event from it’s underlying data change – for example a notification does not say what has changed, but only that something has changed. It’s entirely possible that the event message may have been delayed to the point where the underlying data is no longer in the same state as it was when the event was raised (whether this is a problem for you is down to your individual requirement).

    More importantly however, the lookup to “enrich” the data introduces coupling between components – the idea behind an event message is that the event subscriber can just process it – the subscriber doesn’t need to know anything about the publisher of the message – or, more specifically, about the data source that the message came from.

    However, there are some benefits – notification-type message processing is idempotent by nature so there’s less effort involved there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm considering integrating some C code into a Python system (Django), and I was
Given two IEnumberables of different types, what is the best practice (considering readability and
OUR CURRENT BUILD PROCESS We're a small team of developers (2 to 4 people
I'm considering integrating some D3D code I have with WPF via the new D3DImage
I am working on a Java EE 6 application that consists of multiple components,
We have a large scale Java web application project. I am considering integrating some
we (a team of about 150) are considering moving our ALM solution from Bugzilla/CVS
I'm considering a set of 4 programs: (Prog1, Prog2, Prog3, Prog4) interacting with 4
Considering the code: <noscript><div>FOO</div></noscript> Running $('noscript').html(); returns &lt;div&gt;FOO&lt;/div&gt; but running $('noscript').text(); returns the raw
Considering following code public class A { public static void main(String[] args) { new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.