Closed justinsisley closed 7 years ago
Don't make Node compile the email templates on every sendmail. Compile them to disk when the prod task is run, then read it from disk when needed.
Depending on the number and size of all of the email templates combined, you could keep them in memory, but it won't scale indefinitely.
Don't make Node compile the email templates on every sendmail. Compile them to disk when the prod task is run, then read it from disk when needed.
Depending on the number and size of all of the email templates combined, you could keep them in memory, but it won't scale indefinitely.