Thursday, September 04, 2008
I have just updated the Code Gallery page to reflect the new version of the REST-based library for SSDS. This is a fairly major update to library and adds a ton of new features to make working with SSDS even easier than it already is for the .NET developer. Added in this release:
- Concurrency support via Etags and If-Match, If-None-Match headers. To get a basic understanding of how this works, refer here.
- Blob support. The library introduces a new type called SsdsBlobEntity that encapsulates working with blobs in SSDS. Overloads are available for both synchronous as well as async support.
- Parallelization support via extension methods. The jury is still out on this one and I would like to hear some feedback on it (both the technique as well as the methods). Instead of using an interface, factory methods, etc., we are using extension methods supplied in a separate assembly to support parallel operations. Since there are many different techniques to parallelize your code, this allows us to offer more than one option. Each additional assembly can also take dependencies that the entire library might not want to take as well. Imagine that we get providers for Parallel Extensions, CCR, or perhaps other home-baked remedies. A very simple provider using Parallel Extensions is included.
- Bug fixes. Hard to believe, but yes, I did have a few bugs in my code. This release cleans up a few of the ones found in the LINQ expression syntax parser as well as a few oversights in handling date/times.
- Better test coverage. Lots more tests included to not only prove out that stuff works, but also to show how to use it.
If you just want to see this library in action, refer to the photo sharing and tagging application called 'PhluffyFotos' that pulls it all together (sans parallelization, I suppose). You can use the integrated source viewer to see how the library works on a 'real' application (or a real sample application at least).