HackerTrans
TopNewTrendsCommentsPastAskShowJobs

logical42

no profile record

comments

logical42
·năm ngoái·discuss
You didn't implement change data capture. You're using theirs.
logical42
·năm ngoái·discuss
I would love it if I could over-withdraw money from my bank account by having someone on the other side of the country take out money from my account at an ATM at the exact time as me, due to the fact that the bank's storage system was eventually consistent, but that's not the case.
logical42
·năm ngoái·discuss
That means they did implement change data capture, and only exposed it for a very specific use case.
logical42
·năm ngoái·discuss
Adding change data capture to a database isn't exactly trivial.
logical42
·năm ngoái·discuss
I agree with you, but you are omitting a key aspect of the problem which makes this hard. If you have a single server serving from a local sqlite database, caching and invalidating the cache is trivially easy.

It becomes way more difficult when you have N servers all of which could potentially serve the same data. Local caches could then, yes easily become stale, and even if you have a propagation mechanism, you couldn't guarantee against network failures or latency issues.

But suppose you have an HA redis instance that you store your cached data in. Even with a write-through cache, you basically need to implement a 2-phase commit to ensure consistency.
logical42
·2 năm trước·discuss
I am tempted to write a book called "The carnivore" though.
logical42
·2 năm trước·discuss
Well I guess I'm never going to be google-able again.
logical42
·2 năm trước·discuss
food scarcity could be viewed as a bin packing problem when you consider the amount of food that gets thrown away.
logical42
·3 năm trước·discuss
Counterpoint: Apple has been quite successful despite their insistence in silos across teams and orgs.
logical42
·14 năm trước·discuss
People probably said the same about the horse and buggy when the car was invented. Not that I'd personally like a shit ton of social media buttons, just sayin'