camaraproject / EdgeCloud

Repository to describe, develop, document and test the EdgeCloud API family
Apache License 2.0
16 stars 43 forks source link

EAM: Suggest to add App Instance Name #255

Open gainsley opened 4 months ago

gainsley commented 4 months ago

Problem description No human-readable identifier for application instances. Very difficult differentiate between application instances only via UUID.

Possible evolution Suggest to add a user-assigned name string field to application instances, much like AppManifest has a user-defined name field. This will allow users to easily distinguish between the different application instances they have deployed.

Alternative solution None.

Additional context None.

javierlozallu commented 3 months ago

The UUIDs of the application instances are generated by the Edge Platform depending on the Edge Cloud Zones, so it is transparent for the Application Provider and this new parameter should follow the same approach, if we want to add this new parameter we should agree on a data model name for it as well (e.g. AppName-EdgeCloudZoneName).

Some doubts here:

gainsley commented 3 months ago

My intent was the name field be user-specified, not server generated. This is the same as AppManifest.Name. The user can choose any name they want, because that name will help them identify the application instance, so there is no specific format beyond being a string.

gainsley commented 3 months ago

Regarding your doubts:

javierlozallu commented 3 months ago

My intent was the name field be user-specified, not server generated. This is the same as AppManifest.Name. The user can choose any name they want, because that name will help them identify the application instance, so there is no specific format beyond being a string.

In that case, developers should define one name per instance, I think it could be complex when instantiating several instances, imagining the case for 50 instances developers have to think of 50 names. And what happens when the instantiation is triggered by an user request, dynamic instantiation, the developer receives a notification to add the name for the instance?

gainsley commented 2 weeks ago

In that case, developers should define one name per instance, I think it could be complex when instantiating several instances, imagining the case for 50 instances developers have to think of 50 names. And what happens when the instantiation is triggered by an user request, dynamic instantiation, the developer receives a notification to add the name for the instance?

That's a fair point, I would suggest that we allow the user to leave the name blank, in which case the system will either leave it blank, or perhaps fill it in with the appInstanceId.