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

Seeding of products in shopping cart service does not always work #2

Open
fredyyy998 opened this issue Apr 30, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@fredyyy998
Copy link
Owner

The seeding in products service does work. But sending the data via kafka to the shopping cart service makes issues, specially for the first startup.
The problem is that the kafka broker sometimes start completly new and all commits are gone. Therefore the created datasets that could not ve been read by the shopping-cart service are gone.

@fredyyy998 fredyyy998 added the bug Something isn't working label Apr 30, 2023
@fredyyy998
Copy link
Owner Author

A temporary fix is to clear the Products table in both databases Inventory and ShoppingCart. Then stop all containers with ctr-c and simply up them again with docker-compose up. Do not run docker-compose down. The product service will recreate the products and publsih them correctly to kafka. The shopping-cart service will listen correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant