JBoss Community Archive (Read Only)
Please note: a moderator needs to approve your content before it can be published.
Editing Post 'Monolithic application servers, web-scale and synchronous APIs'
in Mark Little's Blog
<body><p>So I mentioned in a separate entry that I have problems with the term "<a href="http://planet.jboss.org/post/web_scale_a_complaint">web-scale</a>". I get what the comment author is saying in <a href="http://jbossts.blogspot.co.uk/2015/05/application-servers-are-dead-apparently.html">that entry</a> and I agree with several of the sentiments that are made but it did raise a few interesting thoughts in my head. Some of them I thought I'd addressed over the years but perhaps it is time to revisit. Or simply reference again in case your favourite search engine isn't working.</p><p></p><p>I've definitely addressed the issue of monolithic application servers in the past, whether through articles like <a _jive_internal="true" href="https://developer.jboss.org/blogs/mark.little/2011/07/27/application-servers-are-dead">this one</a> or <a href="http://jaxenter.com/jax-london-keynote-mark-little-middleware-everywhere-ready-for-mobile-cloud-108173.html">presentations</a>. Monolithic application servers do exist, but there are application servers (Java and Java EE based) that simply <a href="http://www.drdobbs.com/jvm/jboss-application-server-7-is-the-monoli/231001715">don't match those characteristics</a>. Whilst an application server may not be right for your use cases it's far better to rule it out based upon objective analysis than some (almost) subjective definition. I said a few months back that <a href="http://markclittle.blogspot.co.uk/2015/02/container-less-development.html">containers aren't all bad</a>! Even as early as last year <a href="http://www.infoq.com/news/2014/08/microservices_ballmud">there were some good discussions</a> about monoliths, microservices and balls of mud that would be well worth spending a few minutes reading and thinking about, because a knee-jerk reaction to a so-called monolithic architecture isn't necessarily going to give you the benefits you're after.</p><p></p><p>It's also interesting to think that the move we're seeing in the industry towards separate services is very much in line with what we had <a href="http://www.cs.vu.nl/~ast/books/ds1/09.pdf">back in the CORBA days</a> (something I've repeated a few times.) No, I'm not suggesting CORBA got it all right! Something else that was very much at the heart of CORBA was <a _jive_internal="true" href="/blog/update-post.jspa?ID=5722&draftID=371907">asynchronous invocations</a>. This <a href="http://www.cs.wustl.edu/~schmidt/PDF/ami.pdf">wasn't just something that was an add-on/bolt-on to synchronous APIs</a>. Now in the transition from CORBA to Java EE we lost some of this work in favour of the more traditional (synchronous) <a href="http://www.cs.ncl.ac.uk/publications/trs/papers/200.pdf">RPC approach</a>. If you've done your homework (or were around back then) you'll understand why RPC was (and still is) used so much in distributed systems: <a href="http://www.cs.ncl.ac.uk/publications/inproceedings/papers/638.pdf">most of the languages</a> we use(d) are procedural and it's natural to want to extend that paradigm to distributed programming and make remote invocations opaque. Now of course there are <a href="http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.41.7628">well know issues</a> with this approach but that's not really the subject of this article.</p><p></p><p>The point I'm trying to make is that asynchronous programming isn't the domain of new languages and frameworks. Whilst I do agree that many of the APIs we have grown used to today are synchronous in nature and retro-fitting asynchronous approaches on top would be hard or impossible, it's worth remembering that there's often a good separation between interface and implementation in many mature implementations. For instance, some component implementations within various application servers date back to the CORBA days (or <a href="https://www.usenix.org/conference/wiess-02/examination-transition-arjuna-distributed-transaction-processing-software">even further</a>), and may have even been designed with asynchronous in mind. So whilst the APIs of some Java EE components may not easily be used asynchronously it's worth remembering that there is a large body of research and development which will help that rapidly evolving front of our industry build on much of what is there today, assuming of course that some implementations aren't there already. As I've said many times before, <a href="http://planet.jboss.org/post/jboss_polyglot_death_of_java">I hate reinventing the wheel</a>.</p></body>