Skip to content

added retry logic on DB after fail#2

Open
vasuantala049 wants to merge 1 commit intomadhurajayashanka:mainfrom
vasuantala049:serverfix
Open

added retry logic on DB after fail#2
vasuantala049 wants to merge 1 commit intomadhurajayashanka:mainfrom
vasuantala049:serverfix

Conversation

@vasuantala049
Copy link

💡 Description:

This pull request introduces several improvements and refactors to the backend server logic:

Added retry logic in server.js to automatically attempt reconnection if the MySQL server fails initially.

Improved error handling for database connection failures.

Renamed all references of db → mysql throughout the backend for better clarity and naming consistency.

Cleaned up minor formatting issues and improved console messages for better debugging.

✅ Testing:

Verified that the backend successfully retries the MySQL connection after simulated failures.

Confirmed all API routes function correctly after the refactor.

Tested locally with Docker setup to ensure stability.

📸 Additional Notes:

This update enhances the backend’s reliability and maintainability by improving fault tolerance and making database naming more descriptive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant