Skip to content

Allow ledger implementations to trigger backpressure before DAMLe is invoked #9991

Closed
@matthiasS-da

Description

Currently, a ledger implementation can trigger backpressure by making WriteService#submitTransaction return Overloaded. This has the drawback that ledger can abort a command only after DAMLe has been executed. The current backpressure mechanism cannot be used to shield the system from excessive use of DAMLe.

To avoid that, extend ApiCommandSubmissionService with a callback isOverloaded that allows the ledger to tell if it is overloaded. Invoke isOverloaded before running DAMLe.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    multi-domainPertaining to multi-domain ledger integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions