CASSANDRA Data Tables as REST API
Problem Scope1
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.
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.
Logical Flow
Home Page Rest call Backend Server
Parsing
Cassandra Query
ProcessingRealtime O/P with pagination
Implementation Details
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.
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.
List of APIs provided
◦QueryColumnFamily◦CreateKeyspace ◦DropKeyspace ◦ListKeyspace ◦CreateColumnFamily◦DropColumnFamily◦ListColumnFamily
Technologies Used
★ User Interface○Jinja2○Bootstrap, HTML.
★ REST APIs○ Flask
★ Communication to cassandra ○Python Driver○Cql Engine
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.
DEMO
Place your screenshot here
HOMEPAGE
Place your screenshot here
KeySpace Operations
Place your screenshot here
Creating KeySpace
Place your screenshot here
Dropping a KeySpace
Place your screenshot here
Listing KeySpaces
Place your screenshot here
ColumnFamily Operations
Place your screenshot here
Listing ColumnFamily
Place your screenshot here
Query Cassandra Result
Thanks!ANY QUESTIONS?