Closed dsyme closed 9 years ago
(this should really have been in MBrace.Core :) )
(Yeah ^^)
CloudArray
primitive. All of the facelifting takes place in the cloudvector
branch.
That includes changes in functionality and the API (oh and also the name) and will be part of the next nuget release for MBrace.Streams
. CloudVector at the moment, is just an in-memory collection of other store primitives, so I'm not sure a Parse
method is fitting. Of course the user could just create a CloudRef<CloudVector<_>>
and persist the CloudVector in storage, or we could provide a .Persist
method.Existing
or OfPath
seems better to me.Id
should be also a property on those types.The reason for choosing the name .Parse
is that it can be used on any file in the blob storage with a user-provided deserializer.
The upcasting issue in the cloud ref has been fixed in b7aecff35b745a562a7e32e408ca34b45b8171e2.
OK, great.
A few follow up items to discuss
What about CloudChannel? It has an identity, but in the current Elastacloud preview it's not so easily available either for creators or users of CloudChannel. You can create like this but I don't know how to get the ID back from an existing cloud channel.
let channelContainerName = cluster.StoreClient.ChannelProvider.CreateUniqueContainerName()
let send,recv = cluster.StoreClient.ChannelProvider.CreateChannel
Cloud<T>
return type? Has this been fixed?Thanks don
@dsyme as to your questions:
ToEnumerable : unit -> Cloud<seq<'T>>
method. In general the store API has been changed and uses Cloud<_>
everywhere.Fantastic! Great to know the API is progressing in these directions.
I'll close this out now :)
Best don
In the Elastacloud preview edition of MBrace clusters on Azure, the APIs for CloudRef and CloudArray feel a little inconsistent w.r.t. persistence
CloudRef.Parse(persistentId)
but no correspondingCloudArray.Parse(persistentId)
Parse
might be better namedExisting
.(cr :> ICloudStorageEntity).Id
is not discoverable enough. I think it would just be better to have ID directly on the CloudRef and CloudArray types directly, since the ID is a very fundamental part of these objects.Thanks!!!! Don