Uploaded image for project: 'Automation for Cloud'
  1. Automation for Cloud
  2. AUTO-1192

Improve Send Web Request to be idempotent

XMLWordPrintable

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    • Jira Software

      Our current system executes a "send web request" action from a secured, sandboxed AWS Lambda function to prevent unauthorized access to internal endpoints. However, it has been observed that the Lambda function is invoked twice when this action is executed, with the AWS client's retry logic being the apparent cause of this double invocation, rather than a manual one.

      The AWS client's retry behavior suggests that there may have been a network or connection issue during the first invocation of the sandboxed Lambda. Although errors during the Lambda invocation could also trigger a retry, no errors were logged for the two requests in question.

      To optimize the effectiveness of the "send web request" action and to avoid unnecessary double invocations, I propose we enhance the sandboxed Lambda function to be idempotent. This would ensure that repeated calls from the same component during the same rule execution do not have any additional effects.

      Implementing idempotency would not only provide network resilience but also significantly reduce the risk of duplicate processing. It will make our system more robust, efficient, and reliable, as it ensures that regardless of how many times a request is repeated, the outcome remains the same.

              Unassigned Unassigned
              10c2247beaf0 Chung Jeon
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: