GET Vert.x - an asynchronous, event-driven framework created under the influence of node.js. Part 1 / Sudo Null IT News FREE
Howdy!
It's same trendy to use node.js. at the moment. However, not everyone likes him. In this review, I would like to talk a bit about the competitor that was written under the influence of
client.js. Vert.x is an asynchronous, event-driven framework whose goals intersect with the hot node.js. High performance, simple asynchrony and configuration are all on vert.x.
The first version of the framework was released in 2012, spell node.js was released in 2009. However, VMware is already supported and can run on CloudFoundry.
Main characteristics of the product under the cut:
- Multi-lingual. You buns use JavaScript, Ruby, Groovy, Java, Python. Almost ready to support Scala and Closure
- opensource. ASL 2.0 license
- unfeigned concurrency and high public presentation
- written in java, and uses totally the delights of the JVM, grading easily between cores, without having to worry about interprocess communicating
- Uses the Hazelcast - In-Memory Data Control grid System. Transparent to the exploiter naturally
- Uses Netty
- Super dolabrate concurrency model. No synchronized or volatile, or explicit locks
- Nobelium noodle xml configs. Everything is extremely simple.
- Modular organisation with in the public eye repository
- Distributed message coach that spans some host and client.
- Embedded version available
- According to various tests, maybe the most productive framework in its class
- Requires JDK 1.7
- WebSockets, SockJS support
Interesting? Example rest helloworld along scala:
class SampleResticle extends Resticle { override def handles = { GET("/howdy") :> OK( _ => "world ") } }
or a simpler server example serving the webroot directory. Groovy example:
vertx.createHttpServer().requestHandler { req -> def file = req.uri == "/" ? "index.hypertext markup language" : req.uri req.reply.sendFile "webroot/$file cabinet" }.listen(8080)
In society to run for example the finis helovorld, you need to DO:
vertx run Host.groovy -instances 32
As you can check, everything is extremely simple and clear.
After looking at the code examples and version the principles, I by nature decided to hindrance the authors' statement about super performance. I looked for comparisons with node.js.
The first graph shows the mental test results when only 200 / OK responds are given. The
2nd test gives a 72-byte hypertext markup language page:
tests are taken from here . These tests were conducted relatively weeklong ago. I have more detailed testing materials ready. I will tell about him in the third part.
Unfortunately, these tests do not contain scala tests. Every bit you know, scala in many cases is faster than coffee.
Perhaps for a Friday post, this is adequate. In the next part I will talk roughly the radical principles and patterns used in vert.x.
Project website . The link is excellent documentation.
DOWNLOAD HERE
GET Vert.x - an asynchronous, event-driven framework created under the influence of node.js. Part 1 / Sudo Null IT News FREE
Posted by: singletonworper58.blogspot.com
0 Response to "GET Vert.x - an asynchronous, event-driven framework created under the influence of node.js. Part 1 / Sudo Null IT News FREE"
Post a Comment