SlideShare a Scribd company logo
© ALTOROS Systems | CONFIDENTIAL
NoSQL Databases and Polyglot
Persistence
Sergey Kovalev, Senior Java Developer, sergey.kovalev@altoros.com
© ALTOROS Systems | CONFIDENTIAL 2
The Challenge
“One Size Does Not Fit
All”
© ALTOROS Systems | CONFIDENTIAL 3
• What is Polyglot Persistence?
• RDBMS vs NoSQL
• NoSQL DB types
• Polyglot Persistence Patterns
• Real project experience
Agenda:
© ALTOROS Systems | CONFIDENTIAL
Polyglot Persistence -
4
Using multiple data storage technologies, chosen
based upon the way data is being used by individual
applications or components of single application.
Martin Fowler
http://martinfowler.com/articles/nosql-intro.pdf
What is Polyglot Persistence?
© ALTOROS Systems | CONFIDENTIAL 5
NoSQL Zooo
What is Polyglot Persistence?
http://nosql-databases.org 150+ NoSQL databases
© ALTOROS Systems | CONFIDENTIAL 6
What is Polyglot Persistence?
Who use polyglot persistence?
© ALTOROS Systems | CONFIDENTIAL 7
• What is Polyglot Persistence?
• RDBMS vs NoSQL
• NoSQL DB types
• Polyglot Persistence Patterns
• Real project experience
Agenda:
© ALTOROS Systems | CONFIDENTIAL
RDMS are great
8
• Widely used and understood
• Tested in real environments
• Efficient use of storage space if data normalized properly
• Great tools support ACID semantics
• Incredibly flexible and powerful query language
• Great framework support
RDBMS vs NoSQL
© ALTOROS Systems | CONFIDENTIAL
RDBMS have limitations
9
• Complex object graphs does not map very well with flat
tables.
• Strict Schema
• Difficult to evolve Schema with time.
• Data constraints and JOINs can be expensive at runtime.
• Difficult to scale horizontally.
RDBMS vs NoSQL
© ALTOROS Systems | CONFIDENTIAL
NoSQL features
10
• Flexible schema
• Easy to scale horizontally to add processing power and
storage
• High Performance
RDBMS vs NoSQL
© ALTOROS Systems | CONFIDENTIAL 11
• What is Polyglot Persistence?
• RDBMS vs NoSQL
• NoSQL DB types
• Polyglot Persistence Patterns
• Real project experience
Agenda:
© ALTOROS Systems | CONFIDENTIAL
Key Value Stores
12
• A key-value store is a simple hash table
• Primarily used when all access to the database is via
primary key
• Value is a blob with the data store not caring or knowing
what is inside
NoSQL DB types
© ALTOROS Systems | CONFIDENTIAL
Column-Family Stores
13
• Store data in column families as rows that have many
columns associated with a row key
• Column families are groups of related data, often accessed
together
• Aggregate-Oriented
NoSQL DB types
© ALTOROS Systems | CONFIDENTIAL 14
NoSQL DB types
Document Databases
• Stores and retrieves documents, which can be XML, JSON,
BSON, …
• Documents are self-describing, hierarchical tree data
structures which can consist of maps, collections and scalar
values
• Aggregate-Oriented
© ALTOROS Systems | CONFIDENTIAL 15
NoSQL DB types
Graph Databases
• Allow to store entities and relationships between these
entities
• Entities are known as nodes, which have properties
• Relations are known as edges, which also have properties
© ALTOROS Systems | CONFIDENTIAL 16
• What is Polyglot Persistence?
• RDBMS vs NoSQL
• NoSQL DB types
• Polyglot Persistence Patterns
• Real project experience
Agenda:
© ALTOROS Systems | CONFIDENTIAL
RDBMS
17
• Transactional data (payment and account) in a ACID compliant traditional
RDBMS stores such as MySQL or Oracle.
• Reporting Tools
Polyglot Persistence Patterns
RDBMS
Web application
Reporting Tools
Transactional
data
© ALTOROS Systems | CONFIDENTIAL
Key Value Stores
18
• Session data in Redis or Hazelcast. Session data requires faster read and write
but not durability.
• Shopping cart data in a high availability and fault-tolerance data store such as
Riak.
Polyglot Persistence Patterns
RDBMS
Web application
Reporting
Tools
Transactional
data
Key-Value
store
Sessions and
Shopping cart
© ALTOROS Systems | CONFIDENTIAL
Column-Family Stores
19
• Log level data (audit and activity) in a very high write throughput data store such
as Cassandra.
• Also good for analytic and real-time data mining such as product ranking
Polyglot Persistence Patterns
RDBMS
Web application
Reporting
Tools
Transactional
data
Key-Value
store
Sessions and
Shopping cart
Column-Family
store
Logging
Analytic
© ALTOROS Systems | CONFIDENTIAL
Document Databases
20
• Product catalogue in a document oriented data store such as MongoDB.
Requirement include high read throughput, frequent data change (stock level
information)
• Customer profile data including purchase history, shipping & billing address
Polyglot Persistence Patterns
Web application
Reporting
Tools
Transactional
data
Key-Value
store
Sessions and
Shopping cart
Column-Family
store
Logging
Analytic
Document
store
RDBMS
Product
catalogue
© ALTOROS Systems | CONFIDENTIAL
Graph Databases
21
• Data for product recommendations, related products and similar products in a
graph database such as Neo4j.
Polyglot Persistence Patterns
Web application
Reporting
Tools
Transactional
data
Key-Value
store
Sessions and
Shopping cart
Column-Family
store
Logging
Analytic
Document
store
RDBMS
Product
catalogue
Graph
Databases
Social graph
© ALTOROS Systems | CONFIDENTIAL
Summary
22
Polyglot Persistence Patterns
© ALTOROS Systems | CONFIDENTIAL 23
• What is Polyglot Persistence?
• RDBMS vs NoSQL
• NoSQL DB types
• Polyglot Persistence Patterns
• Real project experience
Agenda:
© ALTOROS Systems | CONFIDENTIAL
ScienceWarehouse challenges
24
• Hundreds of thousands of records are added to the
database daily
• Visitors’ activities logging generates huge amount of write
queries
• Price table contains approximately 100,000,000 records
• Price history table contains approximately 500.000.000
• Data rapidly grows
Real project experience
© ALTOROS Systems | CONFIDENTIAL 25
• Upgrade hardware (vertical scaling)
• Upgrade to the Oracle Database Enterprise Edition
Options for ScienceWarehause
• Use NoSQL and Polyglot Persistence
or
Real project experience
© ALTOROS Systems | CONFIDENTIAL 26
Real project experience
Solutions for ScienceWarehouse
• Add a caching layer
• Write the log data on visitors’ activities to a NoSQL database
(Cassandra or HBase)
• Move price history(500,000,000 records table) information to
NoSQL data base(Cassandra or HBase)
© ALTOROS Systems | CONFIDENTIAL 27
Real project experience
ScienceWarehouse High Level Architecture
Web application
Legacy DB
Key-Value
store
Sessions and
Shopping cart
Column-Family
store
Logging
Analytic
RDBMS
© ALTOROS Systems | CONFIDENTIAL 28
Sergey Kovalev, Senior Java Developer, sergey.kovalev@altoros.com
NoSQL Databases and Polyglot
Persistence

More Related Content

What's hot (20)

PPTX
MongoDB
Muhammad zubair
 
PPTX
No SQL- The Future Of Data Storage
Bethmi Gunasekara
 
PPT
No SQL - A Simple Intro
Karthi Keyan
 
PDF
Multi-model databases and node.js
Max Neunhöffer
 
PPTX
NOSQL vs SQL
Mohammed Fazuluddin
 
PPT
NoSQL Slideshare Presentation
Ericsson Labs
 
PPTX
MongoDB introduction
Edward Yoon
 
PPTX
Appache Cassandra
nehabsairam
 
PDF
Introduction of Redis as NoSQL Database
Abhijeet Shekhar
 
PPTX
CSCi226PPT1
Mahima Verma
 
PPTX
Introduction to NoSQL
PolarSeven Pty Ltd
 
PDF
NoSQL
Radu Potop
 
PDF
Use Cases for Oacle Pluggable Databases in Development Environments
claudegex
 
PPTX
Key-Value NoSQL Database
Heman Hosainpana
 
PDF
Nosql databases for the .net developer
Jesus Rodriguez
 
PPT
NoSQL Databases
Carlos Alberto Benitez
 
PPTX
NoSQL
Radu Vunvulea
 
PDF
NoSQL Databases
BADR
 
PDF
SQL vs NoSQL, an experiment with MongoDB
Marco Segato
 
PDF
Query mechanisms for NoSQL databases
ArangoDB Database
 
No SQL- The Future Of Data Storage
Bethmi Gunasekara
 
No SQL - A Simple Intro
Karthi Keyan
 
Multi-model databases and node.js
Max Neunhöffer
 
NOSQL vs SQL
Mohammed Fazuluddin
 
NoSQL Slideshare Presentation
Ericsson Labs
 
MongoDB introduction
Edward Yoon
 
Appache Cassandra
nehabsairam
 
Introduction of Redis as NoSQL Database
Abhijeet Shekhar
 
CSCi226PPT1
Mahima Verma
 
Introduction to NoSQL
PolarSeven Pty Ltd
 
NoSQL
Radu Potop
 
Use Cases for Oacle Pluggable Databases in Development Environments
claudegex
 
Key-Value NoSQL Database
Heman Hosainpana
 
Nosql databases for the .net developer
Jesus Rodriguez
 
NoSQL Databases
Carlos Alberto Benitez
 
NoSQL Databases
BADR
 
SQL vs NoSQL, an experiment with MongoDB
Marco Segato
 
Query mechanisms for NoSQL databases
ArangoDB Database
 

Similar to «NoSQL Databases and Polyglot Persistence» (20)

PPTX
Polyglot persitence
Stamo Petkov
 
PPTX
NoSQL powerpoint presentation difference with rdbms
AtulKabbur
 
PPT
Polyglot persistence for enterprise cloud applications
Lars Lemos
 
PPTX
No sqlpresentation
Salma Gouia
 
PDF
Heterogenous Persistence
Jervin Real
 
PPTX
NoSQL Search Roadshow Zurich 2013 - Polyglot persistence with no sql
Michael Lehmann
 
PPTX
Introduction to no sql database
Heman Hosainpana
 
PDF
No sql
Karamjit Kaur
 
PDF
Polyglot Persistence vs Multi-Model Databases
Luca Garulli
 
PDF
Polyglot Persistence
Wayne Walls
 
PDF
Polyglot Persistence - Two Great Tastes That Taste Great Together
John Wood
 
PPTX
Introduction to Polyglot Persistence
Antonios Giannopoulos
 
PPTX
NOSQL
akbarashaikh
 
PPTX
noSQL choices
lugiamaster4
 
PDF
SQL or noSQL - Oracle Cloud Day Istanbul
Gokhan Atil
 
PDF
Nosql Presentation.pdf for DBMS understanding
HUSNAINAHMAD39
 
PPTX
NOSQL Databases types and Uses
Suvradeep Rudra
 
PDF
NOSQL- Presentation on NoSQL
Ramakant Soni
 
PDF
NOSQL in big data is the not only structure langua.pdf
ajajkhan16
 
PPTX
Choosing your NoSQL storage
Imteyaz Khan
 
Polyglot persitence
Stamo Petkov
 
NoSQL powerpoint presentation difference with rdbms
AtulKabbur
 
Polyglot persistence for enterprise cloud applications
Lars Lemos
 
No sqlpresentation
Salma Gouia
 
Heterogenous Persistence
Jervin Real
 
NoSQL Search Roadshow Zurich 2013 - Polyglot persistence with no sql
Michael Lehmann
 
Introduction to no sql database
Heman Hosainpana
 
Polyglot Persistence vs Multi-Model Databases
Luca Garulli
 
Polyglot Persistence
Wayne Walls
 
Polyglot Persistence - Two Great Tastes That Taste Great Together
John Wood
 
Introduction to Polyglot Persistence
Antonios Giannopoulos
 
noSQL choices
lugiamaster4
 
SQL or noSQL - Oracle Cloud Day Istanbul
Gokhan Atil
 
Nosql Presentation.pdf for DBMS understanding
HUSNAINAHMAD39
 
NOSQL Databases types and Uses
Suvradeep Rudra
 
NOSQL- Presentation on NoSQL
Ramakant Soni
 
NOSQL in big data is the not only structure langua.pdf
ajajkhan16
 
Choosing your NoSQL storage
Imteyaz Khan
 
Ad

More from Olga Lavrentieva (20)

PPTX
15 10-22 altoros-fact_sheet_st_v4
Olga Lavrentieva
 
PPTX
Сергей Ковалёв (Altoros): Practical Steps to Improve Apache Hive Performance
Olga Lavrentieva
 
PPTX
Андрей Козлов (Altoros): Оптимизация производительности Cassandra
Olga Lavrentieva
 
PDF
Владимир Иванов (Oracle): Java: прошлое и будущее
Olga Lavrentieva
 
PPTX
Brug - Web push notification
Olga Lavrentieva
 
PDF
Александр Ломов: "Reactjs + Haskell + Cloud Foundry = Love"
Olga Lavrentieva
 
PPTX
Максим Жилинский: "Контейнеры: под капотом"
Olga Lavrentieva
 
PPTX
Александр Протасеня: "PayPal. Различные способы интеграции"
Olga Lavrentieva
 
PPTX
Сергей Черничков: "Интеграция платежных систем в .Net приложения"
Olga Lavrentieva
 
PPTX
Антон Шемерей «Single responsibility principle в руби или почему instanceclas...
Olga Lavrentieva
 
PDF
Егор Воробьёв: «Ruby internals»
Olga Lavrentieva
 
PDF
Андрей Колешко «Что не так с Rails»
Olga Lavrentieva
 
PDF
Дмитрий Савицкий «Ruby Anti Magic Shield»
Olga Lavrentieva
 
PPTX
Сергей Алексеев «Парное программирование. Удаленно»
Olga Lavrentieva
 
PPTX
«Почему Spark отнюдь не так хорош»
Olga Lavrentieva
 
PPTX
«Cassandra data modeling – моделирование данных для NoSQL СУБД Cassandra»
Olga Lavrentieva
 
PPTX
«Практика построения высокодоступного решения на базе Cloud Foundry Paas»
Olga Lavrentieva
 
PPTX
«Дизайн продвинутых нереляционных схем для Big Data»
Olga Lavrentieva
 
PPTX
«Обзор возможностей Open cv»
Olga Lavrentieva
 
PPTX
«Нужно больше шин! Eventbus based framework vertx.io»
Olga Lavrentieva
 
15 10-22 altoros-fact_sheet_st_v4
Olga Lavrentieva
 
Сергей Ковалёв (Altoros): Practical Steps to Improve Apache Hive Performance
Olga Lavrentieva
 
Андрей Козлов (Altoros): Оптимизация производительности Cassandra
Olga Lavrentieva
 
Владимир Иванов (Oracle): Java: прошлое и будущее
Olga Lavrentieva
 
Brug - Web push notification
Olga Lavrentieva
 
Александр Ломов: "Reactjs + Haskell + Cloud Foundry = Love"
Olga Lavrentieva
 
Максим Жилинский: "Контейнеры: под капотом"
Olga Lavrentieva
 
Александр Протасеня: "PayPal. Различные способы интеграции"
Olga Lavrentieva
 
Сергей Черничков: "Интеграция платежных систем в .Net приложения"
Olga Lavrentieva
 
Антон Шемерей «Single responsibility principle в руби или почему instanceclas...
Olga Lavrentieva
 
Егор Воробьёв: «Ruby internals»
Olga Lavrentieva
 
Андрей Колешко «Что не так с Rails»
Olga Lavrentieva
 
Дмитрий Савицкий «Ruby Anti Magic Shield»
Olga Lavrentieva
 
Сергей Алексеев «Парное программирование. Удаленно»
Olga Lavrentieva
 
«Почему Spark отнюдь не так хорош»
Olga Lavrentieva
 
«Cassandra data modeling – моделирование данных для NoSQL СУБД Cassandra»
Olga Lavrentieva
 
«Практика построения высокодоступного решения на базе Cloud Foundry Paas»
Olga Lavrentieva
 
«Дизайн продвинутых нереляционных схем для Big Data»
Olga Lavrentieva
 
«Обзор возможностей Open cv»
Olga Lavrentieva
 
«Нужно больше шин! Eventbus based framework vertx.io»
Olga Lavrentieva
 
Ad

Recently uploaded (20)

PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Biography of Daniel Podor.pdf
Daniel Podor
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 

«NoSQL Databases and Polyglot Persistence»

  • 1. © ALTOROS Systems | CONFIDENTIAL NoSQL Databases and Polyglot Persistence Sergey Kovalev, Senior Java Developer, [email protected]
  • 2. © ALTOROS Systems | CONFIDENTIAL 2 The Challenge “One Size Does Not Fit All”
  • 3. © ALTOROS Systems | CONFIDENTIAL 3 • What is Polyglot Persistence? • RDBMS vs NoSQL • NoSQL DB types • Polyglot Persistence Patterns • Real project experience Agenda:
  • 4. © ALTOROS Systems | CONFIDENTIAL Polyglot Persistence - 4 Using multiple data storage technologies, chosen based upon the way data is being used by individual applications or components of single application. Martin Fowler http://martinfowler.com/articles/nosql-intro.pdf What is Polyglot Persistence?
  • 5. © ALTOROS Systems | CONFIDENTIAL 5 NoSQL Zooo What is Polyglot Persistence? http://nosql-databases.org 150+ NoSQL databases
  • 6. © ALTOROS Systems | CONFIDENTIAL 6 What is Polyglot Persistence? Who use polyglot persistence?
  • 7. © ALTOROS Systems | CONFIDENTIAL 7 • What is Polyglot Persistence? • RDBMS vs NoSQL • NoSQL DB types • Polyglot Persistence Patterns • Real project experience Agenda:
  • 8. © ALTOROS Systems | CONFIDENTIAL RDMS are great 8 • Widely used and understood • Tested in real environments • Efficient use of storage space if data normalized properly • Great tools support ACID semantics • Incredibly flexible and powerful query language • Great framework support RDBMS vs NoSQL
  • 9. © ALTOROS Systems | CONFIDENTIAL RDBMS have limitations 9 • Complex object graphs does not map very well with flat tables. • Strict Schema • Difficult to evolve Schema with time. • Data constraints and JOINs can be expensive at runtime. • Difficult to scale horizontally. RDBMS vs NoSQL
  • 10. © ALTOROS Systems | CONFIDENTIAL NoSQL features 10 • Flexible schema • Easy to scale horizontally to add processing power and storage • High Performance RDBMS vs NoSQL
  • 11. © ALTOROS Systems | CONFIDENTIAL 11 • What is Polyglot Persistence? • RDBMS vs NoSQL • NoSQL DB types • Polyglot Persistence Patterns • Real project experience Agenda:
  • 12. © ALTOROS Systems | CONFIDENTIAL Key Value Stores 12 • A key-value store is a simple hash table • Primarily used when all access to the database is via primary key • Value is a blob with the data store not caring or knowing what is inside NoSQL DB types
  • 13. © ALTOROS Systems | CONFIDENTIAL Column-Family Stores 13 • Store data in column families as rows that have many columns associated with a row key • Column families are groups of related data, often accessed together • Aggregate-Oriented NoSQL DB types
  • 14. © ALTOROS Systems | CONFIDENTIAL 14 NoSQL DB types Document Databases • Stores and retrieves documents, which can be XML, JSON, BSON, … • Documents are self-describing, hierarchical tree data structures which can consist of maps, collections and scalar values • Aggregate-Oriented
  • 15. © ALTOROS Systems | CONFIDENTIAL 15 NoSQL DB types Graph Databases • Allow to store entities and relationships between these entities • Entities are known as nodes, which have properties • Relations are known as edges, which also have properties
  • 16. © ALTOROS Systems | CONFIDENTIAL 16 • What is Polyglot Persistence? • RDBMS vs NoSQL • NoSQL DB types • Polyglot Persistence Patterns • Real project experience Agenda:
  • 17. © ALTOROS Systems | CONFIDENTIAL RDBMS 17 • Transactional data (payment and account) in a ACID compliant traditional RDBMS stores such as MySQL or Oracle. • Reporting Tools Polyglot Persistence Patterns RDBMS Web application Reporting Tools Transactional data
  • 18. © ALTOROS Systems | CONFIDENTIAL Key Value Stores 18 • Session data in Redis or Hazelcast. Session data requires faster read and write but not durability. • Shopping cart data in a high availability and fault-tolerance data store such as Riak. Polyglot Persistence Patterns RDBMS Web application Reporting Tools Transactional data Key-Value store Sessions and Shopping cart
  • 19. © ALTOROS Systems | CONFIDENTIAL Column-Family Stores 19 • Log level data (audit and activity) in a very high write throughput data store such as Cassandra. • Also good for analytic and real-time data mining such as product ranking Polyglot Persistence Patterns RDBMS Web application Reporting Tools Transactional data Key-Value store Sessions and Shopping cart Column-Family store Logging Analytic
  • 20. © ALTOROS Systems | CONFIDENTIAL Document Databases 20 • Product catalogue in a document oriented data store such as MongoDB. Requirement include high read throughput, frequent data change (stock level information) • Customer profile data including purchase history, shipping & billing address Polyglot Persistence Patterns Web application Reporting Tools Transactional data Key-Value store Sessions and Shopping cart Column-Family store Logging Analytic Document store RDBMS Product catalogue
  • 21. © ALTOROS Systems | CONFIDENTIAL Graph Databases 21 • Data for product recommendations, related products and similar products in a graph database such as Neo4j. Polyglot Persistence Patterns Web application Reporting Tools Transactional data Key-Value store Sessions and Shopping cart Column-Family store Logging Analytic Document store RDBMS Product catalogue Graph Databases Social graph
  • 22. © ALTOROS Systems | CONFIDENTIAL Summary 22 Polyglot Persistence Patterns
  • 23. © ALTOROS Systems | CONFIDENTIAL 23 • What is Polyglot Persistence? • RDBMS vs NoSQL • NoSQL DB types • Polyglot Persistence Patterns • Real project experience Agenda:
  • 24. © ALTOROS Systems | CONFIDENTIAL ScienceWarehouse challenges 24 • Hundreds of thousands of records are added to the database daily • Visitors’ activities logging generates huge amount of write queries • Price table contains approximately 100,000,000 records • Price history table contains approximately 500.000.000 • Data rapidly grows Real project experience
  • 25. © ALTOROS Systems | CONFIDENTIAL 25 • Upgrade hardware (vertical scaling) • Upgrade to the Oracle Database Enterprise Edition Options for ScienceWarehause • Use NoSQL and Polyglot Persistence or Real project experience
  • 26. © ALTOROS Systems | CONFIDENTIAL 26 Real project experience Solutions for ScienceWarehouse • Add a caching layer • Write the log data on visitors’ activities to a NoSQL database (Cassandra or HBase) • Move price history(500,000,000 records table) information to NoSQL data base(Cassandra or HBase)
  • 27. © ALTOROS Systems | CONFIDENTIAL 27 Real project experience ScienceWarehouse High Level Architecture Web application Legacy DB Key-Value store Sessions and Shopping cart Column-Family store Logging Analytic RDBMS
  • 28. © ALTOROS Systems | CONFIDENTIAL 28 Sergey Kovalev, Senior Java Developer, [email protected] NoSQL Databases and Polyglot Persistence