The apps demonstrate a simple architecture that utilize Kafka as the message broker, FastAPI as the accout-service and Go as the journal-service. The account-service is responsible for handling the account and the journal-service is responsible for handling the journal. The account-service will produce a message to the Kafka when a new transaction is created. The journal-service will consume the message and create a new journal then store it in the database. All the services are running in a docker container.
- Docker
- Docker Compose
- Python 3.11
- Go 1.17
- Clone this repository
- Build the docker image in accout-service
cd account-service
docker build -t account-service .
cd ..
- Build the docker image in journal-service
cd journal-service
docker build -t journal-service .
cd ..
- Run the docker-compose
docker-compose up
- Hit the API via Postman