On 09/10/13 13:16, Xomi wrote:
> Hi everyone,
>
> I'm currently in the process of starting a new project and I am
> evaluating different technologies. Since the project will be based
> on real-time communication (chat) with many concurrent users, I'm
> considering the following platforms:
> 1. Vert.x
> 2. Java EE
> 3. Node js
>
> My question is: what is the main advantage of using Vert.x compared to
> using standard J2EE?
>
> I understand the performance gains of using asynchronous, event-based
> programming, but as I understand, the latest
> servlet specification also supports asynchonous calls.
Yes, but most of JavaEE is still synchronous.
> I understand the gains of using separate processes that communicate
> only through messages (EventBus), but I can acheive that easily in the
> J2EE world by using JMS.
JMS has a much clunkier interface and isn't available in other languages
or the client side.
> I understand that vert.x supports
> web sockets but many app servers also support them and with JSR-356 it
> is now standardized.
Websockets are still poorly supported in real-world networks including
corporate proxies and such-like. That's why Vert.x supports SockJS which
automatically falls back to other protocols.
>
> So, could anyone elaborate why is vert.x better for real-time
> applications?
> (can we just ignore the polyglot part, which is, in my case irrelevant)
Are you sure the polyglot part is irrelevant for you?
From the fact that you are considering JavaEE (which is Java only) and
Node.js (which is JavaScript only) implies you haven't made up your mind
on programming language yet.
A good thing about Vert.x is you don't have to make up your mind - use
JavaScript for the parts where JavaScript is better (e.g. scripting,
glue code etc), and use Java for the parts where Java is better (perhaps
more complex logic where you want the benefits of type safety).
Other reasons you might want to consider Vert.x over JavaEE/Node.js are:
Simplicity - very easy to run things without complex configuration,
packaging etc. (Well node is simple in this regard, but JavaEE not)
Performance - Vert.x wipes the floor with Node.js
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "vert.x" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
vertx+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.