Skip to content
This repository was archived by the owner on Jul 18, 2024. It is now read-only.
This repository was archived by the owner on Jul 18, 2024. It is now read-only.

Bug : create_order is not idempotent #180

@ao7777

Description

@ao7777

AWS uses retry to perform fault tolerance. To ensure correctness under retry, functions should be idempotent (AWS lambda requires that users should write idempotent functions.
However, the function create_order is not idempotent. Specifically, if the function fails after store_order finishes and is retried, the function will invoke store_order again and create a new order. This will create multiple new orders under retry.

Please let me know if this is an idempotence bug or the function does not need to be idempotent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions