How I improved the ScholarX Email Notification System?
Unlocking Efficiency: Enhancing ScholarX's Email Notification System
ScholarX, a program aiding Sri Lankan undergraduates with premium mentoring, is on the brink of an innovative shift. Amid their manual operations, they're transitioning toward an automated platform. In a recent venture, I delved into refining their email notification system.
To gauge the existing system's performance, I crafted a test using my LinkedIn account and simulated mentor additions. The results revealed a significant lag: nearly 17.87 seconds to receive server responses per email. Extrapolating, sending to 500 accounts could devour 41 minutes due to the system's synchronous email delivery, causing a bottleneck.
Determined to streamline, I scoured solutions. While third-party email services like Sendgrid offered API-based speed, their daily email limits posed a risk given ScholarX's bulk notifications. Enter multi-threading—a game-changer. Implementing this method slashed response times to a mere 40.1ms, a staggering 97.64% improvement.
Confident in this solution, I documented my findings on SEF Hive, showcasing the performance leaps and proposed enhancements. Subsequently, the SEF development team validated and accepted my implementation, steering ScholarX toward optimized efficiency. Find the detailed journey and results in my post and pull request below.