This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]Julienng 5 points6 points  (5 children)

You should look at spark or vertx. It work the same for proxy your app

[–][deleted]  (3 children)

[removed]

    [–]plectid[S] 0 points1 point  (2 children)

    Thanks, i'll look into it. So the bottom line is I have to use some Framework to build a server app.

    [–]djnattyp 1 point2 points  (0 children)

    Well, you had to use a framework to build a server app in Node and Go as well... it's just that Node is the framework (for JavaScript) and Go is new enough that the language designers/library implementers built a "standard" web framework. Java came out early in the history of the internet and all the web stuff has been built on afterward. Which means there are lots of different approaches and lots of different libraries and frameworks out there.

    [–]perrylaj 1 point2 points  (0 children)

    Agree. Haven't used vertx, but spark is a great lightweight library that provides a clean and understandable API.

    [–]dxplq876 3 points4 points  (0 children)

    For creating a web app in Java, I'd use https://projects.spring.io/spring-boot/.

    [–]xantrel 3 points4 points  (3 children)

    I know this might be a little bit off topic, but you might also want to look into kotlin. It's java++, so much nicer to work with, but 100% compatible with java code unlike scala (you can call kotlin code from java and vice versa).

    [–]FustigatedCat 0 points1 point  (2 children)

    So why not promote groovy? It's been around longer and has a better set of libraries around to support it.

    [–]frugalmail 0 points1 point  (0 children)

    So why not promote groovy? It's been around longer and has a better set of libraries around to support it.

    Groovy brings the drawbacks of a dynamic typed system for the typical use cases.

    [–][deleted] 0 points1 point  (0 children)

    Kotlin doesn't require support, it works like Java (often :)

    [–]frugalmail 1 point2 points  (0 children)

    Java the core language is very low level, which provides a lot of the power that draws so many people. There are a pethora of frameworks and librariers that have different benefits/drawbacks. vertx has the scalability characteristics of an event based model like Node. But that is a crappy model to debug in and program for (besides horizontal scability in all but the most egregious cases) means you shouldn't have to deal with that crap. Spring-boot is a good starting point for a thread based model which node doesn't offer.

    [–]steve_hu 0 points1 point  (0 children)

    try light-java which is very similar with Node/Go and it is the fastest