Replies: 1 comment
-
Are you using Tailwind? Generally these sorts of issues are caused by Tailwind as it is not in the most optimal implementation atm. If you are using the If this isn't Tailwind it would be interesting exploring what exactly causes the issue for you here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
We're encountering a significant performance issue after integrating the React Email package in our Node.js backend, hosted on AWS EC2 t4g.micro.
Setup:
We use Turborepo for our monorepo setup, with a backend built on Node.js and Express.
Package Functionality: We created a transactional package that takes props, runs renderAsync with a React component, and returns the generated HTML. This HTML is then sent using SendGrid.
Issue:
When we import any method from our transactional package built with React Email, the CPU utilization on our AWS EC2 t4g.micro instance spikes dramatically. The server's performance degrades significantly, processing requests slower until it eventually crashes. Notably, the issue arises even if we don't call the imported functions; simply importing the package causes the problem.
Upgrading to a t4g.small instance resolves the issue, and everything functions as expected.
Example of Usage:
Question
Are there any known minimal requirements for the React Email package, particularly concerning CPU or memory usage? Any insights or advice would be greatly appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions