Open chilung opened 3 years ago
@chilung Based on the discussion on gitter, I belive this is in scope of OAM and a valuable use case. I'd suggest we start from including this ApplicationScope from extend category so we can begin to iterate its spec.
Would you like to draft the first version of spec like HealthScope
: https://github.com/oam-dev/spec/blob/master/standard/scopes/health_scope.md
It could be:
apiVersion: extend.oam.dev/v1alpha2
kind: DataPlacementScope
spec:
...
Suppose an edge service in Bay Area serve me well and then I fly to New York, another edge service serve me well too. However, the edge service in New York does not know or have my data in Bay Area edge location. A Cloud service does not have this kind of issue. Does or how OAM addresses this development requirement? It depends on the policy on (1) auto data migration or (2) connect to data nearest to the edge service automatically (data is already there, just need to let the edge service know) according to latency requirements and data amount to be migrated. I believe it can be an important topic to realize edge computing.
We propose a mechanism to define the data placement policy: In Cloud, in Edge Read Only, in Edge Read Write Non-Shareable, and in Edge Read Write Shareable.
In Open Application Model, we can define it as 'DataPlacementPolicy' scope. User can bind DataPlacementPolicy to different Components in his application. The implement of DataPlacementPolicy will handle the data migration detail based on the Scope kind.