<aside> ⚠️ Make sure to check SPAM folder for emails sent by our system as they are usually filtered by the spam detectors.
</aside>
Outline of the process for what happens when an admin subscribes to a flight’s events which mainly consists of when a flight booking occurs and how our async task queues and workers aid with this process to achieve maximum efficiency and productivity. We split this process into two queues to achieve extensibility and keep the architecture future-proof for when a hypothetical developer wants to add more webhook events to the system.
Admins can listen to the following flight events (as of August 2022):
Sequence diagram made using Mermaid.js
This process highlights how we send PDF invoices and flight tickets as part of our booking confirmation email. This workflow also utilizes an asynchronous task queue to delegate and offload work from the main thread of the backend application so that workers can send emails whenever they are ready. Emails are scheduled to be sent instantly but the latency but the scheduling of the job and the arrival of the email depend on the amount of jobs in the queue.
Sequence digram made using Mermaid.js
This process simply higlights how our system utilizes asynchronous task queues to send registration emails that are delayed for 1 hour from the time the client’s account was first created. We use Auth0 actions to relay to our system that an user has logged in.
Sequence diagram made using Mermaid.js