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.
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):
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
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):
Types of changes
Checklist: