How to implement a retry mechanism for goroutines?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • examples

  • The book "Cloud Native Go" does it like this: https://github.com/cloud-native-go/examples/blob/b7a623e9a45d8ca71979eee220d43503588565fb/ch04/retry.go

  • try

    Simple idiomatic retry package for Go (by matryer)

  • i use https://github.com/matryer/try for retries

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • httpretry

    Enriches the standard go http client with retry functionality.

  • backoff

    ⏱ The exponential backoff algorithm in Go

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts