zerobase-io / smart-tracing-api

Backend/DB/API repository for the Zerobase platform
Apache License 2.0
6 stars 9 forks source link

Extract PDF Generation and Notifications from the API #79

Closed toadzky closed 4 years ago

toadzky commented 4 years ago

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.