High density server side java script
summary
Claim: run 1,000 lightweight server‑side JS apps in one OS process and show ~150 MB total (~150 KB per app), cutting a €5 shared hosting slot to about €0.30. Prototype uses a V8 hosting layer called denser, mixes V8 isolates (one per thread) and V8 contexts (many per isolate) with node/vm primitives on Windows. Shows per‑app CPU/memory/network metering. Limits: runaway loops can starve a shared thread and current V8 lacks native per‑context memory caps so GC and preemption strategies are required.
AI-written summary · about
chapters (11)
- 0:00Start
- 0:16High density server side JavaScript
- 0:46You have just developed a lightweight web application
- 2:30Now you must find a place to host it
- 3:00It should be cheap to run lightweight web applications
- 3:28Application density is the key cost factor in shared hosting
- 4:42The price of a hosting plan goes down when application density increases
- 6:30Shared hosting plans require isolation and resource use metering
- 10:42Can we do better than process scope?
- 10:53Using threads instead of processes increases application density
- 21:08Sharing a thread between applications increases application density
related talks
23mRuntime.JS: V8 JavaScript Kernel
19mPocket-sized JS
24m10 things I learned making the fastest JS server runtime in the world
29mhome-grown server-side scripting
38mBuilding Universal Apps
41mJerryScript: An Ultra-lightweight JavaScript Engine for the Internet of Things
27m10 things I learned making the fastest JS server runtime in the world
36mSelf-hosted JS
