Book Image

Learning Couchbase

By : Henry Potsangbam
Book Image

Learning Couchbase

By: Henry Potsangbam

Overview of this book

This book achieves its goal by taking up an end-to-end development structure, right from understanding NOSQL document design to implementing full fledged eCommerce application design using Couchbase as a backend. Starting with the architecture of Couchbase to get you up and running, this book quickly takes you through designing a NoSQL document and implementing highly scalable applications using Java API. You will then be introduced to document design and get to know the various ways to administer Couchbase. Followed by this, learn to store documents using bucket. Moving on, you will then learn to store, retrieve and delete documents using smart client base on Java API. You will then retrieve documents using SQL like syntax call N1QL. Next, you will learn how to write map reduce base views. Finally, you will configure XDCR for disaster recovery and implement an eCommerce application using Couchbase.
Table of Contents (12 chapters)
Index

Overview


Let's suppose that we need to develop an application that will sell books online. We have already decided the technologies to be used for it. We will be using Couchbase as a database and Couchbase Java SDK APIs to develop it. Since we are using Couchbase as the backend, we will be designing our data model in terms of documents. As mentioned earlier, it is impossible to discuss and analyze the entire ecosystem of e-commerce in a single chapter; we will discuss only one or two scenarios.

In any typical e-commerce application, you can browse catalogs, search for products, view them, add them to a shopping cart, and order them. You will have modules for customer registration, inventory management, fulfillment management, advertising management, and so on. However, in this chapter we will discuss only the minimal relevant scenarios so that you understand how to apply a NoSQL document design in the Couchbase cluster.