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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:39:39+00:00 2026-06-14T11:39:39+00:00

What is the best way to organize sequence of data processors with .net RX?

  • 0

What is the best way to organize sequence of data processors with .net RX?
– a. Call methods on observable like observable.Do(log).Select(transformation).Do(work).Aggregate(someState)...
– b. Implement custom observers, if so – how to chain them
– c. Other option.. And also what is the best option to handle possible exceptions in observable itself (see my concerns above) and to handle exceptions inside Do, Select, etc (as I know the best practice is that Subscribers shouldn’t throw).

Also I need sometimes to allow exceptions being returned as some elements of observable sequence without sequence being stopped (see this question Handling Exceptions in Reactive Extensions without stopping sequence)

  • 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-14T11:39:40+00:00Added an answer on June 14, 2026 at 11:39 am

    This seems like you need a workflow instead of Rx. It seems based on your other questions* you are trying to take what looks very well suited to a ProducerConsumer queuing workflow scenario, and forcing it into Rx.

    It looks like you

    • want to Read from a Queue and block until a value is received, then
      resubscribe. Just use Queuing features of BlockingCollection. As values arrive they can be pushed into the collection from any thread.
    • dont want to actually have a sequence of values, but a workflow that can
      fail on any given value, divert that and then process the next value.
      Just use a queue. Process each value and put the results into the next appropriate queue
      (Failure/Success) ->See Enterprise Integration Patterns,
      specifically Invalid Message Channel and Dead Letter channel.
    • potentially process these values in parallel. See
      BlockingCollection.GetConsumingEnumerable or the Disruptor for a
      high performance implementation. With these tools you can have many produces and consumers. Sure you can do this with Rx, but it is just polling and tying up a thread doing so. I think it is better to be explicit about this kind of thing

    I think your usage of Rx should pay for itself and you shouldn’t find yourself fighting it (like any other technology or framework).

    *other questions like
    Handling Exceptions in Reactive Extensions without stopping sequence
    and
    How to serialize Observables to the cloud and back

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

Sidebar

Related Questions

I would like to know what's the best way to organize my php project
Lately, I've been exploring what's the best way to organize presentation layer of ASP.NET
What is the best way to organize scraped data into a csv? More specifically
I would like to know which is the best way to organize the dll
I'm in the process of deciding on the best way to organize data in
Given following data, what is the best way to organize an array of elements
I am confuse between the best way to organize dependency between multiple classes assume
What is the best way to organize a MVC2 web project (as complex as
What is the best way to organize the patch files? Imagine you have a
What is the best way to organize code that belongs to the same project

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.