Giter Club home page Giter Club logo

thegoncalomartins / outbox-inbox-patterns Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 5.43 MB

Repository to support the article "Building a Knowledge Base Service With Neo4j, Kafka, and the Outbox Pattern"

Home Page: https://medium.com/@thegoncalomartins/building-a-knowledge-base-service-with-neo4j-kafka-and-the-outbox-pattern-9fffeaa284a6

Kotlin 99.88% Shell 0.12%
neo4j outbox-pattern kafka quarkus kotlin microservices change-data-capture cqrs-pattern

outbox-inbox-patterns's Introduction

Building a Knowledge Base Service With Neo4j, Kafka, and the Outbox Pattern

This repository contains the code for a small project that was built to support a Medium article.

Requirements

Documentation

Domain Model

Architecture

Change Data Capture with Outbox Pattern

Services

Running

To run all the services and infrastructure just run:

$ ./init.sh

It may take a while because all the gradle dependencies need to be downloaded and the source code compiled.

After the script has finished, the API Gateway should be exposed at port 8090.

You can check that by running:

$ curl http://localhost:8090/__health
{"status":"OK"}

Demo

  • Open the postman collection and try to make some requests.

  • You can then go to Kafka's Landoop UI to check if messages have arrived to people-db.people.outbox and movies-db.movies.outbox topics.

  • To check that the information is persited in Neo4j, go to Neo4j Browser
    • Connect URL: bolt://localhost:7687
    • Authentication type: Username / Password
    • Username: neo4j
    • Password: HNxzZk7GBNcKv5kW

And run the following query

MATCH (n) RETURN n LIMIT 35

It should return some nodes and edges.

Example:

Metrics

    • Username: admin
    • Password: admin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.