2 ms·
FWIW, I think “edge compute but centralized db” is often not just “not gaining the full benefit of edge compute”, it’s actually “way slower than everything cent
by yashap 8y ago
FWIW, I think “edge compute but centralized db” is often not just “not gaining the full benefit of edge compute”, it’s actually “way slower than everything centralized.” I’ve worked on plenty of systems where a single web facing endpoint results in 10+ db queries. With “everything centralized”, this means 1 big round trip to the data centre, then lots of tiny/fast within-datacentre round trips. But move compute away from the db, and suddenly you’re triggering tonnes of really slow db calls on every client request, and the whole system slows down tremendously.
- steveklabnik 8y agoYep, this sounds fair! For smaller things that aren't 10+ queries, I can imagine it not being that bad, but for that, yeah, that sounds much slower.
- zzzcpan 8y agoThis is why edge computing is going to be different. You have to be able to fetch and rely on data from the closest nodes, prefetch all the likely queries all at once, merge updates locally to keep relying on them while resyncing in background, etc. All while also not having data loss or weird hard to reason about inconsistencies. Basically all the reasons CRDTs were invented.