Getting Started With Jakarta NoSQL And MongoDB - EclipseCon

Transcription

Getting Started with JakartaNoSQL and MongoDBMichael P. Redlich1

Who’s Mike? BS in CS from “Petrochemical Research Organization” InfoQ Java Queue News Editor Garden State Java User Group Jakarta EE Ambassadors@mpredli#shareMPknowledge

Objectives What is Jakarta NoSQL? What is Eclipse JNoSQL? NoSQL Database Types Jakarta NoSQL Layers Demo (yea!) Jakarta NoSQL Resources3

Jakarta NoSQL4

What is Jakarta NoSQL(1)? Jakarta EE specification Otavio Santana - specification lead Streamlines the integration of Javaapplications with NoSQL databases Defines a set of APIs that provide astandard implementation for most NoSQLdatabases5

What is Jakarta NoSQL(2)? One API, many databases Adopted by the Garden State JUG!6

Eclipse JNoSQL7

What is JNoSQL? Compatible implementation of the JakartaNoSQL specification One defined API for each NoSQL databasetype Uses the same annotations to map Javaobjects8

NoSQL Database Types Column Family Document Graph Key-Value9

Column Family10

Column FamilyRelationalColumn FamilyTableColumn FamilyRowColumnColumnKey/Value PairRelationship11

Document12

ntColumnKey/Value PairRelationshipLink13

Graph14

GraphRelationalGraphTableVertex & EdgeRowVertexColumnVertex & Edge PropertyRelationshipEdge15

Key-Value16

e PairColumnRelationship17

Jakarta NoSQL Layers Communication formerly known as “Diana” formerly known as “Artemis” Mapping18

Jakarta NoSQL Layers19

Communication Layer A set of APIs that defines communicationswith NoSQL databases Contains modules representing the fourNoSQL database types May be compared to the JDBC APIs in therelational database world20

Mapping Layer A set of APIs that map Java objects toNoSQL databases Incorporates Jakarta CDI and Jakarta BeanValidation specifications Annotation driven May be compared to JPA and ORM in therelational database world21

Scalability vs.Complexity22

Supported NoSQLDatabases23

Live Demo24

Current Status ofJakarta NoSQL In development Version 1.0.0-b3 Migrate to JDK 11 after the release ofJakarta EE 9.125

Jakarta NoSQLResources https://jakarta.ee/specifications/nosql/ https://www.infoq.com/news/2019/10/jakarta-nosql/ https://www.youtube.com/watch?v EXQfO-y52 0 https://www.baeldung.com/eclipsejnosql26

Want to Get Involved? Contribute! Fork the nosql repository https://github.com/eclipseee4j/nosql27

Acknowledgements Otavio Santana28

Contact /portfoliogithub.com/mpredli01@mpredli29

Thanks!30

What is Jakarta NoSQL (1)? Jakarta EE specification Otavio Santana - specification lead Streamlines the integration of Java applications with NoSQL databases Defines a set of APIs that provide a standard implementation for most NoSQL databases 5