Re:Apache Kafka – Publish-subscribe messaging rethought as a...
by shmerl on Wednesday March 12, 2014 @01:29PM
(#7386991)
Garbage collection is a big downside since it introduces an implicit level of uncertainty and unpredictability performance wise. For intense I/O I'd also go with C++ over Java in general.
[ Parent
| on HN ]
Re:Apache Kafka – Publish-subscribe messaging rethought as a...
by kushti on Wednesday March 12, 2014 @01:48PM
(#7387089)
It depends on memory usage patterns. In some cases Java's GC could be even faster than malloc/free. I could say more, it's meaningless to discuss such provocative topic as "performance" with no any details.
Re:Apache Kafka – Publish-subscribe messaging rethought as a...
by shmerl on Wednesday March 12, 2014 @01:51PM
(#7387113)
Of course it depends. My point is, it's too unpredictable, even if you assume certain patterns are better or worse. That's why systems with RAII are much better by design in this aspect.
Re:Apache Kafka – Publish-subscribe messaging rethought as a...
by samplonius on Wednesday March 12, 2014 @03:43PM
(#7387812)
This is just cargo cult thinking: Java is bad. GC is bad. C++ is not Java, so it is good.
The only thing to do, is get on your coconut radio and wait for the planes to bring you some cargo. While you are waiting, Kafka is a useful MQ for event processing and is being used to solve real world problems today.
Re:Apache Kafka – Publish-subscribe messaging rethought as a...
by oscargrouch on Thursday March 13, 2014 @12:15AM
(#7390022)
He gives a technical based explanation, wich is pretty accurate.. and not a emotional biased answer..
Re:Apache Kafka – Publish-subscribe messaging rethought as a...
by shmerl on Wednesday March 12, 2014 @03:54PM
(#7387900)
You obviously didn't get the point.
Re:Apache Kafka – Publish-subscribe messaging rethought as a...
by pjmlp on Wednesday March 12, 2014 @02:13PM
(#7387249)
RAII semantics can be implemented in most GC languages nowadays with try/using/with/... Or with lambdas if the language allows for it.
RAII in C++ is a good pattern, but it does not avoid performance penalty of cascading release of resources, impossibility of using exceptions in destructors or thread contention with shared resources.