hngprojects / hng_boilerplate_php_laravel_web

Apache License 2.0
146 stars 58 forks source link

fix: Queue Emails for Waitlist Registrations and Optimize WaitlistController #543

Closed abdielbytes closed 2 months ago

abdielbytes commented 2 months ago

Description

​Implemented functionality to queue emails when a user is added to the waitlist, ensuring that emails are sent asynchronously. This improves application performance and user experience. Additionally, updated the WaitListController to handle validation, error responses, and user registration more efficiently.

Related Issue (Link to Github issue)

https://github.com/hngprojects/hng_boilerplate_php_laravel_web/issues/544 https://github.com/hngprojects/hng_boilerplate_php_laravel_web/issues/542

Motivation and Context

The primary motivation for this change is to optimize the user experience by queuing emails instead of sending them synchronously during waitlist registration. This allows the registration process to complete more quickly, reducing the time users spend waiting for a response. It also prepares the system to handle a larger volume of registrations more effectively.

How Has This Been Tested?

This change has been tested on postman and through unit testing ​

Screenshots (if appropriate - Postman, etc):

image

Types of changes