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
Post a Comment