Hacker Newsnew | past | comments | ask | show | jobs | submit | kerblang's commentslogin

Kafka is really not intended to improve on this. Instead, it's intended for very high-volume ETL processing, where a classical message queue delivering records would spend too much time on locking. Kafka is hot-rodding the message queue design and removing guard rails to get more messages thru faster.

Generally I say, "Message queues are for tasks, Kafka is for data." But in the latter case, if your data volume is not huge, a message queue for async ETL will do just fine and give better guarantees as FIFO goes.

In essence, Kafka is a very specialized version of much more general-purpose message queues, which should be your default starting point. It's similar to replacing a SQL RDBMS with some kind of special NoSQL system - if you need it, okay, but otherwise the general-purpose default is usually the better option.


Of course this is not the same as Kafka, but the comment I'm replying to:

    > Ah yes, and every consumer should just do this in a while (true) loop as producers write to it. Very efficient and simple with no possibility of lock contention or hot spots. Genius, really.
Seemed to imply that it's not possible to build a high performance pub/sub system using a simple SQL select. I do not think that is true and it is in fact fairly easy to build a high performance pub/sub system with a simple SQL select. Clearly, this design as proposed is not the same as Kafka.

No, I implied that implementing pub/sub with just a select statement is silly because it is. Your implementation accounts for the downfalls of this approach with smart design using a message queue and intelligent locking semantics. Parent of my comment was glib and included none of this.

> it’s why Subway sandwiches are so soggy

I have NEVER had any such problem. Subway puts what you want on the sandwich. You tell them directly. You watch them make it. If you ask for soggy things on your sandwich, it will be soggy.

I do not ask for soggy things on my sandwich. That is why I have never eaten a soggy subway sandwich, EVER.

I did have a fairly loud argument with one - only one - of their sandwich artists ONCE, who refused to microwave the bacon (add bacon to any sandwich for $0.50) before putting it on sandwich, per STANDARD SUBWAY PRACTICE. I finally walked out on the dirty bastard, but I did not file a formal complaint with Subway mgmt. I am a busy person. Maybe next time. Perhaps the sandwich would've also been soggy, had I agreed to uncooked bacon, which I will NEVER do, but I don't know why that would make it soggier.

But I digress: Soggy sandwiches have specific reasons. Wanting a cheaper sandwich is not one of them. Bacon will make your sandwich slightly crispier, if that helps. It also tastes EXCELLENT.

EDIT: To be clear, it is important to be SPECIFIC about how much of something you want. The average sandwich artist has a tendency to dump the contents of an entire bottle of a given condiment on your sandwich, which I admit, could cause sogginess. This is because they think they are doing you a favor. I often use bold & dramatic hand gestures while bent over slightly, face pressed against the glass enclosure of the sandwich-making zone. "STOP! RIGHT THERE!" I will yell, several times, if necessary. Then again, I assume everyone knows this. Or else now you do.


> The average sandwich artist has a tendency to dump the contents of an entire bottle of a given condiment on your sandwich, which I admit, could cause sogginess. This is because they think they are doing you a favor. I often use bold & dramatic hand gestures while bent over slightly, face pressed against the glass enclosure of the sandwich-making zone. "STOP! RIGHT THERE!" I will yell, several times, if necessary. Then again, I assume everyone knows this. Or else now you do.

This is mediated by culture and/or region and/or personal taste. I generally find that they default to fairly reasonable amounts and that their notion of "a little" or "a lot" of a sauce etc. matches mine well enough that I can make it work. The much bigger communication problem is getting them to stop assuming you want lettuce and tomato without being asked.

IMX, soggy sandwiches happen mainly because either the sauce wasn't applied neatly, or because (as you say) there are soggy things on it (the lettuce often has water on it, and condiment sauces add up, not to mention the marinara on pizza/meatball type subs).


> I often use bold & dramatic hand gestures while bent over slightly, face pressed against the glass enclosure of the sandwich-making zone. "STOP! RIGHT THERE!" I will yell, several times, if necessary.

God, Poe's law really gets me sometimes.


Since the author brought up Nazi Germany... they did it too, same Great Depression. It's how they restarted factories and secretly rearmed.

https://en.wikipedia.org/wiki/Mefo_bills


> Because his first experience with this debate was forcing PHP on engineers who knew that would be a bad choice

Ummm... No, I think it was about forcing Perl on engineers who had been using PHP.


Slaves that cannot die.

There is no escape.


i have no mouth and i must scream


Also, docker.io is rate-limited, so if your organization experiences enough growth you will start seeing build failures on a regular basis.

Also, quay.io - another image hoster, from red hat - has been read-only all day today.

If you're going to have docker/container image dependencies it's best to establish a solid hosting solution instead of riding whatever bus shows up


Rate limits are primarily applied to unauthenticated users, open source projects and business accounts have none/much higher tresholds


based on the solution, it seems like it is quite straightforward to switchover


Still, if every automobile owner instead had a horse, would methane emissions due to horse-farting worsen modern climate change or improve it?

- Keeping in mind that your horse farts even you're not travelling

- And that methane is a good deal worse as a greenhouse gas than CO2


Doubtful:

1: Methane leaves the atmosphere a lot faster than Co2

2: The methane is a result of breaking down food where the carbon was captured from the air by the plants that were the source of the food.

3: (And I'll let you figure out the numbers) You need to calculate the methane to Co2 ratio of the expected release of methane vs Co2. I suspect there is significantly less methane released than (equivalent) Co2 from cars.

That being said, who wants to go back to horses? I don't.


My driving nightmares, in order:

- I am utterly fucking shitfaced drunk and having great difficulty with reality in general

- I am completely blind, albeit sober

- I am driving from the back seat, for some reason (trying, at least)

- I am going uphill, but the hill keeps getting steeper, until finally I am completely vertical, and to my surprise, traffic is passing me

- Don't ask me how I know, but I have entered a no-oxygen zone and have to get out of there before I pass out


- I am driving from the back seat, for some reason (trying, at least)

Yeah, this one with the added bonus of having the whole family in the car - and for some reason I'm not steering at all for a lot of the time.

Weird dream.


> am driving from the back seat, for some reason (trying, at least)

That's the only driving dream I have ever had.


Are you sure you’re not having flying dreams?


He got the guggenheim fellowship in 1967 when he was 45, only a couple years after he had considered giving up.


I do think this is one of Redford's very best films. A lot of detractors make the mistake of assuming the character is intended to represent an expert & experienced sailor, leading to a complete misread of the story. It is possible to be both clever & unwise.

Edit: Screenplay link! https://thescriptsavant.com/movies/All_Is_Lost.pdf


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: