tazama-lf / relay-service

This service monitors NATS subjects and then relay published messages to one of the following destinations: REST API or Another pub/sub destination (e.g. NATS, RabbitMQ, Kafka)
Apache License 2.0
0 stars 0 forks source link

Feat: Tazama Relay Service #1

Closed UmairKhan-Paysys closed 1 month ago

UmairKhan-Paysys commented 1 month ago

Tazama Relay Service for enabling TMS to relay messages to the desired destination (NATS, RabbitMQ, REST API). The service needs a .env file for configuration and setting the desired destination. Please use the .env.template provided for reference. For deployment the Dockerfile will also require updates accordingly. Further details are mentioned in the README.md, otherwise please feel free to reach out.

UsamaAbdulMannan commented 1 month ago

@Lenbkr @Sandy-at-Tazama,

Based on our recent discussion, could you please acknowledge the below-mentioned items as CR? So that we can start working on it accordingly:

  1. If Destination is REST API, implement a option to "Deserialize".
  2. Add Logger service
    • a. For logging, the deserialization and logging part should happen asynchronously (so as not to affect performance)
    • b. Log with proper level - Error and Exceptions separate and Verbose logging separate
Sandy-at-Tazama commented 1 month ago

@UsamaAbdulMannan

Use logging library (contributing guide updated https://github.com/tazama-lf/.github/blob/main/CONTRIBUTING.md) https://github.com/tazama-lf/frms-coe-lib/blob/dev/README.md "@tazama-lf/frms-coe-lib": "5.0.0-rc.4"

a. For logging, the deserialization and logging part should happen asynchronously (so as not to affect performance) b. Log with proper level - Error and Exceptions separate and Verbose logging separate including msgId (from deserialised message)