Skip to content

Is it possible to init multiple CAP instances in one application? #998

@HengzheLi

Description

@HengzheLi

My case is that some of messages are less importance and can be missed in Client side. Some of messages are importance and it have to be handled by Client.
So I want to use one CAP instance to delivery less importance messages. This instance use memory as storage and these messages have short duration of lifetime and no need to retry to send when the sending is fail.
And another CAP instance to delivery more importance message. This instance use database as storage and these messages have long duration of lifetime and need the commitment from Client side.

I saw the documentation guides to use the CAP throught the IOC, and only one CAP instance is constructed. Looks like it only support one CAP instance per application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions