万本电子书0元读

万本电子书0元读

顶部广告

Getting Started with RethinkDB电子书

售       价:¥

0人正在读 | 0人评论 9.8

作       者:Gianluca Tiepolo

出  版  社:Packt Publishing

出版时间:2016-03-17

字       数:80.5万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Absorb the knowledge required to utilize, manage, and deploy RethinkDB using Node.js About This Book Make the most of this open source, scalable database—RethinkDB —to ease the construction of web applications Run powerful queries using ReQL, which is the most convenient language to manipulate JSON documents with Develop fully-fledged real-time web apps using Node.js and RethinkDB Who This Book Is For Getting Started with RethinkDB is ideal for developers who are new to RethinkDB and need a practical understanding to start working with it. No previous knowledge of database programming is required, although a basic knowledge of JavaScript or Node.js would be helpful. What You Will Learn Download and install the database on your system Configure RethinkDB’s settings and start using the web interface Import data into RethinkDB Run queries using the ReQL language Create shards, replicas, and RethinkDB clusters Use an index to improve database performance Get to know all the RethinkDB deployment techniques In Detail RethinkDB is a high-performance document-oriented database with a unique set of features. This increasingly popular NoSQL database is used to develop real-time web applications and, together with Node.js, it can be used to easily deploy them to the cloud with very little difficulty. Getting Started with RethinkDB is designed to get you working with RethinkDB as quickly as possible. Starting with the installation and configuration process, you will learn how to start importing data into the database and run simple queries using the intuitive ReQL query language. After successfully running a few simple queries, you will be introduced to other topics such as clustering and sharding. You will get to know how to set up a cluster of RethinkDB nodes and spread database load across multiple machines. We will then move on to advanced queries and optimization techniques. You will discover how to work with RethinkDB from a Node.js environment and find out all about deployment techniques. Finally, we’ll finish by working on a fully-fledged example that uses the Node.js framework and advanced features such as Changefeeds to develop a real-time web application. Style and approach This is a step-by-step book that provides a practical approach to RethinkDB programming, and is explained in a conversational, easy-to-follow style.
目录展开

Getting Started with RethinkDB

Table of Contents

Getting Started with RethinkDB

Credits

About the Author

Acknowledgement

About the Reviewer

www.PacktPub.com

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

Downloading the color images of this book

Errata

Piracy

Questions

1. Introducing RethinkDB

Rethinking the database

Changefeeds

Horizontal scalability

Powerful query language

Developer-oriented

Document-oriented

Lock-free architecture

Immediate consistency

Secondary indexes

Distributed joins

Installing RethinkDB

Installing RethinkDB on Ubuntu/Debian Linux

Installing RethinkDB on CentOS and Fedora

Installing RethinkDB on OS X

Installing RethinkDB using Homebrew

Building RethinkDB from source

Configuring RethinkDB

Running as a daemon

Creating a configuration file

Starting RethinkDB

Running a query

Summary

2. The ReQL Query Language

Documents

Document databases

JSON document format

Keys

Arrays

Embedded documents

Data modeling

Introducing ReQL

An explicit query language

Building a query

Inserting data

Batch inserts

Reading data

Filtering results

Manipulating results

Updating data

Updating existing attributes

Adding new attributes

Deleting data

Removing all documents

Deleting a table

Deleting a database

Summary

3. Clustering, Sharding, and Replication

An introduction to scaling

What kind of system is it?

Scaling reads

Scaling writes

Scaling data

Clustering RethinkDB

Creating a cluster

Adding a server to the cluster

Running queries on the cluster

Replication

Adding a secondary replica

Failover

Sharding

Sharding a table

Summary

4. Performance Tuning and Advanced Queries

Performance tuning

Increasing the cache size

Increasing concurrency

Using soft durability mode

Bulk data import

Introducing indexing

Evaluating query performance

Creating and using an index

Compound indexes

Advanced queries

Limits, skips, and sorts

The limit command

The skip command

Sorting documents

Finding a random document

Grouping

Aggregations

Average

Maximum

The pluck command

Summary

5. Programming RethinkDB in Node.js

Introducing Node.js

An increasingly popular technology

An event-driven design

Installing Node.js

Installing on Linux

Installing on Mac OS X

Running Node.js

Installing the RethinkDB module

Connecting to RethinkDB

Running a simple query

Inserting documents

Reading documents

Updating and deleting documents

Introducing Changefeeds

A simple example using Changefeeds

Summary

6. RethinkDB Administration and Deployment

RethinkDB administration tools

Backing up your data

Backing up a single table

Setting up automatic backups

Restoring your data

Securing RethinkDB

Securing the web interface

Securing the driver port

Monitoring RethinkDB

Monitoring issues

Monitoring running jobs

Deploying RethinkDB

Summary

7. Developing Real-Time Web Applications

Introducing real-time web applications

Examples of real-time web apps

Going real time on the Web

Polling

AJAX

WebSockets

Developing web applications with Node.js

Express.js

Routing

Templating

Socket.io

Using RethinkDB in Node.js web applications

Database polling

Message queues

Changefeeds

Your first real-time web application

Structuring the Notes web application

Creating the Node.js server

Configuring the router

Writing the application logic

Interacting with RethinkDB

Implementing Changefeeds

Programming Socket.io

Programming the frontend

The view

Running our web application

Summary

Index

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部