|
Resources and StorageLet Resources be the description where to get Units, and Storage describe how to store them. Most protocols will overlap: for instance, you may get Units via resource HTTP, but also store Units over HTTP. There is overlap, but there are also big differences. ResourcesResources are usually only defined in the Namespace which describes the top-level of a server. They explain how to get to Units which are defined in the namespaces. The selection of the optimal Resource for a Namespace can depend on various factors (selected via expressions)
The client decides which Resource to contact. Its decision is based on information it finds in the Namespace Unit, the needs of the application which the client serves, real-time statistics, and available plug-ins for transport protocols and packaging. StorageStorage Units are defined in the Collection which the server is using for its internal configuration. Storage Units are strongly related to specific Resources: the resource is some external view of the internal set-up. The Storage is (usually) the hidden counter-part for one or more Resources. Various ways of storage MAY get implemented:
Special care must be taken to the encodings of the unit-ids. Characters permitted in unit-ids are limited to ASCII 0x20-0x7E, but that might be too flexible for your storage system. For instance, not all file-systems like a filename which contains a slash ('/'), but it may appear in a Unit-id. mark@overmeer.net Web-pages generated on 2023-12-19 |