A friend in need – a JS indeed
summary
A server generates per-city fare calculator classes as JavaScript and ships them to clients; a native V8-style runtime (via a small JNI wrapper) executes the script every five seconds so drivers can compute fares offline. The system handles millions of users across dozens of cities, 20% of requests are offline, and Fibonacci microbenchmarks show JS near-native latency (native ~20 ms, JS only a few ms slower). Deployed to ~10–15 cities, it works but required hotfixes after rollout.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 3:11Gettaxi service evolution
- 7:13Offline logic problems
- 10:47Dynamic code solution
- 16:06Fast JavaScript runtime
- 18:58What is WebAssembly
- 21:05Calculator workings
- 24:38New approach benefits
- 26:46Production bug fixes
- 30:14Security and injections
- 32:26Business opportunities
- 34:13iOS limitations and fixes
- 35:15Why not Lua
- 36:19Client data sync
- 38:07Summary and Q&A
related talks
29mhome-grown server-side scripting
26mRyan Lewis - SeattleJS Conference 2017
23mFrontend for a server-less stack — Brian Douglas
29mJavaScript's Journey to the Edge
26mSupporting many JavaScript Runtimes in Remix
37mThe Smart Platform. A JavaScript P.a.a.S.
19mThe Road to Node.js
34mThe Road to Hype: How NoSQL became Serverless
