News for hackers. Stuff that matters.
Re:Jocko – Kafka implemented in Golang by Thaxll on Saturday January 21, 2017 @01:16PM (#13451279)
And yet it does, try to create a simple API in Java vs Go and look at the memory of both program, there is no need for white paper to see that the JVM at least will allocate 100MB~~+ where Go will start bellow 10MB.
Re:Jocko – Kafka implemented in Golang by caconym_ on Saturday January 21, 2017 @01:20PM (#13451301)
He addressed this:

> Java has a bad reputation for memory usage among people who have never run substantial programs because a Java hello-world (or other small programs) will often allocate itself a decently sized heap. Java programs also take a while to start up because of the JVM, but that doesn't make Java slow.

Re:Jocko – Kafka implemented in Golang by Thaxll on Saturday January 21, 2017 @01:30PM (#13451353)
In a world where we break down monolithic applications into smaller services it's clear that the JVM memory model at startup is way bigger than any other language, I'm not sure how one can argue about that.

Since those "micro services" have just a few features, their memory won't grow up that much over time, so the startup memory is an important factor.

Re:Jocko – Kafka implemented in Golang by caconym_ on Sunday January 22, 2017 @02:51AM (#13454183)
I'm not a Java expert (or even a semi-frequent user of it) but I think it would be pretty crazy if you could not override the default initial heap size and, indeed, it seems that you can: http://stackoverflow.com/questions/1951347/xms-initial-heap-...
Re:Jocko – Kafka implemented in Golang by dastbe on Saturday January 21, 2017 @01:34PM (#13451366)
I agree that the focus on memory size is misguided, but I do think that startup times are critical even (especially?) in production. Compounding the startup time of the JVM w/ classpath searching and reflection heavy libraries and frameworks really impact dynamic scaling and deployment. When I can setup monitoring that dynamically scales my application fleet in seconds, having to eat the cost of both a large binary (JDK + all of my various libraries) and then the startup cost of that application hurts.

I'm not saying that Java applications can't be built to be small and fast, but its not how most of industry had thought about building them. Golang has the benefit of not having that legacy to begin with.

Re:Jocko – Kafka implemented in Golang by saryant on Saturday January 21, 2017 @01:42PM (#13451396)
Dynamically scaling a Kafka cluster in seconds is generally not something you're going to want to do anyways, regardless of what it's implemented in.

Rebalancing partitions isn't fast.

Re:Jocko – Kafka implemented in Golang by dastbe on Saturday January 21, 2017 @02:13PM (#13451549)
I wasn't commenting to Kafka specifically (I've never operated a Kafka cluster in a production environment), but Java applications in general.