The Payee's data should get persist and Payee's information to be retrieved into/from MongoDB collection.
Updated Payees information to be published into kafka message bus,
so that different consumers can consume the latest updates of payee in real time processing and also persist the latest updates of payee in a separate MongoDB collection for audit report.
Algorithm (Implementation steps)
1.) Implement different REST API(s) to search/add/update/delete payees that gets retrieved / persisted into MongoDB collection - named (manage_payees_info).
2.) Account number of payee to be autogenerated.
3.) Validate Account number and Daily Transaction Limit that should contain only digits.
4.) Implement Mappers for conversions from DTO to Entity / Entity to DTO.
5.) If anything update happens to payee information then updated record info will be published into kafka messsage bus.
6.) From kafka updated record info will get persisted into MongoDB collection - named (updated_payees_info).
7.) Kafka Producer/Consumer will be implemented to complete the steps #5 and #6.