售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜