Created
August 16, 2017 21:27
-
-
Save benstopford/c981c3459239b0805f56849d3af6168f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Build a stream from the orders topic | |
KStream ordersStream = builder.stream(..., “orders-topic”); | |
//Build a table from the products topic, stored in a local state store called “product-store” | |
GlobalKTable productsTable = builder.globalTable(...,“product-topic”,“product-store”); | |
//Join the orders and products to do the enrichment | |
KStream enrichedOrders = ordersStream.leftJoin(productsTable, (id, order) -> order.productId,...); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment