Top Banner
CASSANDRA Data Tables as REST API
21

Cassandra DataTables Using RESTful API

Apr 14, 2017

Download

Technology

Simran Kedia
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Cassandra DataTables Using RESTful API

CASSANDRA Data Tables as REST API

Page 2: Cassandra DataTables Using RESTful API

Problem Scope1

Page 3: Cassandra DataTables Using RESTful API

This project will provide a GUI and a service layer on top of Cassandra, exposing data(and services) via REST API.

● Exposes Cassandra data tables as a REST API for huge volumes of data.

● Build a web-based user interface to expose the API and enable querying.

● Enable pagination of results for convenience and readability of the user.

Page 4: Cassandra DataTables Using RESTful API

PROCESS MODEL

Automatically organize data into tables using Cassandra.

Display results with pagination

Assemble collected data.

Provide REST API for querying the database.

Display contents of database in user friendly format.

Page 5: Cassandra DataTables Using RESTful API

Logical Flow

Home Page Rest call Backend Server

Parsing

Cassandra Query

ProcessingRealtime O/P with pagination

Page 6: Cassandra DataTables Using RESTful API

Implementation Details

Page 7: Cassandra DataTables Using RESTful API

Populate the cassandra databaseo Build cassandra keyspaces and column family o Populate the database according to the data

provided.

Query inputo Queries are received using RESTFUL API calls.o The REST query is parsed and converted into a

database query and then the database is queried.

Page 8: Cassandra DataTables Using RESTful API

Displaying Results

o Details related to queries are retrieved from the database.

o Error handling in case of invalid queries is done.

o Pagination is done to handle large data. One page is displayed at a time.

o UI is built using Jinja2 and HTML, bootstrap.

Page 9: Cassandra DataTables Using RESTful API

List of APIs provided

◦QueryColumnFamily◦CreateKeyspace ◦DropKeyspace ◦ListKeyspace ◦CreateColumnFamily◦DropColumnFamily◦ListColumnFamily

Page 10: Cassandra DataTables Using RESTful API

Technologies Used

★ User Interface○Jinja2○Bootstrap, HTML.

★ REST APIs○ Flask

★ Communication to cassandra ○Python Driver○Cql Engine

Page 11: Cassandra DataTables Using RESTful API

Benefits for the stakeholders

Efficient handling of large data.

A simple User Interface for querying the data.

Using REST APIs makes querying simpler and robust.

Provides a better interface for retrieved data with pagination.

Page 12: Cassandra DataTables Using RESTful API

DEMO

Page 13: Cassandra DataTables Using RESTful API

Place your screenshot here

HOMEPAGE

Page 14: Cassandra DataTables Using RESTful API

Place your screenshot here

KeySpace Operations

Page 15: Cassandra DataTables Using RESTful API

Place your screenshot here

Creating KeySpace

Page 16: Cassandra DataTables Using RESTful API

Place your screenshot here

Dropping a KeySpace

Page 17: Cassandra DataTables Using RESTful API

Place your screenshot here

Listing KeySpaces

Page 18: Cassandra DataTables Using RESTful API

Place your screenshot here

ColumnFamily Operations

Page 19: Cassandra DataTables Using RESTful API

Place your screenshot here

Listing ColumnFamily

Page 20: Cassandra DataTables Using RESTful API

Place your screenshot here

Query Cassandra Result

Page 21: Cassandra DataTables Using RESTful API

Thanks!ANY QUESTIONS?