Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.23 KB

File metadata and controls

45 lines (37 loc) · 1.23 KB

ASSESMEN ISI 2024

Overview

Architecture

Routes

Routes

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.

Installation

Requirements

  • Docker
  • Docker Compose
  • Python 3.11
  • Go 1.17

How to run

  1. Clone this repository
  2. Build the docker image in accout-service
cd account-service
docker build -t account-service .
cd ..
  1. Build the docker image in journal-service
cd journal-service
docker build -t journal-service .
cd ..
  1. Run the docker-compose
docker-compose up
  1. Hit the API via Postman

License

MIT