Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1149 - [Search][Recommendation] Introduce Kafka Stream to aggregate … #1233

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PhuocNguyenBa
Copy link
Contributor

…all product data.

-implement kafka stream application to capture all changes related to product

Copy link

Recommendation Coverage Report

Overall Project NaN% NaN% 🍏

There is no coverage information present for the Files changed

@PhuocNguyenBa PhuocNguyenBa force-pushed the feature/yas-1149 branch 3 times, most recently from 9665f64 to 3145ba4 Compare October 29, 2024 00:07
…all product data.

-implement kafka stream application to capture all changes related to product
Copy link

sonarcloud bot commented Oct 29, 2024

@duylv27
Copy link
Contributor

duylv27 commented Oct 30, 2024

Hi @PhuocNguyenBa, could you help to add your kafka-ui image to docker-compose file. It supports us to interact with message better than the akhq.

* @param <V> the type of values in the store
* @return a Materialized configuration for the store
*/
protected <K, V> Materialized<K, V, KeyValueStore<Bytes, byte[]>> createMaterializedStore(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems this one haven't enabled log compacted, could you help to confirm?

.join(
nonNullProductCategoryTable,
(productCategoryDetail, nonNullProductCategoryDetail) -> {
if (productCategoryDetail.getId().equals(-1L)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using this approach to check for deleted cases doesn’t make sense. In the future, if there is master data with id: -1, will it be identified as deleted?

We should define a flag in BaseMetaDataDto to serve all cases.

KTable<Long, ProductCategoryDto> productCategoryTable =
createProductCategoryTable(streamsBuilder);

KTable<Long, ProductCategoryDto> nonNullProductCategoryTable =
Copy link
Contributor

@duylv27 duylv27 Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain, why we need to create a mv to store value:null records here?


@Override
@Autowired
protected void process(StreamsBuilder streamsBuilder) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems we haven't aggregated product image data into sink topic, could you help to check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants