Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Retry cloud function specific times using google-pubsub and send last retry error message to deadletter topic #2

Description

@mrdulin

需求:当cloud function调用第三方api出现异常时,使用google-pubsub重新尝试调用该cloud function,尝试调用指定的次数,并将每一次出现的异常error及相关数据发送到google-pubsubdeadletter topic

Here is version 1 logs:

image

Here is version 2 logs:

image

参考:

https://medium.com/google-cloud/dead-letter-queues-simple-implementation-strategy-for-cloud-pub-sub-80adf4a4a800

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions