pull vs push. Plus if you start storing the last timestamp so you only select the delta and if you start sharding your db and dealing with complexities of having different time on different tables/replication issues it quickly becomes evident that Kafka is better in this regard.
But yeah, for a lot of implementations you don't need streaming. But for pull based apps you design your architecture differently, some things are a lot easier than it is with DB, some things are harder.
Have a table level seqno as monotonically increasing number stamped for every mutation. When a subscriber connects it asks for rows > Subscriber's seqno-last-handled.
Romario77|2 months ago
But yeah, for a lot of implementations you don't need streaming. But for pull based apps you design your architecture differently, some things are a lot easier than it is with DB, some things are harder.
ahoka|2 months ago
fatal94|2 months ago
The second you approach any kind of scale, this falls apart and/or you end up with a more expensive and worse version of Kafka.
devnull3|2 months ago
I was surprised how far sqlite goes with some sharding on modern SSDs for those in-between scale services/saas
raverbashing|2 months ago
(SELECT * from EVENTS where TIMESTAMP > LAST_TS LIMIT 50) for example
hawk_|2 months ago
devnull3|2 months ago
Have a table level seqno as monotonically increasing number stamped for every mutation. When a subscriber connects it asks for rows > Subscriber's seqno-last-handled.