This module is a simple Java client, which was created to test our scenario.
You can specify two parameters—the ID of the football player that you want to buy, and the value of your offer. If you don't specify these parameters, the default values will be 1 (Gianlugi Buffon) and 22 million, respectively.
Now, it's time to test it. Run the following command:
$ java -jar target/Football_Player_Market_client-1.0.0.jar 18 1
I am offering 18 million to try buy Gianluigi Buffon; my offer will be considered valid, since 18 million is more than 80% of the value of the player. For this reason, the Narayana LRA coordinator will perform the complete phase.
The following is an extract of football-player-market-microservice-lra ...