John Zablocki's blog

March 6, 2013

.NET Couchbase Client Instrumentation with ASP.NET and Glimpse

The .NET Client Library provides detailed error information by way of its IOperationResult interface.  To find out why a store operation failed, use ExecuteStore instead of Store.

Read more »

February 1, 2013

Moving No Schema up the Stack with C# and Dynamic Types

One of the significant benefits of working with Couchbase Server 2.0 is its flexible schema.  Documents are stored as JSON, allowing for implicitly structured records that impose no order on each other.  In the real world, that "implicit structure" comes from your application.  When you create a new user in your application, the associated document is a JSON serialized version of your domain object.

Read more »

January 4, 2013

XDCR with ASP.NET and Nancy

You're probably aware of the new Cross Data Center Replication (XDCR) feature of Couchbase Server 2.0.  Its most obvious utility is to allow you to replicate data from one Couchbase cluster to another.  However, there are more novel use cases for XDCR.  One of the more notable examples is Couchbase and Elastic Search integration

Read more »

October 23, 2012

Using C# Domain Objects to Define Couchbase Views

The Couchbase Client Library 1.2-Beta includes a new API for some basic cluster management.  There are methods for creating, removing and listing buckets.  There are similar methods for managing design documents.  These new features are found in the new class CouchbaseCluster, under the Couchbase.Management namespace.  The main benefit of this new API is that it's now possible to allow your application to create its bucket and set its design documents when it starts up. 

Read more »

October 5, 2012

New Visual Studio Code Snippets for the .NET Couchbase Client Library

I have a few Visual Studio code snippets that I use regularly when testing out new installations of Couchbase Server.  I've just made them available on GitHub and Nuget.  Right now the snippets are fairly basic, but over time I'll work on creating some more best-practice and common task snippets.  At this point, the snippets are most useful for someone just starting out with the Couchbase .NET Client.

The first snippet (cbc) will take care of setting up a client instance using the default configuration (in code, not app|web.config)

Read more »

September 20, 2012

Strongly Typed Views with the .NET Client Library

The latest bits of the Couchbase .NET Client Library support a few different view querying options.  In this post, I'll describe those options in detail.  To play along at home, make sure you have the latest Couchbase Server installed with the beer-sample sample bucket. 

I've added a view named "by_name" to the beer-sample bucket in the "beer" design doc.  This view simply creates a secondary index on the "name" property of "beer" documents.

Read more »

August 1, 2012

Introducing the Couchbase ASP.NET OutputCache Provider

As was reiterated in a recent post by A Main Hobbies CEO Kendall Bennett, Couchbase is a great solution for improving the performance of your ASP.NET applications.  Beyond offering sub-millisecond CRUD operations for your application's persistence  needs, Couchbase also offers many benefits for your application's transient data needs.&n

Read more »

July 24, 2012

Introducing the Couchbase ELMAH Error Log Provider

If you're an ASP.NET developer, there's a good chance you've heard of the ELMAH project.  In case you haven't, ELMAH (Error Logging Modules and Handlers) is a series of HTTP modules and an HTTP handler that may be added to your ASP.NET web applications for the purpose of tracking unhandled exceptions.  ELMAH provides access to view these errors by way of a web console, email notifications and an RSS feed. 

Read more »

July 23, 2012

Couchbase at OSCON 2012

I had the opportunity to spend a few days in Portland, OR (Portland means Portland, ME when here in EST) last week.  Along with Benjamin Young and Ali Dodson, I was representing Couchbase in the Expo Hall at OSCON 2012.  We occupied what Benjamin referred to as "database alley."  Couchbase was one of a few database companies in our row.  In what is truly a sign of the times in our industry, a certain large, RDBMS company's booth went largely unvisited over the course of the event.  You might say, they were an "island" unto themselves...

Read more »

July 3, 2012

Couchbase at New York ALT.NET and Two Years of NoSQL

There are few, if any, better places to be a .NET developer than New York City.  From startups to hedge-funds, you're likely to find an opportunity to use your C# skills.  The prevalence of  .NET in the City isn't due to Microsoft, who maintains only a modest presence in the area, but rather to the exceptional community leaders who run the various .NET user groups in the Tri-State area. 

Read more »