GithubHelp home page GithubHelp logo

amcquistan / kafka-mongo-mulesoft Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 75 KB

Docker based example integration pattern utilizing MongoDB, Apache Kafka, and MuleSoft.

Python 97.61% Shell 2.39%

kafka-mongo-mulesoft's Introduction

Integration Pattern: Kafka, Kafka Connect, MongoDB & MuleSoft

Docker based example integration pattern utilizing MongoDB, Apache Kafka, and MuleSoft. A Python based program generates fictitious sales data representing customer, product, and order domains. The customer and product domain data are persisted directly to MongoDB within the Python program where as the orders are published into Kafka brokers. Therefor, Apache Kafka is the data ingestion target, Kafka Connect is then used as a configuration driven approach to pipeline data from Kafka into MongoDB, and finally the MuleSoft rapid API development platform is utilized for serving data from MongoDB via a REST interface.

Running Locally

  1. Start Docker Compose Services
docker-compose up --build
  1. Start salesdatagen Python program to start generating sales order data
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python -m salesdatagen
  1. Verify Sales Orders Data Being Published
docker exec -it schema-registry kafka-avro-console-consumer --from-beginning \
  --bootstrap-server broker:29092 --topic orders \
  --property "schema.registry.url=http://localhost:8081"
  1. Start the MongoDB Kafka Connect Sink Connector
http PUT :8083/connectors/orders-sink/config @orders-sink.json
  1. View Orders Data in MongoDB
docker exec -it mongosh mongosh mongodb://developer:Develop3r@mongodb:27017
use sales
db.orders.find({})

kafka-mongo-mulesoft's People

Contributors

sciguymcq avatar

Stargazers

Nick Franken avatar

Watchers

Adam Mcquistan avatar Kostas Georgiou avatar

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.