MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze •...
Transcript of MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze •...
![Page 1: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/1.jpg)
MongoDBdokumentově orientovaná
databáze
David MarkoTCL DigiTrade - 25.5.2017
![Page 2: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/2.jpg)
Komplexní platforma
• IBM Connections Pink (Node.js, MongoDB, Elasticsearch)
• Naše platforma: Vaadin + MongoDB + Elasticsearch
Vaadin: vývojová platforma (zdarma)
MongoDB: primary data store (zdarma)
Elasticsearch: search engine (zdarma)
![Page 3: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/3.jpg)
MongoDB – NoSQL databáze
• Dokumentově orientovaná databáze
• Schema-less – nemá pevnou strukturu tabulky / záznamu
• Není relační – (NoSQL)
• Database / collection / document
• Jednoduché použití pro velké objemy dat
• Master(read/write) – Slave(read) replikace
• Sharding – rozložení zátěže na více serverů
• GridFS – ukládání příloh (souborů)
![Page 4: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/4.jpg)
JSON jako datový formát
• Texty
• Čísla
• Data
• Boolean
• Pole jednoduchých hodnot
• Pole strukturovaných hodnot
![Page 5: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/5.jpg)
GridFS – souborové úložiště
• Uloženo jako: Metadata o souboru + soubor jako takový
• Metadata mohou obsahovat více položek než standardní informace o souboru
• V určitých situacích efektivnější uložení na souborový systém(velké množství malých souborů je uloženo společně)
• Nemá limit na množství souborů v adresáři (jako např. filesystem)
• Záloha formou replikace na jiný počítač např. s různým časovým zpožděním
![Page 6: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/6.jpg)
Dotazovací jazyk
• Běžné operace známé z SQL
• Hledání uvnitř polí hodnot
![Page 7: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/7.jpg)
Hledání ve strukturovaných datech
![Page 8: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/8.jpg)
Ukázka práce s MongoDB
![Page 9: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/9.jpg)
Další vlastnosti
• Geospatial indexing (GPS souřadnice a operace nad nimi)
• Graph indexing (stromové datové struktury, soc. sítě)
• Schema free: collections/tabulky vznikají automaticky, nemigruje se schéma při upgradech, evoluce databáze spolu s aplikací
• Jednoduchý export do JSONu (MongoDump, MongoImport)
• Collections: capped collection(nejstarší se automaticky odmazávají), documentswith expiration
• Relace: embedded , referenced
![Page 10: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/10.jpg)
Podporované platformy
• MongoDB Community verze (zdarma)
• MongoDB Enterprise verze
• In-memory Storage Engine - deliver high throughput and predictable low latency
• Encrypted Storage Engine - encrypt your data at rest
• Advanced Security - secure your data with LDAP and Kerberos access controls, and comprehensive auditing
![Page 11: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/11.jpg)
Synchronizace dat s jiným web systémem
1. Notes database
2. MongoDB
3. WEB browser
Synchronizace
![Page 12: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/12.jpg)
Synchronizace• Java agent v Notes databázi volaný časově i na
uložení dokumentu
• Přenos všech typů dat včetně souborů
• Zápis do Notes databáze z webové aplikace pomocí Notes Java tříd
• Obousměrná synchronizace
• Porovnání data změny na obou stranách
• Logika aplikace, kdy určité typy dat nebylo
možné měnit na jedné ze stran.
![Page 13: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/13.jpg)
Reference - MongoDB.com
![Page 14: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/14.jpg)
Naše odborné zázemí
• Certified MongoDB Developer in JAVA
• Certified MongoDB Administrator
![Page 15: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/15.jpg)
![Page 16: MongoDB - tcl-digitrade.cz · • MongoDB Community verze (zdarma) • MongoDB Enterprise verze • In-memory Storage Engine - deliver high throughput and predictable low latency](https://reader035.fdocuments.net/reader035/viewer/2022062508/6057e3c2ddf35002700115c1/html5/thumbnails/16.jpg)