for the Java Enterprise Ecosystem for the Java Enterprise Ecosystem Niko Köbler ( ) @dasniko {JavaScript}Training Node.js on the JVM Node.js on the JVM
on Google V8 engine What JavaScript has done for the webbrowser, Node.js is doing for the backend server Asyncronous, non-blocking, evented I/O with JavaScript http://nodejs.org var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World\n'); }).listen(1337, '127.0.0.1'); console.log('Server running at http://127.0.0.1:1337/');
everywhere these days - from browser to server to mobile - and now you, too, need to learn the language or dive deeper than you have. Dr. Axel Rauschmayer http://speakingjs.com
is the language of choice for high performance, low latency applications and has been powering everything from robots to API engines to cloud stacks to mobile web sites. Node.js Advisory Board - October 23, 2014
written in JavaScript, written in JavaScript, will will eventually be written in eventually be written in JavaScript JavaScript Atwood's Law http://blog.codinghorror.com/the-principle-of-least-power/
feature competes with Google V8 ECMAScript 5.1 compatible (ES6/ES2015 with Java 9) Seamless interoperability of Java and JavaScript Shell Scripting Language and API Extensions http://openjdk.java.net/projects/nashorn/ closures, collections & for each, multi-line string literals, string interpolation, __noSuchProperty__, __noSuchMethod__, typed arrays, binding properties, error extensions, conditional catch clause, String functions, and many, many more...
-fv var host = "DOCKER_HOST" var dockerUri="http://${host}:5555/containers/json"; var command = "curl ${dockerUri}"; $EXEC(command); var containers = JSON.parse($OUT); for each(container in containers){ print("${container.Image} / ${container.Names[0]} / ${container.Status}"); } (by ) Adam Bien
Node.js / IO.js is very popular Operations, monitoring and integration lacks JVM is Enterprise environment of choice (and all the above lacks are already solved) Run JavaScript on the JVM thanks to invokedynamic (Nashorn, DynJS) Re-use your infrastructures and libraries with Node Nodyn from Red Hat Re-use of Node API module, integration of Netty and Vert.x Process-bindings in Java/JavaScript Embed Node.js apps into your Java applications Run Node.js apps in distributed environments