Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

directives

Sumit Rawal answered on May 22, 2023 Popularity 9/10 Helpfulness 4/10

Contents


More Related Answers

  • directives in angular
  • add a using directive

  • directives

    1

    Posting Instruction Batches

    Atomicity and Consolidation of Batches

    As a general rule, keep the number of batches instructed in a hook to a minimum (ideally one).

    Why

    A single PostingInstructionBatch is processed atomically. Either all PostingInstruction in the batch are accepted and committed or all are rejected and not committed. Instructing multiple PostingInstructionBatch breaks this atomicity and can lead to scenarios where some PostingInstruction are accepted and others are rejected, despite them coming from the same hook execution. This in turn introduces complex scenarios to debug and remediate.

    Committing directives is also typically one, if not the longest part of contract execution. As the postings processor has a finite throughput reducing the number of batches to be committed helps with this.

    How

    There are many ways to accidentally instruct multiple PostingInstructionBatch. One common anti-pattern is 

    Popularity 9/10 Helpfulness 4/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on May 22 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.