Graal: Using JVM libraries in Node.js
summary
GraalVM + Truffle lets Node run JVM libraries by starting Node with --jvm and exposing a global Java object; synchronous Java calls work directly but block the event loop. A bcrypt Java lib integrates, warms to about 8,000 requests per second (roughly 50% slower than native), but concurrent logins collapse throughput. A thread-safe callback wrapper called bindCallback plus a worker queue is built to let JVM threads safely invoke JS and await a Promise; it works but adds complexity and operational risk.
AI-written summary · about
chapters (9)
- 0:00Start
- 0:40Agenda
- 1:22Jvm Compiler Interface
- 7:24Jvm Interoperability
- 10:25Bcrypt
- 21:29Rabbitmq Push Api
- 22:25How To Do Callbacks Withdrawal
- 24:41Interface for a Message Queue
- 28:07Bind Callback
related talks
59mGraalVM: Run Programs Faster Anywhere
01h 00mNode.js: Faster, Higher, Stronger with GraalVM
40mThe need for speed. What is GraalVM and how can it help you?
50mGraalVM for Java developers
52mGraalVM: Run Programs Faster Anywhere
03h 07mEverything you need to know about GraalVM
49mGraalVM: Run Programs Faster Anywhere
47mBecome a Polyglot by learning Java!
