Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Neo4j for Java developers

Gerrit Meier
September 11, 2024

Neo4j for Java developers

Content:
* Short introduction what graph databases / Neo4j is
* Neo4j Java Driver
* Framework integrations
* Object mapping (with Spring Data Neo4j)
* CypherDSL
* Neo4j-JDBC driver
* Query API (http endpoint)
* Testcontainers

2024 edition

Gerrit Meier

September 11, 2024
Tweet

More Decks by Gerrit Meier

Other Decks in Programming

Transcript

  1. There is a LOT …and we will cover mostly all

    today 😅 Neo4j Inc. All ri hts reserved 2024 2
  2. me • Workin on Sprin Data Neo4j and Neo4j-OGM @neo4j

    • meistermeier.com [email protected] • JUG Ost alen leader Gerrit Meier Sta So tware En ineer Neo4j Inc. All ri hts reserved 2024 3
  3. Properties ﹣ Boolean ﹣ Inte er ﹣ Float ﹣ Strin

    ﹣ Byte-array ﹣ Temporal ﹣ Spatial ﹣ List/Map Neo4j Inc. All ri hts reserved 2024 8 :Person :ACTED_IN
  4. Neo4j Inc. All ri hts reserved 2024 15 Today’s plan

    Basic interaction/ connectivity Entity Mappin and Framework support Toolin Stored procedures and Drivers Libraries and Inte rations on top o Drivers Libraries and tools to make developer li es easier
  5. Cypher 19 RVENTION SLIDE * INTERVENTION SLIDE * INTERVENTION SLIDE

    * INTERVENTION SLIDE * INTERVENTION S RVENTION SLIDE * INTERVENTION SLIDE * INTERVENTION SLIDE * INTERVENTION SLIDE * INTERVENTION S MATCH (p:Person)-[:ACTED_IN]->(m:Movie) RETURN p,m
  6. Java Driver Neo4j Inc. All ri hts reserved 2024 20

    … about the same API or Python, JavaScript, .NET or Go, i you have to
  7. Neo4j CypherDSL Neo4j Inc. All ri hts reserved 2024 32

    We were our first users Sprin Data Neo4j without Strin concatenation Type-sa e way to write Statements Think o jOOQ Renders di erent Dialects and/or Formats No need to remember version specific rammar
  8. Neo4j JDBC Neo4j Inc. All ri hts reserved 2024 37

    Pure JDBC Driver Implements Neo4j’s Bolt protocol Cypher statements and (some) SQL Optional Translator support Per ect inte ration into ETL / SQL tools Compatible with the JDBC spec
  9. But I don’t use any JVM For the ones who

    are here or the ree ood Neo4j Inc. All ri hts reserved 2024 38
  10. Neo4j Query API Neo4j Inc. All ri hts reserved 2024

    39 Revamped HTTP server Pro rammin lan ua e a nostic Choose your flavour Simple types or additional type in ormation Works nicely with clusters Read-only queries et redirected to read replicas
  11. Testcontainers Li e is too short to manually start a

    server Neo4j Inc. All ri hts reserved 2024 40
  12. The hidden heroes Neo4j Inc. All ri hts reserved 2024

    43 Neo4j-OGM Livin li e the puristic Java way Neo4j Mi rations Flyway inspired Database Mi rations Sprin or GraphQL / Sprin AI Inte ration o Neo4j rom the library side