0% found this document useful (0 votes)
13 views12 pages

Module 4.2 Distributed DB

Uploaded by

yashuop46
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views12 pages

Module 4.2 Distributed DB

Uploaded by

yashuop46
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Distributed Database

Module 4
Cloud Computing
Amazon DynamoDB

Amazon DynamoDB is a fully managed NoSQL


database service that allows to create database
tables that can store and retrieve any amount of
data.
It automatically manages the data traffic of tables
over multiple servers and maintains performance.
It also relieves the customers from the burden of
operating and scaling a distributed database.
Hence, hardware provisioning, setup,
configuration, replication, software patching,
cluster scaling, etc. is managed by Amazon

2
Benefits of ADdb

Managed service − Amazon DynamoDB is a managed service. There is no


need to hire experts to manage NoSQL installation. Developers need not
worry about setting up, configuring a distributed database cluster,
managing ongoing cluster operations, etc. It handles all the complexities
of scaling, partitions and re-partitions data over more machine resources
to meet I/O performance requirements.

Scalable − Amazon DynamoDB is designed to scale. There is no need to


worry about predefined limits to the amount of data each table can store.
Any amount of data can be stored and retrieved. DynamoDB will spread
automatically with the amount of data stored as the table grows.

Fast − Amazon DynamoDB provides high throughput at very low latency.


As datasets grow, latencies remain stable due to the distributed nature of
DynamoDB's data placement and request routing algorithms.

3
Durable and highly available − Amazon DynamoDB
replicates data over at least 3 different data centers’
results. The system operates and serves data even
under various failure conditions.

Flexible: Amazon DynamoDB allows creation of


dynamic tables, i.e. the table can have any number of
attributes, including multi-valued attributes.

Cost-effective: Payment is for what we use without any


minimum charges. Its pricing structure is simple and
easy to calculate.

4
Couch DB

CouchDB is an open source database developed


by Apache software foundation. The focus is on
the ease of use, embracing the web. It is a
NoSQL document store database.
It uses JSON, to store data (documents), java
script as its query language to transform the
documents, http protocol for api to access the
documents, query the indices with the web
browser. It is a multi master application released
in 2005 and it became an apache project in
2008.

5
Why Couch DB

CouchDB have an HTTP-based REST API, which helps to


communicate with the database easily. And the simple structure
of HTTP resources and methods (GET, PUT, DELETE) are easy to
understand and use.

As we store data in the flexible document-based structure, there


is no need to worry about the structure of the data.

Users are provided with powerful data mapping, which allows


querying, combining, and filtering the information.

CouchDB provides easy-to-use replication, using which you can


copy, share, and synchronize the data between databases and
machines.

6
Data Model

Database is the outermost data structure/container in CouchDB.

Each database is a collection of independent documents.

Each document maintains its own data and self-contained


schema.

Document metadata contains revision information, which makes


it possible to merge the differences occurred while the databases
were disconnected.

CouchDB implements multi version concurrency control, to avoid


the need to lock the database field during writes.

7
Document Storage
CouchDB is a document storage NoSQL database. It
provides the facility of storing documents with unique
names, and it also provides an API called RESTful HTTP API
for reading and updating (add, edit, delete) database
documents.
ACID Properties
CouchDB contains ACID properties as one of its features.

Consistency − When the data in CouchDB was once


committed, then this data will not be modified or
overwritten. Thus, CouchDB ensures that the database file
will always be in a consistent state.

8
Compaction
Whenever the space in the database file got wasted
above certain extent, all the active data will be copied
(cloned) to a new file. When the copying process is
entirely done, then the old file will be discarded.
Views
Data in CouchDB is stored in semi-structured documents
that are flexible with individual implicit structures, but
it is a simple document model for data storage and
sharing. If we want see our data in many different ways,
we need a way to filter, organize and report on data that
hasn’t been decomposed into tables.

9
Thru DB

ThruDB is an open source database built on


Apache's Thrift framework and is a set of simple
services such as scaling, indexing and storage
which is used for building and scaling websites.

It provides flexible, fast and easy-to-use


services that simplify the management of the
modern web data layer and provides developers
with features and tools most web developers
need. These features can be easily configured or
turned off.

10
Thrudb contains two services
Thrudoc - Document storage service
Thrudex - Indexing and search service
Features
Multi-master replication
Built for horizontal scalability
Incremental backups and redo logging
Multiple storage back-end client libraries for most
languages
Simple and powerful search API
11
ThruDB provides web-scale data management by
providing these services:

Thrucene - For Lucene-based indexing


Throxy - For partitioning and load balancing
Thrudoc - For document storage
Thruqueue - For a persistent message queue
service
Thrift - For cross-language services framework

12

You might also like