retry-go
Echo
retry-go | Echo | |
---|---|---|
5 | 131 | |
2,523 | 30,374 | |
1.2% | 0.7% | |
2.9 | 7.6 | |
2 months ago | 26 days ago | |
Go | Go | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
retry-go
-
Retry operations with constant, delays and exponential backoff strategies
Why this instead of https://github.com/avast/retry-go or https://github.com/cenkalti/backoff ?
- Network Error Handling
-
retry package for golang
What is that advantage of your package compared to other ones like https://github.com/avast/retry-go?
-
Go, NATS, gRPC and PostgreSQL clean architecture microservice with monitoring and tracing 👋
processCreateEmail handling create email events, it's start tracing span, increase metrics counters, then unmarshal message data, and call usecase create method, if it fails, we retry for 3 times using retry-go, if it still fails, we check is the current message redelivered and if redelivery count > maxRedeliveryCount(it's up to your business logic, here is 3 times limit), handling error cases can be very different and depends on your service business logic, in this example used Dead Letter Queue approach.
-
Go, Kafka, gRPC and MongoDB microservice with metrics and tracing 👋
Workers validate message body then call usecase, if it's returns error, try for retry, good library for retry is retry-go, if again fails, publish error message to very simple Dead Letter Queue as i said, didn't implement here any interesting business logic, so in real production we have to handle error cases in the better way. And after message success processed commit it.
Echo
-
Go vs Node.js vs PHP: Which Framework Outperforms the Other in Speed and Efficiency?
echo vs. fasthttp Selection: If the echo framework has been decided to be used, it is not recommended to consider fasthttp anymore. Although echo supported fasthttp in version 2, the author of echo explained the reasons for giving up in https://github.com/labstack/echo/issues/665, mainly to maintain the simplicity of the framework and community compatibility, and to use the standard library as much as possible. This enables echo to better integrate with the community ecosystem while maintaining high performance.
-
Go dependency injection with Uber Fx and Echo
Uber Fx is a dependency injection framework for golang build by Uber which is integrated in all the golang services in Uber to have uniform structure of code across services, code reuse is easier and makes servers efficient. Echo is one of the most popular go webserver framework known for being high performant, extensible and minimalist.
-
TypeScript vs Go: Choosing Your Backend Language
Echo: Known for great docs and HTTP/2 support.
-
Some Go web dev notes
I am over Gin and have been for years yet everyone keeps using it because it has inertia. The docs are garbage.
Big fan of Echo and it has much better docs.
https://echo.labstack.com/
-
Local First HTMX Part 2
I was initially using Go Fiber, because that is what the example app I was piggybacking off of used. It however does not compile when building for the browser. I tested out Gin and Echo. They both compiled and since my current project at work uses Echo I chose to use that here.
-
Crafting a Web Application with Golang: A Step-by-Step Guide
This post is all about Golang so that's the back-end language. However we are going to use the Echo Framework and GORM to speedup development.
-
Intermediate Go Projects
Echo GitHub Repository
-
Migrating Next.js App to GO + Templ & HTMX
Echo for the web server.
-
Go + Hypermedia - A Learning Journey (Part 1)
Echo - web framework for Go
-
Error handling in Go web apps shouldn't be so awkward
The three behaviors I've described that we want all depend on two things, the first of which is "idiomatic error handling". We need to be able to simply return err in our handlers. Unfortunately, the standard libray doesn't give us this. But some third-party frameworks do. The most popular one I'm familiar with is labstack echo, whose HandlerFunc looks like this:
What are some alternatives?
kafka-go - Kafka library in Go
Fiber - ⚡️ Express inspired web framework written in Go
pgx - PostgreSQL driver and toolkit for Go
Gin - Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.
backoff - ⏱ The exponential backoff algorithm in Go
chi - lightweight, idiomatic and composable router for building Go HTTP services
retry - An essential retry-operation related library for Golang to build fault-tolerant system.
mux - A powerful HTTP router and URL matcher for building Go web servers with 🦍
kafdrop - Kafka Web UI
aws-s3-proxy - Reverse proxy for AWS S3 with basic authentication.
go-retryablehttp - Retryable HTTP client in Go
Beego - beego is an open-source, high-performance web framework for the Go programming language.