HackerTrans
TopNewTrendsCommentsPastAskShowJobs

logical42

no profile record

comments

logical42
·السنة الماضية·discuss
You didn't implement change data capture. You're using theirs.
logical42
·السنة الماضية·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
·السنة الماضية·discuss
That means they did implement change data capture, and only exposed it for a very specific use case.
logical42
·السنة الماضية·discuss
Adding change data capture to a database isn't exactly trivial.
logical42
·السنة الماضية·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
·قبل 3 سنوات·discuss
Counterpoint: Apple has been quite successful despite their insistence in silos across teams and orgs.
logical42
·قبل 14 سنة·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'