Greach 2013

Vert.x, simplificando el desarrollo de aplicaciones asíncronas

Stéphane Maldini  · 

Transcripción

Extracto de la transcripción automática del vídeo realizada por YouTube.

hi apologize in advance for my damn french accent i try to be a better speaker with time but obviously it's not right now so I'm replacing a colleague in fact I'm replacing throughout Williams which is a vertex camita unfortunately couldn't

make it today for personal reasons anyway I know vertex better than him so you don't lose a chance so like him I'm a consultant at spring sauce division of VMware and of advertising and before going further I would want to know who has already played

with vertex right so this talk will be a net reduction rather than complicated stuff so I think we have the right attendees for that here we go well you can't wit you want what the yes vertex is one of the face Fatah's fish face test applications framework

today I think it's even faster than some type stuff like play from work but you well vertex is not as complete as play from work and we'd see what does it mean and what where we'd go with the current vertex world map so what is vertex vertex is

a no GS as outlined by someone else in previous talk it's a like not yet supply to the GV m it's a polyglot not GS so you can write your note GS program in Java as well as groovy Python and Ruby and Earl and groovy and a lot of bindings are coming

I've heard about closure I've out about skala and some stuff like that's very interesting I I can't wait to see the closure implementation to be honest because I've never understood closure so maybe it's time to understand well so aside

from the fact it's fully glad it's all so simple that what they say and it's normally scalable same but for sure it's a synchronous and way way I I was about to say way too much but we have it's not it's never too much a synchronous

so the current bindings you can write the application as I've just said and relieved I some groovy but you can also just write in JavaScript and and and coffee script because it's based on JavaScript and and then use an oncology as from work to write

your application as well you can mix also which is a very interesting because sometimes for especially for the UI you don't want to write server site and play it for instance and and write a separate JavaScript on plate for for the UI in that case might

be interesting to make JavaScript even on the server side with funston screwy and even if it's simple the things you can do with vertex are can be quite complex so it doesn't it doesn't refrain you too from from being from doing any kind of web

application or even service application you don't even have to do a web application to use vertex there is there isn't any configuration fights in fact this is not very true because there is one I've I found it they hide it but if you need to play

with some clustering option you will need to tweak one xml for for the framework and online from what wishes hauser cast but we'll see that a bit further after why why we say a vertex is scalable vertex is scalable because first the shredding the shredding

parody used by vertex is quite interesting it is the very well known noun selector button which means behind how does the hood they use a very famous server which is nettie and using any niño button for massive concurrent connections is interesting if you

know bit about selector you know that the selector is just a loop a single threaded loop which selects depending on the event the processing to do so with one thread you can unload tons of connection because the loop just dispatch everything as soon as they

come into the loop in fact so you're not looking any connection and in your connection you're not blocking any processing it's just dispatched as soon as it reached the loop while it tries to and we'd see that very important thing also to consider

because if you start doing very long operation in vertex modules that may this is maybe not the right button for you because blocking operation we block every other operation since a single thread will dispatch everything but we'll see our vertex walk

around that thing another cool thing about the scalability and vertex the more you run vertex in a same some network the more you haven't senses clustering automatically for you a bit like elastic search in fact if you run two attacks in the same machine

automatically you have to weld sacks and a load balancing is done for you by vertex that's very interesting well about the a synchronous part so vertex offers a certain number of API for a synchronous processing so the first thing well that x is an i/o

framework and I've just told you about that the second thing the second thing the handles everything in vertex only everything except a handler which is a listener call back you can attach to every course so like not GS you don't block on calls on

method calls so you need to attach a callback for everything just to be informed noticed that something that the operation has success successfully runs so that's an important part of vertex as well also the event birth which is a I think the very core

and the primary feature of vertex the event bus is very interesting by default vertex provide you a bus message bus where you can publish to a certain address for instance you can listen for tweets and publish on the same address to it with data from Stan

transition is on twit so the inverse is more interesting mexico what its color I'll soon also there is a PI system like the other API in fact it's still using the cool back parody and the asynchronous feature so for instance if you do an open on file

you need to attach a call back to be noticed that the fight has been open if you start reading a file you need to attach a call back to to be noticed every line on every line reads so as you can see the call back and the Hound lopera dyckman is quite quite

used there and the example so a vertex application can be as simple as that in fact this is in JavaScript mode so you can use the load vertex GS and it will it will generate for you the computer required configuration and the binding for the current JavaScript

[ ... ]

Nota: se han omitido las otras 2.983 palabras de la transcripción completa para cumplir con las normas de «uso razonable» de YouTube.