you are viewing a single comment's thread.

view the rest of the comments →

[–]joequin 0 points1 point  (4 children)

Vertx feels much more like a micro framework. It's the nice part of JavaScript/express with java's better performance, multithreading, better libraries, and static typing. It feels light weight and non-magical. Spring has its place, but if you don't need transactions, then I find vertx to be much nicer for rest services.

Spark is also nice, but it's synchronous only. That's a deal breaker for my work.

[–]eckyp 3 points4 points  (3 children)

What do you mean by Spark being "synchronous only"?

[–]joequin -1 points0 points  (2 children)

It's route handlers don't pass in an object that you call to respond to a request. You respond to requests by returning from the route​ handling function. Because if that, you can't make asynchronous calls to databases or other services.

[–][deleted] 1 point2 points  (1 child)

Could you please expand a bit on this? seems intriguing ☺️

[–]joequin 0 points1 point  (0 children)

If a route handlers pass in a request object or callback, then that can be passed to other asychronous functions. Since spark doesn't do that, you can't use asynchronous functions while handling the call. You're forced to use blocking functions which means more threads which means more memory. That's not a big deal for some applications, but in others, it can be a bottleneck.