thulasi-ram / ff_intg

A sample integration POC with Apache camel and Temporal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FF Intg

Quick Start

  • Setup a .env file from .env.template
  • Requires rabbitmq and postgres to be running locally or elsewhere
  • gradle bootrun to run the server
  • gradle flywayMigrate to migrate via cli

Rabbitmq Setup

  • optionally can be done in vhost
  • requires exchange invoices_exchange
  • requires queue invoices_queue bound to exchange with routing key *

Postgres Helpers

dropdb <dbname> createdb --username=<username> --owner=<username> <dbname>

Invoice Producer and Consumer

  • InvoicePublisher produces simple invoice payload periodically n seconds
  • InvoiceConsumer consumes them as soon as it is published.
  • todo: Currently immediate ack and prefetch is done which needs to be stopped
  • The stored json triggeres another camel route which starts a temporal workflow

ff class diagram

Docker

docker-compose up --build -d

About

A sample integration POC with Apache camel and Temporal


Languages

Language:Java 95.5%Language:Dockerfile 3.5%Language:PLpgSQL 0.9%