3 ms·
You are 100% right. I said this in the post: > My role as part of Storage will be to consider “what does data access and storage look like in this world?” If y
by steveklabnik 8y ago
You are 100% right. I said this in the post:
> My role as part of Storage will be to consider “what does data access and storage look like in this world?” If your code is moved to the edge, but your data is still in a central server, you don’t gain the full benefit of having the code close to the client. There’s a lot of interesting stuff in this space!
Fixing this problem, or at least coming up with the plan to fix it, is now literally my job :) (There is of course already a plan in motion, given that Workers KV exists today...)
- felipeccastro 8y agoOh, I must have skipped that part... nice! Yeah, I'm definitely looking forward to see where that goes. Having reliable, easy distributed data storage + edge functions would certainly be a game changer.
- yashap 8y agoFWIW, 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.