1. inventory-process-api will read inventory json file via spark structured streaming (readStream) and write (writeStream) all records to kafka topic with specific batchId. This event will be triggered via POST method by uploading json file.
1. inventory-process-api will read inventory json file via spark structured streaming (readStream) and write (writeStream) all records to kafka topic with specific batchId.
2. This API will consume the kafka topic via spark structured streaming (readStream) and write (writeStream) transformed records to mongo collection. This event will be triggered via GET call by passing batchId
3. Additionally GET method will return processed data with CollectionAccumulator concept in spark.
4. Postman script and input json files are available in src/main/resources/postman folder.
3. Postman script and input json files are available in src/main/resources/postman folder.