SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Elasticsearch
Faculty of Electrical-Electronics And Computer Engineering
University of Aksaray 2017
By: Mahmoud Al-Rawy
ma91tx@gmail.com
https://sites.google.com/site/mahmoud91tx/home
ElasticSearch
 Objective
 What is Big data
 Scaling
 NOSQL
 ElasticSearch
 ElasticSearch Feachers
Big Data
 Is a data becomes difficult to process because of its size using traditional data
processing applications.
 Require "massively parallel software running on tens, hundreds, or even thousands
of servers"
Horizontal Scaling vs Vertical Scaling
 Scale Vertically
 Add resources to a single node in a system
 Enhance the server(more CPU, more RAM, etc).
 High availability difficult to implement
 Scale Horizontally
 Add more nodes to a system.
 more servers, distributing the load
 High availability easy to implement
NOSQL && Why
 A NoSQL database provides a mechanism for storage and retrieval of data that is
modeled in means other than the tabular relations used in relational databases.
 Large volumes of structured, semi-structured, and unstructured data
 created in response to the limitations of traditional relational database technology
 Object-oriented programming that is easy to use and flexible
 Efficient, scale-out architecture instead of expensive, monolithic architecture
 The right data model: key-value, graph, wide column, or document models
Scalability: CAP Theorem
 Availability : Remains Accessible and operations at all time.
 Consistency: Commits are atomic across the entire distributed system(all nodes see
the same data at the same time).
 Partition Tolerance: Only a total network failure can cause the system to respond
incorrectly
Elasticsearch
 ElasticSearch is a free and open source distributed inverted index.
 Fast, incisive search against large volumes of data.
 Indexing documents to the repository
 Denormalized document storage: Fast, direct access to your data
 Broadly distributable and highly scalable.
Why Use ElasticSearch
 Incredibly fast search performance.
 Highly Scalable.
 Real time index/search
 REST Api with JSON
 Denormalized data store.
 Free schema
 High availability
 Written in java, build on top of apache lucene and open source
 Replace document stores like MongoDB, RavenDBWhat is Big data
Why Use ElasticSearch
RESTful API
 The Interact with elasticsearch bing through RESTful api. Using RESTful API JSON over
HTTP nearly any action can be performed.
 Using http
 Gets
 Posts
 Deletes
 Posts
 The Responses are always in JSON format.
Apache Lucene
 Apache Lucene is a high performance, full-featured Information Retrieval library,
written in Java.
 ElasticSearch uses Lucene internally to build its state of the art distributed search
and analytics capabilities.
 The relationship between Elasticsearch and Lucene, is like that of the relationship
between a car and its engine.
Query DSL
 The Query DSL is Elasticsearch's way of making Lucene's query syntax accessible
to users, allowing complex queries to be composed using a JSON syntax.
 Like Lucene, there are basic queries such as term or prefix queries and also
compound queries like the bool query.
Multi-Tenancy
 Multiple indexes can be stored on one Elasticsearch installation - node or cluster.
Each index can have multiple "types", which are essentially completely different
indexes.
 The best thing ever is querying multiple types and multiple indexes with one
simple query at breath taking speed.
Schema free
 ElasticSearch allows you to get started easily. Send a JSON document and it will
try to detect the data structure, index the data and make it searchable.
Document Oriented
 Store complex real world entities in ElasticSearch as structured JSON documents.
All fields are indexed by default
 Stores entire objects or documents
 Indexes the contents of each document in order to make them searchable
Create Index
Create Index
Create Index
Matching the Data
Matching the Data
Matching the Data
Partial Matching | Elasticsearch
Partial Matching | Elasticsearch
RDBMS SQL Query vs Elasticsearch Query
SQL Elasticsearch
Database Index
Partion Shared
Table Type
Row Document
Column Field
Schema Mapping
Index Everything is indexed
SQL Query DSL
RDBMS SQL Query vs Elasticsearch Query
RDBMS SQL Tables
RDBMS SQL Tables
Simple RDBMS Query

Weitere ähnliche Inhalte

Was ist angesagt?

Data munging and analysis
Data munging and analysisData munging and analysis
Data munging and analysis
Raminder Singh
 
Chicago Solr Meetup - June 10th: Exploring Hadoop with Search
Chicago Solr Meetup - June 10th: Exploring Hadoop with SearchChicago Solr Meetup - June 10th: Exploring Hadoop with Search
Chicago Solr Meetup - June 10th: Exploring Hadoop with Search
Lucidworks (Archived)
 
Cloud Bursting Stratos Webinar
Cloud Bursting Stratos WebinarCloud Bursting Stratos Webinar
Cloud Bursting Stratos Webinar
WSO2
 
Cloud bursting with Apache Stratos
Cloud bursting with Apache StratosCloud bursting with Apache Stratos
Cloud bursting with Apache Stratos
WSO2
 
The big data technology landscape-V.Janaki-II-M.Sc computer Science
The big data technology landscape-V.Janaki-II-M.Sc computer ScienceThe big data technology landscape-V.Janaki-II-M.Sc computer Science
The big data technology landscape-V.Janaki-II-M.Sc computer Science
karthikasivakumar3
 

Was ist angesagt? (20)

Survey on NoSQL integration
Survey on NoSQL integrationSurvey on NoSQL integration
Survey on NoSQL integration
 
NoSQL(NOT ONLY SQL)
NoSQL(NOT ONLY SQL)NoSQL(NOT ONLY SQL)
NoSQL(NOT ONLY SQL)
 
grlc Makes GitHub Taste Like Linked Data APIs
grlc Makes GitHub Taste Like Linked Data APIsgrlc Makes GitHub Taste Like Linked Data APIs
grlc Makes GitHub Taste Like Linked Data APIs
 
Data munging and analysis
Data munging and analysisData munging and analysis
Data munging and analysis
 
Elastic Stack ELK, Beats, and Cloud
Elastic Stack ELK, Beats, and CloudElastic Stack ELK, Beats, and Cloud
Elastic Stack ELK, Beats, and Cloud
 
Chicago Solr Meetup - June 10th: Exploring Hadoop with Search
Chicago Solr Meetup - June 10th: Exploring Hadoop with SearchChicago Solr Meetup - June 10th: Exploring Hadoop with Search
Chicago Solr Meetup - June 10th: Exploring Hadoop with Search
 
Elasticsearch tuning
Elasticsearch tuningElasticsearch tuning
Elasticsearch tuning
 
Searching Relational Data with Elasticsearch
Searching Relational Data with ElasticsearchSearching Relational Data with Elasticsearch
Searching Relational Data with Elasticsearch
 
Globus for Data Management: 2014 Joint Facility User Forum
Globus for Data Management: 2014 Joint Facility User ForumGlobus for Data Management: 2014 Joint Facility User Forum
Globus for Data Management: 2014 Joint Facility User Forum
 
How to run Elasticsearch on Azure in just a few minutes
How to run Elasticsearch on Azure in just a few minutesHow to run Elasticsearch on Azure in just a few minutes
How to run Elasticsearch on Azure in just a few minutes
 
Cloud Bursting Stratos Webinar
Cloud Bursting Stratos WebinarCloud Bursting Stratos Webinar
Cloud Bursting Stratos Webinar
 
Connect Your Resources, Save Time, Save Money:: Connecting library electron...
Connect Your Resources, Save Time, Save Money:: Connecting library  electron...Connect Your Resources, Save Time, Save Money:: Connecting library  electron...
Connect Your Resources, Save Time, Save Money:: Connecting library electron...
 
Introduction of Redis as NoSQL Database
Introduction of Redis as NoSQL DatabaseIntroduction of Redis as NoSQL Database
Introduction of Redis as NoSQL Database
 
Meetup#4, Apache Spark as SQL Engine
Meetup#4, Apache Spark as SQL Engine Meetup#4, Apache Spark as SQL Engine
Meetup#4, Apache Spark as SQL Engine
 
Lighthouse - an open-source library to build data lakes - Kris Peeters
Lighthouse - an open-source library to build data lakes - Kris PeetersLighthouse - an open-source library to build data lakes - Kris Peeters
Lighthouse - an open-source library to build data lakes - Kris Peeters
 
Cloud bursting with Apache Stratos
Cloud bursting with Apache StratosCloud bursting with Apache Stratos
Cloud bursting with Apache Stratos
 
The big data technology landscape-V.Janaki-II-M.Sc computer Science
The big data technology landscape-V.Janaki-II-M.Sc computer ScienceThe big data technology landscape-V.Janaki-II-M.Sc computer Science
The big data technology landscape-V.Janaki-II-M.Sc computer Science
 
An introduction to cloud computing with Amazon Web Services and MongoDB
An introduction to cloud computing with Amazon Web Services and MongoDBAn introduction to cloud computing with Amazon Web Services and MongoDB
An introduction to cloud computing with Amazon Web Services and MongoDB
 
Sept 24 NISO Virtual Conference: Library Data in the Cloud
Sept 24 NISO Virtual Conference: Library Data in the CloudSept 24 NISO Virtual Conference: Library Data in the Cloud
Sept 24 NISO Virtual Conference: Library Data in the Cloud
 
Elasticsearch in Production (London version)
Elasticsearch in Production (London version)Elasticsearch in Production (London version)
Elasticsearch in Production (London version)
 

Ähnlich wie Elastic search

Ähnlich wie Elastic search (20)

Elastic search overview
Elastic search overviewElastic search overview
Elastic search overview
 
Elasticsearch for beginners
Elasticsearch for beginnersElasticsearch for beginners
Elasticsearch for beginners
 
The Power of Elasticsearch
The Power of ElasticsearchThe Power of Elasticsearch
The Power of Elasticsearch
 
ElasticSearch Basic Introduction
ElasticSearch Basic IntroductionElasticSearch Basic Introduction
ElasticSearch Basic Introduction
 
Elasticsearch
ElasticsearchElasticsearch
Elasticsearch
 
Deep dive to ElasticSearch - معرفی ابزار جستجوی الاستیکی
Deep dive to ElasticSearch - معرفی ابزار جستجوی الاستیکیDeep dive to ElasticSearch - معرفی ابزار جستجوی الاستیکی
Deep dive to ElasticSearch - معرفی ابزار جستجوی الاستیکی
 
Explore Elasticsearch and Why It’s Worth Using
Explore Elasticsearch and Why It’s Worth UsingExplore Elasticsearch and Why It’s Worth Using
Explore Elasticsearch and Why It’s Worth Using
 
Elastic Search Capability Presentation.pptx
Elastic Search Capability Presentation.pptxElastic Search Capability Presentation.pptx
Elastic Search Capability Presentation.pptx
 
ElasticSearch Getting Started
ElasticSearch Getting StartedElasticSearch Getting Started
ElasticSearch Getting Started
 
Elasticsearch
ElasticsearchElasticsearch
Elasticsearch
 
Comparative study of no sql document, column store databases and evaluation o...
Comparative study of no sql document, column store databases and evaluation o...Comparative study of no sql document, column store databases and evaluation o...
Comparative study of no sql document, column store databases and evaluation o...
 
ElasticSearch in Production: lessons learned
ElasticSearch in Production: lessons learnedElasticSearch in Production: lessons learned
ElasticSearch in Production: lessons learned
 
Elasticsearch and Spark
Elasticsearch and SparkElasticsearch and Spark
Elasticsearch and Spark
 
Introduction to elasticsearch
Introduction to elasticsearchIntroduction to elasticsearch
Introduction to elasticsearch
 
No sql databases
No sql databasesNo sql databases
No sql databases
 
Perl and Elasticsearch
Perl and ElasticsearchPerl and Elasticsearch
Perl and Elasticsearch
 
Wanna search? Piece of cake!
Wanna search? Piece of cake!Wanna search? Piece of cake!
Wanna search? Piece of cake!
 
Elasticsearch: An Overview
Elasticsearch: An OverviewElasticsearch: An Overview
Elasticsearch: An Overview
 
Elasticsearch vs MongoDB comparison
Elasticsearch vs MongoDB comparisonElasticsearch vs MongoDB comparison
Elasticsearch vs MongoDB comparison
 
Elastic search
Elastic searchElastic search
Elastic search
 

Kürzlich hochgeladen

Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
HyderabadDolls
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
gajnagarg
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
nirzagarg
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
nirzagarg
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
vexqp
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
nirzagarg
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
Health
 
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
HyderabadDolls
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
ahmedjiabur940
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
gajnagarg
 
Computer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdfComputer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdf
SayantanBiswas37
 

Kürzlich hochgeladen (20)

Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
Gulbai Tekra * Cheap Call Girls In Ahmedabad Phone No 8005736733 Elite Escort...
 
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
Sonagachi * best call girls in Kolkata | ₹,9500 Pay Cash 8005736733 Free Home...
 
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Vadodara [ 7014168258 ] Call Me For Genuine Models ...
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
 
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
+97470301568>>weed for sale in qatar ,weed for sale in dubai,weed for sale in...
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
 
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
Sealdah % High Class Call Girls Kolkata - 450+ Call Girl Cash Payment 8005736...
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Fun all Day Call Girls in Jaipur 9332606886 High Profile Call Girls You Ca...
Fun all Day Call Girls in Jaipur   9332606886  High Profile Call Girls You Ca...Fun all Day Call Girls in Jaipur   9332606886  High Profile Call Girls You Ca...
Fun all Day Call Girls in Jaipur 9332606886 High Profile Call Girls You Ca...
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
 
Computer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdfComputer science Sql cheat sheet.pdf.pdf
Computer science Sql cheat sheet.pdf.pdf
 

Elastic search

  • 1. Elasticsearch Faculty of Electrical-Electronics And Computer Engineering University of Aksaray 2017 By: Mahmoud Al-Rawy ma91tx@gmail.com https://sites.google.com/site/mahmoud91tx/home
  • 2. ElasticSearch  Objective  What is Big data  Scaling  NOSQL  ElasticSearch  ElasticSearch Feachers
  • 3. Big Data  Is a data becomes difficult to process because of its size using traditional data processing applications.  Require "massively parallel software running on tens, hundreds, or even thousands of servers"
  • 4. Horizontal Scaling vs Vertical Scaling  Scale Vertically  Add resources to a single node in a system  Enhance the server(more CPU, more RAM, etc).  High availability difficult to implement  Scale Horizontally  Add more nodes to a system.  more servers, distributing the load  High availability easy to implement
  • 5. NOSQL && Why  A NoSQL database provides a mechanism for storage and retrieval of data that is modeled in means other than the tabular relations used in relational databases.  Large volumes of structured, semi-structured, and unstructured data  created in response to the limitations of traditional relational database technology  Object-oriented programming that is easy to use and flexible  Efficient, scale-out architecture instead of expensive, monolithic architecture  The right data model: key-value, graph, wide column, or document models
  • 6. Scalability: CAP Theorem  Availability : Remains Accessible and operations at all time.  Consistency: Commits are atomic across the entire distributed system(all nodes see the same data at the same time).  Partition Tolerance: Only a total network failure can cause the system to respond incorrectly
  • 7. Elasticsearch  ElasticSearch is a free and open source distributed inverted index.  Fast, incisive search against large volumes of data.  Indexing documents to the repository  Denormalized document storage: Fast, direct access to your data  Broadly distributable and highly scalable.
  • 8. Why Use ElasticSearch  Incredibly fast search performance.  Highly Scalable.  Real time index/search  REST Api with JSON  Denormalized data store.  Free schema  High availability  Written in java, build on top of apache lucene and open source  Replace document stores like MongoDB, RavenDBWhat is Big data
  • 10. RESTful API  The Interact with elasticsearch bing through RESTful api. Using RESTful API JSON over HTTP nearly any action can be performed.  Using http  Gets  Posts  Deletes  Posts  The Responses are always in JSON format.
  • 11. Apache Lucene  Apache Lucene is a high performance, full-featured Information Retrieval library, written in Java.  ElasticSearch uses Lucene internally to build its state of the art distributed search and analytics capabilities.  The relationship between Elasticsearch and Lucene, is like that of the relationship between a car and its engine.
  • 12. Query DSL  The Query DSL is Elasticsearch's way of making Lucene's query syntax accessible to users, allowing complex queries to be composed using a JSON syntax.  Like Lucene, there are basic queries such as term or prefix queries and also compound queries like the bool query.
  • 13. Multi-Tenancy  Multiple indexes can be stored on one Elasticsearch installation - node or cluster. Each index can have multiple "types", which are essentially completely different indexes.  The best thing ever is querying multiple types and multiple indexes with one simple query at breath taking speed.
  • 14. Schema free  ElasticSearch allows you to get started easily. Send a JSON document and it will try to detect the data structure, index the data and make it searchable.
  • 15. Document Oriented  Store complex real world entities in ElasticSearch as structured JSON documents. All fields are indexed by default  Stores entire objects or documents  Indexes the contents of each document in order to make them searchable
  • 22. Partial Matching | Elasticsearch
  • 23. Partial Matching | Elasticsearch
  • 24. RDBMS SQL Query vs Elasticsearch Query SQL Elasticsearch Database Index Partion Shared Table Type Row Document Column Field Schema Mapping Index Everything is indexed SQL Query DSL
  • 25. RDBMS SQL Query vs Elasticsearch Query