vert.x - It's possible inlcude worker module in standard verticle? -


using vert.x in java,
use worker module ( ebean orm ) in standard module(event loop) declaring "include" in mod.json or better setting ebean module system-module.

will block event loop , should use eventbus instead?

if module has blocking code (using blocking apis or doing lot of computation), should not use on event-loop. golden rule: never block event-loop. otherwise application won't responsive.

even if code in module non-blocking, i'd try use standard module way: can reuse different languages easier , if decide change internal implementation details in future, won't break user-code easy have json interface via event-bus.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -