Working with Collections

  • how-to
    The 3.x API SDKs all work with all features of Collections and Scopes.

    The Collections feature in Couchbase Server 7.x is fully implemented in the 3.x API versions of the Couchbase SDKs.

    When working with versions earlier than 7.0, the defaultcollection is used from the SDK.

    Read more about Collections and Scopes.

    Sample Application

    The Travel Sample Application has been updated with a motivating example for Collections - a multi-tenanted travel application. Imagine that we are providing a white-label Flight and Hotel booking service to multiple travel agents. Each tenant agent will get the same underlying service, but interact only with their own data.

    The travel-sample bucket has been split into Scopes for multiple tenant travel agents (for example tenant_agent_00, tenant_agent_01, …​) and a shared inventory which is further subdivided into Collections such as hotels and airports.

    Read more about the new travel-sample Data Model.

    The app is currently implemented for the following SDKs: