4 ms·
Golang is focused on scaling/concurrency, is very compact and fairly quick to learn. You can compile a single binary and deploy it anywhere. You can build a web
by cdnsteve 9y ago
Golang is focused on scaling/concurrency, is very compact and fairly quick to learn. You can compile a single binary and deploy it anywhere. You can build a web server in a few lines of code. It's really strong for processing tons of requests, web API's and backend code.
Java requires a whole app server which is more of a pain to setup. (generally speaking for web dev, think Tomcat, JBoss). It's way more verbose and you really need to rely on the power of an IDE to help code for you, importing class libraries, etc.
Spend a few hours with each, they're very different. Coming from Node/PHP you should be able to pickup Golang faster.
- BlueMatador 9y agoAgreed. If your speciality is in DevOps, it's probably going to be golang for you. We wrote a blog post about it here: https://blog.bluematador.com/posts/mini-guide-google-golang-why-its-perfect-for-devops/ https://blog.bluematador.com/posts/mini-guide-google-golang-...
- adl 9y agoIn the JVM ecosystem you can use Jetty and have a simple embedded App Server. No need to install or configure Tomcat/JBoss, etc. Spring Boot and Dropwizard makes this dead simple, a single .jar file with everything you need to run your app.
- darreld 9y agoI can set up a basic Tomcat instance, ready for a deployment, in a couple minutes. Weblogic or JBoss is more pain but you don't necessarily need that.
- saryant 9y agoJava definitely does not require an app server. I'd also submit that few concurrency libraries are as battle-hardened as java.util.concurrent.* at this point.