News for hackers. Stuff that matters.
Re:Publishing with Apache Kafka at The New York Times by BenoitEssiambre on Wednesday September 06, 2017 @03:31PM (#15186454)
I tend to be the one arguing this, to stick to postgres for most things but even I will admit it does depend on scale.

I'm not sure what the NYT requirements are but from my understanding of Kafka, its persistent redundant distributed queues scale automatically horizontally across machines to support colossal amounts of data. It's possible that they had difficulty fitting everything in a postgres instance.

Re:Publishing with Apache Kafka at The New York Times by pram on Wednesday September 06, 2017 @06:07PM (#15187524)
Kafka by default is not persistent, the logs expire after 7 days. You can increase it on a per topic basis. It also doesn't scale automatically. If you have three replicas on a single partition topic, they will live on their assigned broker forever unless you manually reassign them. Adding new nodes does not kick off rebalancing of partitions. Its automatic cluster management is very primitive compared to something like elasticsearch.

For example, if you lose a broker, the replica will just be gone forever. Unless you replace the broker with the same id.

Re:Publishing with Apache Kafka at The New York Times by tlberglund on Wednesday September 06, 2017 @10:47PM (#15188812)
Your statements about data retention are true, but if I may, I think they are only vacuously true. There are definitely ways to configure data retention incorrectly, but it seems like the folks at NYT have cracked the nut. Indeed, this is a trivial thing to set up.

Your points about auto-scaling are well-taken, though. It does not automatically rebalance when you add a new node. Confluent obvious agrees that this is a problem, since this is part of what Confluent Enterprise does. #shamelessplug (Which of course I do not intend shamelessly; just saying you have a point. :) )

Re:Publishing with Apache Kafka at The New York Times by theossuary on Wednesday September 06, 2017 @03:39PM (#15186510)
See, that's where I'm confused. I'm no Kafka expert, but they say they use a "single-partition topic" which I believe means the only way they can replicate the data is by replicating the entire log, they can't shard because it's a single partition. The reasoning behind this is because Kafka doesn't support ordering between partitions.

Also I've never thought of Kafka as a persistent data storage solution, it's interesting Confluent is supporting Kafka being used in this way.

Re:Publishing with Apache Kafka at The New York Times by tlberglund on Wednesday September 06, 2017 @09:57PM (#15188614)
You are not even a little bit confused! I think you have it perfectly right. And you are not alone in not thinking of Kafka as persistent storage, but when you get down to it there is no reason not to, and people are indeed using it in just that way. And yes, Confluent does give its +1 to this practice. :)
Re:Publishing with Apache Kafka at The New York Times by poooogles on Wednesday September 06, 2017 @04:49PM (#15187016)
>it's interesting Confluent is supporting Kafka being used in this way.

If it earns them money, I think they'll pretty much support anything. Jay has rubber stamped it on SO [1], but he's got a bit of a vested interest on selling Kafka.

1. https://stackoverflow.com/questions/17708489/using-kafka-as-...

Re:Publishing with Apache Kafka at The New York Times by pcsanwald on Wednesday September 06, 2017 @03:33PM (#15186471)
The author states it's about 100GB of data.
Re:Publishing with Apache Kafka at The New York Times by TwelveNights on Wednesday September 06, 2017 @08:24PM (#15188235)
Is 100GB of data really enough to warrant this type of architecture?
Re:Publishing with Apache Kafka at The New York Times by elnygren on Wednesday September 06, 2017 @08:46PM (#15188335)
if you read more closely, this article is not about the amount of data, but the way how it is managed.
Re:Publishing with Apache Kafka at The New York Times by tlberglund on Wednesday September 06, 2017 @10:00PM (#15188622)
Precisely. While "all NYT data since 1851" sounds like a lot, and >8660 days sounds like a long retention period for a Kafka topic, this--like most systems in the world--is not a Big Data application. One of the key insights from the post is that there are interesting architectural considerations that have nothing to do with data size that make immutable logs a good idea.
Re:Publishing with Apache Kafka at The New York Times by qaq on Thursday September 07, 2017 @07:05AM (#15190652)
They are storing 100GB :). You can do ok with 5TB +/- on something as crappy as RDS.