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 6854097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:35:30+00:00 2026-05-27T01:35:30+00:00

In our scenario I’m thinking of using the pub sub technique. However I don’t

  • 0

In our scenario I’m thinking of using the pub sub technique. However I don’t know which is the better option.

1 ########

A web service of ours will publish a message that something has happened when it is called externally, ExternalPersonCreatedMessage!

This message will contain a field that represents the destinations to process the message into (multiple allowed).

Various subscribers will subscribe. These subscribers will filter the message to see if any action is required by checking the destination field.

2 ########

A web service of ours will parse the incoming call and publish specific types of messages depending on the destinations supplied in the field. i.e. many Destination[n]PersonCreatedMessage messages would be created.

Subscribers will subscribe to only the specific message they care for. i.e. not having to filter any messages

QUESTIONS

Which of the above is the better option and why? And how do I stop myself from making RequestMessages. From what I’ve read/seen I should be trying to structure this in a way of PersonCreated, PersonDeleted i.e. SOMETHING HAS HAPPENED and NOT in the REQUEST SOMETHING TO HAPPEN form such as CreatePerson or DeletePerson

Are my thoughts correct? I’ve been looking for guidance on how to structure messages and making sure I don’t go down a wrong path but have found no guidance out there on do’s and dont’s. Can any one help and guide? I want to try and get this correct from the off 🙂

  • 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-05-27T01:35:30+00:00Added an answer on May 27, 2026 at 1:35 am

    Based on the integration scenario in the referenced article, it appears to me that you may need a Saga to complete the workflow of accept message -> operate on message -> send confirmation. In the case that the confirmation is sent immediately after the operation, you could use NSBs message handler pipeline feature which allows you to chain handlers in a specified sequence such as…

    First<FilterHandler>.Then<DoWorkHandler>().AndThen<SendConfirmationHandler>();
    

    In terms of the content filtering, you can do this although you incur some transport overhead, meaning the queue will have to accept the message and the process will always call the first handler on every message(you can short-circuit the above pipeline at any point). It may be the case that what you really want is a Distributor/Worker setup where all Workers are the same and you can handle some load.

    If you truly have different endpoints with completely different logic, then I would have the Publisher process(only accepts and Publishes message) do the work of translating the inbound message to something else a Subscriber can then be interested in. If then you find that a given Published message only ever has 1 Subscriber, then you don’t need to Publish at all, you need to just Bus.Send() to the correct endpoint.

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

Sidebar

Related Questions

Scenario We are using Weblogic Server 10.3.4 to run our webapp which has security
I have a scenario where I am to send email using our own SMTP
Hi I am having scenario that I am using 4 tomcat instances on our
We have a scenario where we wish to analyse the visitors to our web
We are using TFS for team builds and have a scenario where our application
We have an application, which sells downloadable products. Scenario is: Add product to our
Scenario: We are using a createwizard control to create users for our website. When
Here is the scenario: We are using Linux, Tomcat stack and we deploy our
We have the following scenario with our project: A core web application packaged as
Our scenario: We have a main database that stores company-wide information. We have several

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.