You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently working on a project that involves running isolated Node.js applications on a virtual machine (VM) for individual users. The basic requirements are as follows:
Start a dev server for Node.js applications (e.g., npm run start) like for React.js or Next.js.
Provide a preview URL from the server to the user to view the result of their app.
Input and output to the shell for users to run commands like npm install, npm start, etc.
I have also explored different browser-based runtimes using WebAssembly, but they don't seem suitable for executing server-side code like Express or full-stack frameworks such as React and Next.js.
I am considering using Firecracker MicroVMs because they are lightweight, fast(as compared to traditional vms), and provide strong isolation. However, I would love to hear if Firecracker is a good fit for this use case or if there are any considerations I should be aware of.
Some specific questions I have:
Is Firecracker suitable for running Node.js apps in a user-specific isolated environment?
Can Firecracker provide real-time preview url of like localhost server from the running microVMs so that i can provide it in my saas iframe as src?
Are there any resources or guides available to set up Firecracker for this type of environment?
I’d appreciate any feedback, suggestions, or experiences related to using Firecracker in this type of environment.
Additionally, the Firecracker setup I’m aiming for is session-based, meaning each user will get their own isolated Firecracker instance when they pull up my saas. Essentially, every user session will spin up a fresh Firecracker MicroVM instance to execute their Node.js app. So, is firectl better option?
Will be going with firecracker if you guys can give some insights. Like i haven't tried firecracker before.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello Firecracker Community,
I'm currently working on a project that involves running isolated Node.js applications on a virtual machine (VM) for individual users. The basic requirements are as follows:
Start a dev server for Node.js applications (e.g., npm run start) like for React.js or Next.js.
Provide a preview URL from the server to the user to view the result of their app.
Input and output to the shell for users to run commands like npm install, npm start, etc.
I have also explored different browser-based runtimes using WebAssembly, but they don't seem suitable for executing server-side code like Express or full-stack frameworks such as React and Next.js.
I am considering using Firecracker MicroVMs because they are lightweight, fast(as compared to traditional vms), and provide strong isolation. However, I would love to hear if Firecracker is a good fit for this use case or if there are any considerations I should be aware of.
Some specific questions I have:
Is Firecracker suitable for running Node.js apps in a user-specific isolated environment?
Can Firecracker provide real-time preview url of like localhost server from the running microVMs so that i can provide it in my saas iframe as src?
Are there any resources or guides available to set up Firecracker for this type of environment?
I’d appreciate any feedback, suggestions, or experiences related to using Firecracker in this type of environment.
Additionally, the Firecracker setup I’m aiming for is session-based, meaning each user will get their own isolated Firecracker instance when they pull up my saas. Essentially, every user session will spin up a fresh Firecracker MicroVM instance to execute their Node.js app. So, is firectl better option?
Will be going with firecracker if you guys can give some insights. Like i haven't tried firecracker before.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions