in-memory database
DESCRIPTION
Competitive Landscape and Performance Analysis. In-Memory Database. Laureando: Valerio Barbagallo. Tutor: Michele Aiello. Relatore: Paolo Merialdo. Context. A database is a structured collection of data - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/1.jpg)
In-Memory DatabaseCompetitive Landscape
andPerformance Analysis
Laureando:Valerio BarbagalloRelatore:
Paolo MerialdoTutor:
Michele Aiello
![Page 2: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/2.jpg)
Context A database is a structured
collection of data
A database management system (DBMS) is computer software that manages databases
An in-memory database (IMDB) is a database management system that primarily relies on main memory
DBMSDatabase
![Page 3: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/3.jpg)
Application Scenario
Real time applications with no durability needs (e.g.: router)
Real time applications with durability needs which require high throughput and low latency
Traditional applications during the development and testing phase
![Page 4: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/4.jpg)
Summary
IMDB vs. Traditional DBMS
Databases’ Performance Analysis
Real Time Prepaid System Load Test Case
Results’ Analysis
Conclusion
![Page 5: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/5.jpg)
Comparison Against Traditional DBMS
Caching
Data-transfer overhead
Transaction processing
Application
File System
Database Runtime
Database Cache
File System Cache
Hard Disk
![Page 6: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/6.jpg)
Adding Durability
On-line backup High availability implementation Non Volatile RAM Transaction logging
PerformanceDurability
![Page 7: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/7.jpg)
Advantages & Disadvantages
Advantages: Lightweight Robustness High
performance
Disadvantages: Huge amount of RAM Durability Slow startup Slow snapshot
![Page 8: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/8.jpg)
Databases’ Performance Analysis Databases are only slower or faster
given a specific set of criteria in a given benchmark Execution platform Test scenario Test implementation
Test Suite: Base test case Load test case
![Page 9: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/9.jpg)
Benchmark Requirements
A benchmark is a point of reference used to measure the performance
Requirements: Portable Flexible Detailed report for each test Visual report For both relational and object database Easy to use
![Page 10: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/10.jpg)
Functional View
bench-properties.xml benchmark.pdf
databases
testsgraphs
![Page 11: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/11.jpg)
Elements’ Description The benchmark runs several Test on
different Database Each Test is composed by (concurrent) Task
Both Task and Test use many Monitor Each Test can use many Reporter
![Page 12: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/12.jpg)
Real Time Prepaid System Load Test Case
Real Time Prepaid System
Balance check
Service authorization and
management
Accounts manageme
nt10 tps 10 tps2000 tps
Domain object Initialization number
Account 4 millionsMSISDN 8 millionsSession 100 thousands
![Page 13: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/13.jpg)
Throughput
PICO4 Prevayler H2 HSQLDB Db4o
![Page 14: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/14.jpg)
Memory Usage
PICO4 Prevayler H2 HSQLDB Db4o
![Page 15: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/15.jpg)
Conclusion Contributions:
Introduction to IMDB with an in-depth analysis Performance analysis problem Database benchmark framework with powerful
graphs Prevayler, H2, Db4o, HSQLDB, PICO4
Future Development: New tests and databases Graphical user interface Mapping technology layer
![Page 16: In-Memory Database](https://reader036.vdocuments.mx/reader036/viewer/2022062814/56816771550346895ddc5ea1/html5/thumbnails/16.jpg)
Thanks for your attention