supertokens-core icon indicating copy to clipboard operation
supertokens-core copied to clipboard

Use https://www.graalvm.org/ instead of OpenJDK for lower RAM consumption, and to reduce the problem of cold start

Open rishabhpoddar opened this issue 4 years ago • 2 comments

This issue is thanks to the team at manycore.io

We currently use a JRE extracted from OpenJDK 12.0.2. This comes along with the SuperTokens zip file that's downloaded via our website. It's also present in the various docker containers that we ship. The docker containers can be found in the org repos list and have a name like "supertokens-docker-"

Docker Image size: 161MB (for the one compatible with MySQL) Minimum resources consumed (see the supertokens row. Others are there for a comparison): Screenshot 2020-09-23 at 18 32 21

rishabhpoddar avatar Sep 23 '20 11:09 rishabhpoddar

Any news regarding this? It's been almost 2 years :-)

edulix avatar Jul 25 '22 09:07 edulix

@edulix yeaaa.. well, this is something we definitely want to do. It's just not been too much of a problem with just using open JDK, hence haven't gotten around to doing it. However, please feel free to help out if you can.

rishabhpoddar avatar Jul 25 '22 11:07 rishabhpoddar