Category Archives: Java

Java AIO (NIO.2) vs NodeJS

I just installed OpenJDK 7 on Ubuntu 10.04 LTS under VirtualBox (one core, 256 MB). I wanted to run a quick test to see how the new JDK7 Async channel APIs were performing in comparison with node. A simple test …

Quick benchmark checkpoint on Java and NodeJS

Java (my nodejs-inspired NIO/Netty based HTTP server):

Server server = Http.createServer();
server.setRequestListener(new RequestListener() {
    @Override
    public void service(ServerRequest request, ServerResponse response) {
        HashMap<String, String> headers = new HashMap<String, String>();
        headers.put("Content-Type", "text/html; charset=utf-8");
        headers.put("Content-Length", "47");
        response.writeHeader(200, headers);
        response.end("<html><body><h1>hüllo world</h1></body></html>");
    }
});

Facebook BigPipe in an Async Servlet

Since Subbu wrote BigPipe using node.js, I had to see how the same thing would look like in a Java async servlet.

Stephan Schmidt had already written Facebook BigPipe for Java, but using a synchronous servlet model, not …

Out of the Eclipse to Netbeans

I have been using emacs and the command line for now almost 20 years. Once in a while, I dip into IDEs, but always go back to the command line. My biggest gripe with IDEs is that it keeps me …

Painfully HTTP Java

I have been working on AtomPub and coding a prototype over the past few evenings to get Apache Abdera talking to CouchDB. I know there is an experimental adapter in Abdera for CouchDB, but it does not use CouchDB …

Sun Microsystems set to buy MySQL

This is truly amazing. Sun and Oracle are set to buy all letters on the LAMP stack, with now Sun buying MySQL for 1 billion dollars (thanks Pascal for the ping). Maybe now Monty and David will start competing with …

Java EE 5, still too complex

The Java EE 5 architecture, with its use of annotations brings the Java world close to being agile. The architecture is absolutely fantastic and powerful, with superb messaging (JMS), persistence (EJB3), transactions (JTA), and integration (JCA) capabilities.

However, on the …

SOAP and RMI

Latest benchmark results on WebSphere 6.0.1 seem to indicate that SOAP/HTTP outperforms RMI/IIOP. Interesting, it makes me wonder if the reason comes down to IBM abandoning CORBA and placing the best developers on the SOA field. Otherwise there is really …