There's no reason the REST API needs to be spending cycles generating the PDFs and emailing them. We should move that process to an SNS-triggered lambda and invoke it with all the pieces it needs to build/send the notification.
This should be easily done, since the backend is already decoupled by an event bus. We just need to have something grab the relevant events and republish them to the correct SNS topic.
There's no reason the REST API needs to be spending cycles generating the PDFs and emailing them. We should move that process to an SNS-triggered lambda and invoke it with all the pieces it needs to build/send the notification.
This should be easily done, since the backend is already decoupled by an event bus. We just need to have something grab the relevant events and republish them to the correct SNS topic.