Skip to content

feat: add database connection retry logic on startup#225

Merged
Userunknown84 merged 1 commit into
Userunknown84:mainfrom
Aharshi3614:feat/database_connection
Jun 23, 2026
Merged

feat: add database connection retry logic on startup#225
Userunknown84 merged 1 commit into
Userunknown84:mainfrom
Aharshi3614:feat/database_connection

Conversation

@Aharshi3614

Copy link
Copy Markdown
Contributor

Closes #208

Added database connection retry logic to improve server reliability on startup.

Changes:

  • Server now retries MongoDB connection up to 5 times
  • 5 second delay between retries
  • Clear error messages for each retry
  • Graceful exit with helpful troubleshooting tips

Before:

Server starts → Tries MongoDB → Fails → Crashes

After:

Server starts → Tries MongoDB → Fails → Waits → Retries → Success

@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

@Aharshi3614 is attempting to deploy a commit to the Aditya Sharma's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Userunknown84 Userunknown84 merged commit f029fc5 into Userunknown84:main Jun 23, 2026
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add database connection retry logic on startup

2 participants