3 ms·
Adding change data capture to a database isn't exactly trivial.
by logical42 1y ago
Adding change data capture to a database isn't exactly trivial.
- EGreg 1y agoWell then maybe consider making a sql replication client that would ingest the changes (like most databases, mysql writes to a straming append-only log, before it is compacted). Just parse the log and act on them. Not trivial, really? Here, enjoy: https://github.com/krowinski/php-mysql-replication https://github.com/krowinski/php-mysql-replication
- logical42 1y agoThat means they did implement change data capture, and only exposed it for a very specific use case.
- EGreg 1y agoWell, good. Your problem is artificial, choosing tools and scenarios to avoid "push". Your problem isn't with invalidating caches being hard in 2025. I've explained how to do it in both pull and push scenarios. Certainly not "the only hard problems in computer science." And neither is naming!
- logical42 1y agoYou didn't implement change data capture. You're using theirs.
- EGreg 1y agoI’m also not making my own programming language, I’m using PHP. And I’m using MySQL. What is your point? Are you saying that “invalidating caches is hard… if you insist on using only systems with no way to push updates, and oh if they have a way to push updates then you’re using someone’s library to consume updates so it doesn’t count?”