-
-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add database connection retries (#82)
Prevents a temporary database connection error from shutting down entire server. When connection to database fails then the server will retry with exponential backoff and jitter, preventing server from shutting down.
- Loading branch information
Showing
7 changed files
with
294 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
2a954b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@w3b6x9 this seems like a pretty historic commit. from what i can tell, at this point, they had just posted a job to maintain the repo for an "elixir expert", and then here you come with with this commit, and you've just been cranking them out ever since. did you have a lot of experience in elixir at this point?
2a954b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@barbinbrad hello there! I started working with Elixir/Phoenix on a side project around February of 2020 and just kept using the same stack for a few other side projects last year. I learned about Supabase and the Realtime server repo early summer of 2020, and for the rest of the year, I would regularly check the development of Realtime. I was winding down another side project late last year and decided to jump in and finally contribute for a change of pace. A short while later I was fortunate enough to get hired by Supabase and I've been working with the team and contributing regularly to Realtime for the past year.
What brought you to Realtime? Have you had a chance to work with Elixir/Phoenix?
2a954b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @w3b6x9 thanks for sharing your story. it's really inspiring work. i'm preparing for a new job that's using elixir, and i don't have any experience, so i've been reading through the commits of the best elixir repos i can find. got any recommendations?