Skip to content

Add support for a better way to observe MongoDB change streams for multiple collections #420

@einari

Description

@einari

If one wants to aggregate (map / reduce) from multiple collections, instead of having to work with a unique change stream per collection, it would be better resource usage if we had one change stream subscription with specific filters.

We want this to be a nice type safe API.

Something in the lines of...

var subject = collection
   .Observe(o => o
      .Join(otherCollection, () => ... filter ...)
      .Join(thirdCollection, () => ... filter ...)
      .Combine((firstDoc, secondDoc, thirdDoc) => {
          // Return new "reduced" type
     })
 );

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions