https://github.com/thulasi-ram/ff_intg
A sample integration POC with Apache camel and Temporal
https://github.com/thulasi-ram/ff_intg
Last synced: 4 months ago
JSON representation
A sample integration POC with Apache camel and Temporal
- Host: GitHub
- URL: https://github.com/thulasi-ram/ff_intg
- Owner: thulasi-ram
- Created: 2023-09-10T11:59:38.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-10T21:00:11.000Z (almost 2 years ago)
- Last Synced: 2023-09-10T22:19:45.626Z (almost 2 years ago)
- Language: Java
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 `
`createdb --username= --owner= `### 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
## Docker
`docker-compose up --build -d`- the sql.yaml file below needs to be in a directory `dynamicconfig` under root
- https://github.com/temporalio/docker-compose/blob/main/dynamicconfig/development-sql.yaml
- [ ] rabbitmq definitions to create vhost and exchange bindings