This is based on my last project from my previous company. We preferred a RESTful approach to build our application.
We were charged to build a value add service for one of the biggest ISP provider in a foreign country. What our customer had in mind was Flickr like service offering. The solution must be designed to use the existing web infrastructure in an optimal way, and meet the high performance, low cost, security, reliability and usability objective.
To minimize development costs and lock-in risks, we preferred using an available API. Atom API's simplicity design presents itself a good candidate. Atom API is a REST implementation of a SOA. There are two aspects to the Atom API:
* Atom Syndication Format (ASF). ASF is directly comparable to RSS.
* Atom Publishing Protocol (APP). This protocol describes a usage of the REST web service style refined for use for the management of web resources.
(Atom also has a SOAP interface. it could provide further usability if needed.)
For the rapid delivery of leading services, the following objectives and means are employed:
* Apache is used to manage client connection.
* Direct execution paths. Serve files directly via a NFS mount.
* Caching. REST interfaces can take advantage of existing world-wide caching infrastructure.
* GET of a resource and POST to a container directly usable by a standard web browser, via a standard forms-based interface. AJAX can directly consume Atom interfaces, via DOM, XPath, or XSLT.
* Container model; queries can be containers.
* Publish-subscribe offer significant flexibility, since it is based on containers.
* Gatewayable to RSS.
* Extensible metadata model.
* Division of responsibility for Data and Metadata.
o This virtualization enables the division of infrastructure responsibility.
o Metadata can be associated with one or more collections, linking to any corresponding data files.
o Metadata is typically more volatile than stored multimedia data - tags may be changed, albums composed of multimedia files, etc. - but the original multimedia file will rarely be changed. Caching, through expiration and validation, can take advantage of this.
As a SOA, here are some standard phases that this request will go through: load balancing(via specialized applicance, DNS round robbin, or rewrite), cache management (entry/validation/expiration), authentication, authorization, namespace management(URL rewriting to a filesystem) to the URL. However, these are relatively lightweight phases, applied at the document level. Then the file itself is directly retrieved.
For data files, the natural point of integration with existing infrastructure is through the account of the data file owner. The account is treated as a collection.
For managing metadata, we prefer the declarative operations vs procedural. Some of the advantages of being declarative are:
* File transformations can be thrown away – classic time/space tradeoff – since they can be reapplied if desired.
* Listing associated tags makes sense in the metadata.
-Angela
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment