Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dhoard/orders-kafka-streams
https://github.com/dhoard/orders-kafka-streams
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dhoard/orders-kafka-streams
- Owner: dhoard
- License: apache-2.0
- Created: 2022-11-03T18:41:40.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-26T14:23:47.000Z (over 1 year ago)
- Last Synced: 2024-04-17T14:19:18.935Z (7 months ago)
- Language: Java
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# orders-kafka-streams
EXAMPLE CODE ONLY
NO SUPPORT PROVIDED
USE AT YOUR OWN RISK
---
Topics required :
- order
- order-keyed
- order-info
- facility-info
- facility-info-by-minute---
Source topic :
`order`
Source events :
`order.placed` event
```
{
"event.type": "order.placed",
"event.timestamp": 1667503309938,
"facility.id": "facility-1",
"order.id": "dc16fa3c-1beb-4992-8c27-173856fb0cdf"
}
````order.fulfilled` event
```
{
"event.type": "order.fulfilled",
"event.timestamp": 1667503309423,
"facility.id": "facility-1",
"order.id": "dc16fa3c-1beb-4992-8c27-173856fb0cdf"
}
```Output topic :
`facility-info-by-minute`
Output event :
```
{
"event.type": "facility.info",
"facility.id": "facility-1",
"processing.count": 13,
"processing.ms": 613
}
````processing.count` - count of orders processed within a facility within the window
`processing.ms` - sum of processing time for orders within a facility within the window