Skip to content

SubscriberNotFoundException when I run each subscriber in a separated process #1731

@rafaelpadovezi

Description

@rafaelpadovezi

Hi,

I have a specific scenario and would like some guidance on whether this is possible. I'm running CAP with subscribers distributed across separate processes (different pods). When a process receives a message from the database but doesn't have the corresponding subscriber registered, it throws a SubscriberNotFoundException.

In my setup, this is expected behavior since subscribers are intentionally separated. I'd prefer to simply ignore these messages when no subscriber is found rather than throwing an exception. If I'm not mistaken, this exception "short-circuits" the message retries according to the code.

Is there a configuration option or way to disable this exception and silently skip unmatched messages?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions