Comments (4)
Hi @gabizou, this is the first time we hear of such an issue. Would you be able to provide a reproducer?
from lagom-samples.
Would you be able to provide a reproducer?
I simply cloned the lagom/shopping-cart-java sample:
- Importing the maven
pom.xml
to IntelliJ - Running the necessary
docker-compose
file for the services (Kafka, zookeeper, Postgres) - Running
mvn lagom:runAll
with the debugger and a breakpoint at the flow subscription as line linked - Curl
curl http://localhost:9000/inventory/456
and notice the result is still0
- Curl
curl -H "Content-Type: application/json" -d 4 -X POST http://localhost:9000/inventory/456
to add 4 inventory - Run
curl -H "Content-Type: application/json" -d '{"itemId": "456", "quantity": 2}' -X POST http://localhost:9000/shoppingcart/123
to add 2 of456
to cart - Verify
curl http://localhost:9000/inventory/456
and the inventory is still 4....... - Wait several minutes for the debugger to actually receive the first event from the shopping cart message to update the inventory side (varies, but occasionally can be 4 minutes, sometimes up to 10 minutes, and then after this initial delay, most updates are relatively within a second).
from lagom-samples.
I don't remember the details, but I think you need to checkout the shopping cart before the inventory is updated.
curl -X POST http://localhost:9000/shoppingcart/123/checkout
from lagom-samples.
So I did a re-test with the curl to checkout, turns out it works. My underlying problem turns out to be that akka/akka-persistence-cassandra#867 is giving my development environment the slow-start up that I'm observing.
from lagom-samples.
Related Issues (20)
- Job "Run tests mixed persistence (java)" is flaky
- gRPC examples: Why are .proto in `impl` and not `api`? HOT 2
- Deployment jobs failures (RBAC issues?)
- Recommend using a recent JDK version, de-emphasize jetty-alpn
- Repository for publishing is not specified. HOT 2
- Introduce Startup Probe in shopping-cart samples
- Unable to run lagom grpc code HOT 2
- Replace Confirmation/Accepted/Rejected with StatusReply
- Need Sample for grpc with Maven HOT 4
- [maven/grpc] unable to find valid certification path to requested target HOT 2
- Entity testing with EventSourcedBehaviorTestKit
- gRPC: updated information about ALPN HOT 1
- grpc-specific scripts no longer necessary
- [Win/Linux] StatusRuntimeException: UNAVAILABLE: io exception in some OS HOT 1
- Migrate shopping-cart-scala tests to EventSourcedBehaviorTestkit
- AskTimeoutException in shopping-cart-java HOT 1
- gRPC integration tests can't start minikube on Travis HOT 1
- GRPC example doesn't run
- Tests using withJdbc() fail to start up with timeout HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lagom-samples.