Golang drawer
178 subscribers
1 photo
5.03K links
Curated Golang news
Download Telegram
https://failsafe-go.dev/

Failsafe-go is a library for building fault tolerant Go applications. It works by wrapping executable logic with one or more resilience policies, which can be combined and composed as needed. Policies include:
• Failure handling: Retry, Fallback
• Load limiting: Circuit Breaker, Bulkhead, Rate Limiter, Cache
• Time limiting: Timeout, Hedge
gohack can be useful in some cases where a quick check is all you need. Since gohack obtains the dependency on its own, it makes it a bit faster to use than cloning manually. That said, I'd be concerned about committing the replace line accidentally, which is why I think the workspace approach is safer (and also more explicit)

https://eli.thegreenplace.net/2024/locally-patching-dependencies-in-go/
My usecase was ethical hacking, I needed to send 500 million of non RFC compliant HTTP/1.1 requests to 2.5 million hosts in a short period of time - ideally in a couple of hours.


https://www.moczadlo.com/2024/how-i-sent-500-million-http-requests-in-under-24h
In 2023, Go 1.21 introduced profile-guided optimization, or PGO. With PGO, you can provide the Go compiler a profile of your application at runtime, which the Go compiler then uses to make smarter decisions about how to optimize your code on the next build


https://cloud.google.com/blog/products/application-development/using-profile-guided-optimization-for-your-go-apps