Here at Gympass, one of our main concerns is how reliable and responsive our applications are, always taking into account how this could impact our partners and their business. Having a mature and stable solution is key to promote the responsiveness that our partners deserve and also a guarantee that they are not affected in a manner that could cause them harm, even in failure scenarios.
In this post, I would like to introduce you to an approach used at Gympass to handle failed webhook requests to our partners, looking forward to a smarter way to retry these notifications based…
Among Go’s great characteristics, there is the fact that the language treats functions as first-class citizens, what give us a lot of power and flexibility. Simply put, we can have functions that receive others functions as arguments, or functions that return other functions. Something like this:
Function woof receives another function that is then called from woof. Simple and cool, right?
Now let's suppose we have some more complex functions that receive other functions:
writeSomething receives a string, an int and a function that also receives a string and an int and returns a string. …
Software Engineer, Brazilian Jiu Jitsu practitioner and ramen lover. Doing amazing things @ Gympass.