...
draw.io Diagram | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Steps/possible tickets:
- Modify REST endpoint to include param topic (1)
- Add logic to send response and request (2a & 2b)
- Add producer to DMI (implementation and config) (31 & 3b)
- Add consumer to NCMP (implementation and config) (4)
- Ther eis already a kafka producer in NCMP (KafkaProducerListener)
- Demo & Test (5, 6, & 7)
...
# | Type | Pros | Cons | Recommend |
---|---|---|---|---|
1 | Future | Futures return value | Y | |
2 | Thread | threads does not return anything as the run() method returns void . We could possibly implement mechanism to trigger a response but this is unnecessary as futures do this | N |
RequestID Generation
...
Type | Method | Ease of implementation | Recommend |
---|---|---|---|
UUID |
| Easy | Y |
Custom | We generate our own | Medium - Hard | N |
HTTP Request ID | |||
Kafka ID |
Async Request Option using Messaging (Out of Scope)
...