- Build the project
- Run Payment Service in port 9090 -
java -jar -Dserver.port=9090 timeout-budgeting-0.0.1-SNAPSHOT.jar
- Run User Service in port 8080 -
java -jar -Dserver.port=8080 timeout-budgeting-0.0.1-SNAPSHOT.jar
- Invoke
http://localhost:8080/users/123
with headersREQUEST_START_MILLIS
andTIMEOUT_BUDGET_SECONDS
- Value for
REQUEST_START_MILLIS
can be retrieved from https://currentmillis.com. - Value for
TIMEOUT_BUDGET_SECONDS
is just the timeout in seconds.