Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Hibernate-OGM Overview v 1.0
Search
Sunghyouk Bae
June 08, 2013
Programming
2
2.2k
Hibernate-OGM Overview v 1.0
Hibernate-OGM v 4.0 Overview
with Infinispan
Sunghyouk Bae
June 08, 2013
Tweet
Share
More Decks by Sunghyouk Bae
See All by Sunghyouk Bae
Requery overview
debop
0
37
Reactive Programming with RxJava
debop
0
48
Kotlin @ Coupang Backend 2017
debop
1
570
DAISY-Search
debop
0
71
Other Decks in Programming
See All in Programming
Less waste, more joy, and a lot more green: How Quarkus makes Java better
hollycummins
0
100
3rd party scriptでもReactを使いたい! Preact + Reactのハイブリッド開発
righttouch
PRO
1
610
CSC509 Lecture 09
javiergs
PRO
0
140
ペアーズにおけるAmazon Bedrockを⽤いた障害対応⽀援 ⽣成AIツールの導⼊事例 @ 20241115配信AWSウェビナー登壇
fukubaka0825
6
2k
Figma Dev Modeで変わる!Flutterの開発体験
watanave
0
150
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
210
「今のプロジェクトいろいろ大変なんですよ、app/services とかもあって……」/After Kaigi on Rails 2024 LT Night
junk0612
5
2.2k
Jakarta EE meets AI
ivargrimstad
0
640
AI時代におけるSRE、 あるいはエンジニアの生存戦略
pyama86
6
1.2k
Micro Frontends Unmasked Opportunities, Challenges, Alternatives
manfredsteyer
PRO
0
110
flutterkaigi_2024.pdf
kyoheig3
0
150
アジャイルを支えるテストアーキテクチャ設計/Test Architecting for Agile
goyoki
9
3.3k
Featured
See All Featured
It's Worth the Effort
3n
183
27k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
What's new in Ruby 2.0
geeforr
343
31k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
A Philosophy of Restraint
colly
203
16k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
109
49k
10 Git Anti Patterns You Should be Aware of
lemiorhan
655
59k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
47
2.1k
Ruby is Unlike a Banana
tanoku
97
11k
Transcript
hibernate-ogm overview
[email protected]
@debop68 1 13֙ 6ਘ 9ੌ ੌਃੌ
Hibernate-OGM Object / Grid Mapping Hibernate for NoSQL Current support
Datastore - EhCache, Infinispan, MongoDB 앞으로 제공할 Datastore - Redis, Couchbase, Neo4j 2 13֙ 6ਘ 9ੌ ੌਃੌ
Relational Databases Data structure abstraction Transactions Referential integrity Simple types
Common query language Scale up (not Scale out) 3 13֙ 6ਘ 9ੌ ੌਃੌ
Why NoSQL 대량의 데이터 저장 저장할 데이터 량이 기하급수적으로 증대
RDB의 scale-up 만으로는 한계 웹 서비스의 구조 변화 데이터의 구조 변화가 큼 비정형 데이터의 관리 필요 Cloud 환경에 맞는 자료저장소 필요 scale-out 기능 강조 Operation 비용 절감 4 13֙ 6ਘ 9ੌ ੌਃੌ
NoSQL Features 대량의 데이터 다양한 구조 다양한 목표 data size
/ availability low latency / higher throughput 특정 사용 패턴에 최적화 다양한 자료 구조 5 13֙ 6ਘ 9ੌ ੌਃੌ
NoSQL Types Graph oriented databases key-value stores Document based stores
Big Table style 6 13֙ 6ਘ 9ੌ ੌਃੌ
NoSQL 약점 Programming Model no common API query (Map Reduce,
specific DSL, ...) no schema => app driven schema Physical data structure transpires Transaction/durability/consistency 7 13֙ 6ਘ 9ੌ ੌਃੌ
JPA for NoSQL 8 13֙ 6ਘ 9ੌ ੌਃੌ
Goals 새로운 데이터 사용 패턴을 쉽게 사용하도록한다. 데이터 크기, 종류,
형태에 상관없이... Full JPA support 익숙한 환경, 빠른 적용 9 13֙ 6ਘ 9ੌ ੌਃੌ
Hibernate-OGM Hibernate-ogm 4.0 CRUD support for @Entity EhCache, Infinispan, MongoDB
Full-text queries (hibernate-search) Future JP-QL query Neo4j, Cassandra, Couchbase, HBase, Redis https://community.jboss.org/wiki/HibernateOGMRoadmap 10 13֙ 6ਘ 9ੌ ੌਃੌ
Domain Model POJO Hibernate Core JPA: programmatic API Hibernate Search
persists indexes/searches Infinispan Lucene Search engine store index indexing store object RDBMS 11 13֙ 6ਘ 9ੌ ੌਃੌ
Domain Model POJO Hibernate Core JPA: programmatic API Hibernate Search
persists indexes/searches Infinispan Lucene Search engine store index indexing store object 12 13֙ 6ਘ 9ੌ ੌਃੌ
Domain Model POJO Hibernate Core JPA: programmatic API Hibernate Search
persists indexes/searches Infinispan EhCache MongoDB Lucene Search engine NoSQL store index indexing store object 13 13֙ 6ਘ 9ੌ ੌਃੌ
Domain Model POJO Hibernate Core JPA: programmatic API Hibernate Search
Hibernate OGM Core JP-QL converter persists indexes/searches Infinispan EhCache MongoDB Lucene Search engine NoSQL store object store index delegates object logic to indexing 14 13֙ 6ਘ 9ੌ ੌਃੌ
Domain Model POJO Hibernate Core JPA: programmatic API Hibernate Search
Hibernate OGM Core JP-QL converter persists indexes/searches Infinispan EhCache MongoDB Lucene Search engine NoSQL store object store index delegates object logic to Object/Grid Mapper indexing 15 13֙ 6ਘ 9ੌ ੌਃੌ
Domain Model POJO Hibernate Core JPA: programmatic API Hibernate Search
Hibernate OGM Core JP-QL converter persists indexes/searches Infinispan EhCache MongoDB Lucene Search engine NoSQL DataStore store object store index delegates object logic to Object/Grid Mapper indexing 16 13֙ 6ਘ 9ੌ ੌਃੌ
Hibernate-OGM Concept 17 13֙ 6ਘ 9ੌ ੌਃੌ
Schema or no schema? Schema-less developer friendly data structure migration?
need strict development guidelines Schema strong documentation share with other apps / tooling 18 13֙ 6ਘ 9ੌ ੌਃੌ
Entities as serializable blobs? Store the whole graph? Consistency with
duplicated objects Concurrency / Latency Structure change and (de)serialization 19 13֙ 6ਘ 9ੌ ੌਃੌ
OGM’s approach 관계형 모델의 장점은 최대한 수용 객체와 데이터 구조의
관계를 끊음 데이터는 tuple 형태로 저장 기본 수형으로 제한 CRUD 작업은 key lookup 으로 작업 20 13֙ 6ਘ 9ੌ ੌਃੌ
Infinispan In-memory key/value store + cache store Data grid memory
>>>> network >> local disk access Transaction JTA / XAResource Distributed virtual memory = (servers) / redundancy 21 13֙ 6ਘ 9ੌ ੌਃੌ