News for hackers. Stuff that matters.
Re:Edge Computing by jgrahamc on Wednesday March 24, 2021 @10:13AM (#26567462)
I don't think latency is actually the most important feature of edge computing. Sure, it's great that if you use Cloudflare Workers you get very close to end users and have low latency. I think the real advantages will be:

1. Set-it-and-forget-it scalability

2. Compliance with data locality laws

#2 is going to be the absolute wave of the future. Not just in Europe, but everywhere. Every country is going to introduce laws that mean their citizens' data needs to stay in region or in country. A widely distributed edge will make that easy to handle because it can be a configuration option.

Re:Edge Computing by _kp6z on Wednesday March 24, 2021 @07:17PM (#26574320)
The author also drastically overestimates the capabilities of cloud vendors. CDN and edge have been and will continue to be great business (as you well know) despite pundits predicting their sublimation to cloud subsidiaries for over a decade. For one, capacity planning a public cloud is a lot different and a lot harder than cdn/edge. So the cloud vendor must then act a lot like a cdn/edge, which none have shown any competence in doing. There's a reason Amazon still uses Akamai, Level3, and others for their own Prime Video. CloudFront is a joke in comparison to any prime CDN in terms of network breadth, latency, and overall support from the vendor.
Re:Edge Computing by 64d93b2a81 on Wednesday March 24, 2021 @09:58PM (#26575726)
cloudfront is a joke. It doesn't even encrypt the traffic inside their network.
Re:Edge Computing by zekrioca on Wednesday March 24, 2021 @11:43AM (#26568676)
Performance wise putting things (i.e., data, compute power, networking, etc) nearer clients is the only way to somehow 'beat' mother-nature. That's why latency really is the main feature in edge computing. Point (1) is already realized by Cloud computing (or autonomic computing, see [1]). (2) has been more focused nowadays but it has also been a problem in Cloud, but it is not really a "feature" in either settings.

[1] http://www.cs.cmu.edu/~15849g/readings/kephart03.pdf (2003)

Re:Edge Computing by fierro on Wednesday March 24, 2021 @03:36PM (#26571935)
I think this is a bit hand wavey. Being able to run workloads on the edge does not solve the data storage problem.
Re:Edge Computing by 908B64B197 on Wednesday March 24, 2021 @01:48PM (#26570607)
> #2 is going to be the absolute wave of the future. Not just in Europe, but everywhere. Every country is going to introduce laws that mean their citizens' data needs to stay in region or in country

I can't wait for all these special snowflakes laws. And then the whining that locals players are all getting wiped out by foreign competitors that got their start in much larger unified markets where they could benefit from economies of scale.

Re:Edge Computing by pradn on Wednesday March 24, 2021 @01:14PM (#26570112)
It looks like the term "edge computing" conflates the location of the services and the method of distributing the services (serverless apps). You could imagine writing servers that then get automatically distributed to the edge as containers or VMs.
Re:Edge Computing by vp8989 on Wednesday March 24, 2021 @12:46PM (#26569675)
For #2, how would you deal with the user moving to a different region?
Re:Edge Computing by forgotmypw17 on Wednesday March 24, 2021 @03:28PM (#26571849)
I think your #2 is actually #1, although I would phrase it as:

#1 ownership and control over access to one's own data (privacy)

#2 access to one's own data (accessibility and queryability)

Re:Edge Computing by nsonha on Thursday March 25, 2021 @10:42AM (#26580880)
Arent both already the case with, say aws lambda?
Re:Edge Computing by anonymousDan on Wednesday March 24, 2021 @10:30AM (#26567694)
What exactly do you mean by #1?
Re:Edge Computing by jgrahamc on Wednesday March 24, 2021 @10:48AM (#26567901)
I mean that the promise of edge computing is that you write some code, deploy it and don't worry about scaling it, regions, availability zones and the like. It's just code that gets run.
Re:Edge Computing by jeswin on Wednesday March 24, 2021 @11:55AM (#26568865)
> It's just code that gets run.

I agree. But it also means that it's mostly unrelated to the edge, or edge computing; with the same constraints the code can run anywhere.

To me the promise of edge is that it could work quite well with decentralized apps (not limited to blockchain-based). The work you guys are doing with IPFS is a great start.

Add: When you think about it, most current apps are centralized and it's unsurprising that they can work well with the cloud (AWS/Azure/Google); edge is just mostly CDN for now. Decentralized is when those models become incompatible, and where edge can show strength.

Re:Edge Computing by zekrioca on Wednesday March 24, 2021 @12:10PM (#26569105)
CDN is mostly related to "content" (i.e., data) delivery. Edge is more generic, and relates not only to "content", but also to "processing" and "networking" to reduce the response time multiple clients experience.

Decentralized apps is not really related, though one can really employ edge datacenters to achieve so..

Re:Edge Computing by jeswin on Wednesday March 24, 2021 @12:58PM (#26569875)
The point I'm making is that edge can't do much now in terms of "processing". Most data is centralized and you'll need to hit a centralized system to access it. Facilities needing lower latency are more likely to keep it on-prem. As of now, it's mostly dealing with CDNish workloads.

However, that changes with decentralized apps since they place a different set of architectural demands, and don't have centralized datasources. For instance, a search in p2p space might involve connecting to a lot of peers - latency matters. Data (often signed chains) might need to be fetched from dozens of different sources, combined and queried locally - again latency matters. Clusters of people who you talk to are often co-located, edge wins again.

Latency doesn't matter when it's a hand countable number of simultaneous queries (as in current apps). We can even work around it with approaches like batching, as with GraphQL.

Re:Edge Computing by zekrioca on Wednesday March 24, 2021 @06:58PM (#26574137)
Sure, most apps still follow the client x server architecture. To properly take advantage of edge computing, one needs to rearchitect current applications, and microservices is one example of how to do it.

The point of edge computing is exactly to incentivize facilities/companies to not keep data on premises, or at least to ship some data (i.e. non sensitive) out of it. It doesn’t scale the way most companies need it to.

Latency is key for some important applications like self-driving cars and industrial automation, not really to make some queries in GraphQL..

Re:Edge Computing by jeswin on Wednesday March 24, 2021 @08:57PM (#26575257)
> ... and microservices is one example of how to do it.

The fundamental problem is where the data resides. Microservices are well understood today, but taking them to the edge isn't; there isn't a path to do that for typical apps. So most microservices which are being used at the edge are doing caching/transcoding/resizing etc.

> Latency is key for some important applications like self-driving cars and industrial automation

They keep compute on-vehicle or on-prem. For data services (not media delivery), latency is:

a) either supremely important to be fully local (vehicles, automation)

b) or it doesn't matter enough to be on a 3rd party edge network. The diminishing returns in typical apps is what the article is alluding to.

> not really to make some queries in GraphQL

You're misrepresenting what I said - and it seems deliberate.

I mentioned GraphQL as one of the attempts to solve latency issues in typical apps.

For example, some apps use graphql/dataloader[1] because it can "coalesce all individual loads which occur within a single frame of execution before calling your batch function with all requested keys. This ensures no additional latency while capturing many related requests into a single batch."

So in typical apps, there isn't a big benefit to putting general compute on the edge - because the network calls are chunky and not chatty, and their data is centralized. GraphQL (along with libs/frameworks) being one way to turn chatty into chunky.

[1]: https://github.com/graphql/dataloader

Re:Edge Computing by zekrioca on Thursday March 25, 2021 @12:04PM (#26581957)
> The fundamental problem is where the data resides. Microservices are well understood today, but taking them to the edge isn't; there isn't a path to do that for typical apps. So most microservices which are being used at the edge are doing caching/transcoding/resizing etc.

If an application follows a Microservice architecture, then it is possible to containerize it and enable its autonomic management through frameworks like Kubernetes and Docker Swarm, which is one way forward to improve performance efficiency of typical apps.

Yes, the problem is where the data resides. Migrate portions of it nearer to clients to the Edge, and clients will have the illusion of lower latency. Maintaining data consistency and coherence are yet problems not properly tackled, but in edge computing it means computations happen in these migrated portions of data, and not "all the way" at the cloud (higher latency) anymore.

> They keep compute on-vehicle or on-prem. For data services (not media delivery), latency is:

Not always. They will use the Edge mostly for inference and for learning from others (transfer learning), but sometimes also for training and model updates. And in cases like this (known as Mobile Edge Cloud), the ability to obtain granular and immediate control by supporting custom logic at the edge of a network is particularly useful in routing traffic to the microservices that make up a service.

I agree, GraphQL helps reducing latency, mostly because the amount of data is now "granular" and it is one way to overcome limitations in 'traditional' apps (e.g. Rest APIs). Coalescing may be useful in some cases, but perhaps not in situations where one needs to maintain 95th/99th percentiles up to certain threshold constraints. Together with Edge (as I guess you mentioned), it is a win-win performance-wise. But then again, maintaining consistency and coherence are yet problems to be tackled.

And guess what, applications still need to be updated to use GraphQL and use its features. Just like people will do when developing for the Edge.