Once a collection is built, it must be hosted on a server. This page contains information about the various ways to host collections in the following sections:
There are three primary types of collections:
From the hosting perspective, simple and linked collections are the most straightforward, as they require only a static file server. Just in Time collections, on the other hand, require a more complex server structure for generating XML and image content on request. What follows is a brief description of how to host simple and linked collections, followed by in-depth discussion on the more complex hosting of Just in Time collections.
Because simple and linked collections are static files, they can be hosted on a simple file server. On each request, the server sends the PivotViewer CXML or image files. In both simple and linked scenarios, the PivotViewer will only request one CXML at a time. The distinction between the two is only that in the linked scenario, a user may navigate between different CXML files via links in the info panel (see Collection XML Schema). As such, there is no special handling of linked collections on the server. The only potential difference is that the file server may need to host multiple CXMLs (one for each simple collection composing the linked collection).
See the following illustration of a static server:

Tips:
Due to their simplicity, simple and linked collections are significantly easier to create and host than Just in Time collections. If a data set is small (3000 items or less) and relatively static, it is probably most appropriate as a simple collection. As simple collections get larger, however, performance and bandwidth become limiting factors. These factors eventually provide an upper bound to the size of the collection.
One way to get around collection size limitation is to split a larger data set into a number of inter-linked simple collections, thus creating a linked collection. With linked collections, a large data set can be presented to the user in up to 3000 item segments. Navigation between these segments (each a simple collection) happens via the Link and Related Link facet types (see Collection XML Schema), or with item click-through links. If a data set numbers in the several to tens of thousands, is relatively static, and lends itself naturally to inter-linking between different parts, it is probably most appropriate as a linked collection.
While linked collections enable a larger data set to be represented, when they grow very large, their complexity can become problematic. Key difficulties encountered when creating linked collections of very large data sets include:
When these difficulties are encountered, Just in Time collections offer some solutions.
To support scenarios beyond those possible with linked collections, a Just in Time collection can be used.
Just in Time collections follow a similar sub-collection methodology to linked collections, but use a dynamic server structure to mitigate the issues raised in the previous section. In Just in Time collections, the CXML and corresponding Deep Zoom image collection is generated by a web server at request time. The following figure illustrates a sample architecture:

Although more complex to construct, Just in Time collections have the following advantages:
Join our technical discussion forum to interact directly with the PivotViewer community. We hope you’ll join this community and share your work.
For sample code illustrating how to create a tile builder, see "TileBuilder.cs" in the following zip file: PivotCollectionFiles.zip.
Comments (0)