Talk on how to easily integrate elasticsearch with react. Similar process with remapping of the data schema can yield a knowledge discovery and search application for any industry consuming huge amount of structured or unstructured data
2. CJ Ejimuda
cj@hybriData.us
Full Stack Data Scientist
Msc. Petroleum Engineering - USC
BEngr. Electrical Electronics Engineering - FUTO
Enjoy Soccer / Beach Volleyball at Silicon Beach
hybriData.us 2
A little about me...
5. hybriData.us 5
Few Elasticsearch Use Cases by Industry
● Media and Entertainment: Making it easier to search for the media you are looking for
● Utility: Provide the right energy-saving advice to energy consumers
● Financial Services: Transaction monitoring and error detection ensuring a smooth payment system
6. hybriData.us 6
Some Corporations Running on Elasticsearch / React
Elasticsearch:
● Verizon, Facebook, Cisco, Nasa JPL, Walmart, Warner Bros, Accenture, Sprint, Ebay, BBC, Barclays, Merck,
Nvidia, Fandango, Uber, Tinder, Emerson, Goldman Sachs, Microsoft, Activision, Esri, USGS, Eventbrite,
Adobe, New York Times, Sales force, Netflix, Symantec . . .
React:
● Facebook, Elastic, Instagram, Whatsapp, BBC, Netflix, Dropbox, Coursera, IMDb, PayPal, Dailymotion,
Chrysler, American Express, Intuit, Khan Academy, Lyft, Atlassian, New York Times, Reddit, Airbnb,
Walmart Labs, Tesla, Tencent QQ (with more than 829 million active accounts), Baidu Mobile (with more
than 600 million users), Bloomberg. . .
7. hybriData.us 7
What would it look like?
Source: https://macalicomm.com/2014/04/show-and-tell-for-powerful-content/
17. hybriData.us 17
High level steps
● Map elasticsearch fields
● Create-react-app (https://github.com/facebookincubator/create-react-app)
$ npm install -g create-react-app
$ create-react-app esxr
$ cd esxr
$ yarn add searchkit
$ yarn start
● Configure Elasticsearch client ( local server / cloud server environment )
● Compose our components
● We are all set!
18. hybriData.us 18
Recap: Summary
● Searchkit makes it easy to integrate Elasticsearch with React
● Why Elasticsearch?
- Scales to terabytes of data with ease and low maintenance
- Logstash, Kibana, Plugins (Kafka,Hadoop, Spark and more plugins)
● Why React?
- Build large-scale applications with data that changes repeatedly over time
- Follows the same design pattern for building native mobile apps (ioS and Android) with
react native
21. hybriData.us 21
Challenges before React?
● Potential typos leading to less developer productivity
● Slower rendering of DOM
● Search engine failure to read javascript heavy apps
22. hybriData.us 22
Challenges before Elasticsearch?
● Poor user experience
● Tough to ship or analyze logs
● Unable to add database fields because of slow index rebuild speed