Skip to content

Why implement the engines in rust ? #2348

Answered by ryands17
allyraza asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @allyraza 👋
The main reason for implementing the engines is Rust is that in Prisma 1 was implemented in Scala which means it needed the JVM to run. To reduce the overhead of running Prisma, we decided to rewrite it in Rust.

Benefits of Rust would be a significantly lower memory footprint and better performance than the JVM (or any other runtime like Node for that matter), and no more need to deploy, monitor and maintain an extra server to run Prisma 2.

We are also thinking of enhancing the bindings for Node with Rust here which would significantly improve performance.

Hope that answers your question :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sytten
Comment options

Answer selected by jharrell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants