### **Context:** - Spring Boot backend (Docker, VPS deployed with blue-green) - Async email already implemented (ThreadPoolTaskExecutor) - EmailService using interface + SMTP implementation - PostgreSQL available - Redis NOT used - Goal: Add a retry mechanism with failure tracking ### **Requirements:** - Store failed emails in DB - Retry using the scheduler - Track status (PENDING, FAILED, SENT) - Clean integration with the existing EmailService - Production-ready design (no overengineering) **_Proceed step-by-step._**
Context:
Requirements:
Proceed step-by-step.