万本电子书0元读

万本电子书0元读

顶部广告

Learning Couchbase电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Henry Potsangbam

出  版  社:Packt Publishing

出版时间:2015-11-23

字       数:107.4万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Design documents and implement real world e-commerce applications with Couchbase About This Book Get acquainted with Couchbase architecture and design your document-based data schema Implement full text search using industry standard elastic search plugins Develop critical and high performance applications using this hands-on tutorial guide Who This Book Is For If you are new to the NoSQL document system or have little or no experience in NoSQL development and administration and are planning to deploy Couchbase for your next project, then this book is for you. It would be helpful to have a bit of familiarity with Java. What You Will Learn Get acquainted with the concept of NoSQL databases and configure your Couchbase database cluster Maintain Couchbase effectively using the web-based administrative console with ease Enable partition capabilities by making use of Buckets Analyze important design considerations for maintaining relationship between various documents Use Couchbase SDK Java API to store and retrieve document Write views using map/reduce to retrieve documents efficiently Get familiar with N1QL and how to use it in Java applications Integrate Couchbase with Elasticsearch to implement full text search Configure XDCR for disaster recovery and develop ecommerce application using Couchbase In Detail 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. Style and approach The book starts from absolute basics and slowly moves to more advanced topics ensuring at every step that all concepts and terms are understood by the reader to have complete understanding at every stage. Technical and complex terms are explained in clear and simple language, thus making this book a perfect companion for those who have started their journey to NoSQL using Couchbase
目录展开

Learning Couchbase

Table of Contents

Learning Couchbase

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Introduction to Couchbase

What is NoSQL and why do we need it?

So what is NoSQL?

Why do we need NoSQL?

The architecture of Couchbase

Data manager

Cluster management

Concepts of Couchbase

Buckets

Views

Cross Data Center Replication

Installation on Windows and Linux environments

Couchbase installation on Red Hat, CentOS, and others

Startup and shutdown

On Linux

On Windows

Understanding log and configuration files

debug

info

error

mapreduce_errors

reports.log

Mobile development with Couchbase Lite

Summary

2. The Couchbase Administration Interface

The need for the Couchbase administrative interface

The web admin UI

Buckets and servers

Server nodes

Data buckets

Views

XDCR

Log

Settings

Couchbase administrative REST API

The command line interface

Summary

3. Storing Documents in Couchbase Using Buckets

Buckets

Types of bucket

Memcached

Couchbase

Understanding documents

Keys and metadata

vBuckets

Understanding some internals of Couchbase

Ejection

Warmup

Replication

Server settings

Bucket settings

Rebalancing

Summary

4. Designing a Document for Couchbase

Understanding JSON and non JSON data

A shopping cart – understanding data types

Document versus RDBMS

Document modeling

One document versus multiple documents

User

Order

Document relationships

User and Order

Using the document editor

User

Order

Summary

5. Introducing Client SDK

A Couchbase SDK overview

Understanding write operation in the Couchbase cluster

Understanding update operations in the Couchbase cluster

Understanding read operation in the Couchbase cluster

Understanding the Couchbase API

CRUD operations using the Couchbase API

Create

Read

Update

Delete

Understanding Java SDK

CRUD operations using the Java SDK

Insert

Read

Update

Upsert

Delete

Touch

Implementation – a Maven project for CRUD operations using the Java SDK

Understanding locking

Get with Lock (GETL)

CAS

Understanding counters

async operations

Connection management

Summary

6. Retrieving Documents without Keys Using Views

An overview of MapReduce

Views

Types of views

Development

Production

A view's life cycle

The views editor

Accessing a view using Java API

Indexes

Understanding stale parameters

Built-in reduce functions

count

sum

stats

Custom reduce functions

Filtering and transforming data

Using keys

Pagination

Grouping

Ordering

Mapping with SQL to MapReduce

Select and where conditions

Order by

Group by

Understanding geospatial views

View writing guidance

Summary

7. Understanding SQL-Like Queries – N1QL

The N1QL overview

Installing and configuring N1QL

The N1QL query engine

Operation types

Understanding N1QL syntax

Join

Cross-bucket joins

Query conditions and expressions

Sorting and grouping

Indexing properties

Explaining a query

Using the N1QL API

Summary

8. Full Text Search Using ElasticSearch

Understanding content-driven applications

Full text search overview

Configuration and query

Using the ES query API

An API to connect to ES

Summary

9. Data Replication and Compaction

Understanding the XDCR architecture

Active-active conflict resolution

Configuration and monitoring

CAPI-mode XDCR

XMEM-mode XDCR

Monitoring ongoing replications

The detailed replication progress

XDCR use cases

XDCR topologies

Unidirectional

Bidirectional

XDCR impact

Compaction

The compaction process

The compaction configuration

Summary

10. Administration, Tuning, and Monitoring

Overview

Backup and restoration

cbbackup

Backing up all nodes and all buckets

Backing up all nodes for a single bucket

Backing up a single node for a single bucket

Restoring using the cbrestore tool

Backing up the Couchbase cluster using file copies

Rebalancing

Adding and removing a node from the cluster

Performing a bulk set

Monitoring

Monitoring startup

Monitoring the disk write queue

Best practices

Cluster design

Sizing

Hardware

Summary

11. Case Study – An E-Commerce Application

Overview

The conceptual model

Customer

Category/catalog

Product

Cart

Order

Getting all products for a category

Getting all orders for a particular customer

Getting the cart for a customer

Summary

Index

累计评论(0条) 1个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部