This is a sample Lagom/Java application that has a Customer service that allows you, via REST, to:
- Add a customer
- Get a customer
- List customers (via read-side view)
- Disable a customer (acting as a soft delete)
This implementation uses Cassandra for both the write-side and read-side.
- mvn lagom:runAll
- mvn clean package docker:build
- curl -H "Content-Type: application/json" -X POST -d '{"name": "Eric Murphy", "city": "San Francisco", "state": "CA", "zipCode": "94105"}' http://localhost:9000/customer
- curl http://localhost:9000/customer/51c25a39-39b8-4937-b56b-5cca7f79acc1
- curl http://localhost:9000/customer
- curl -X PUT http://localhost:9000/customer/disable/51c25a39-39b8-4937-b56b-5cca7f79acc1
- curl http://localhost:9000/customer/51c25a39-39b8-4937-b56b-5cca7f79acc1 (run again to check disabled)
- Remove @Immutable in favor of Lombok lagom/lagom#592
- Set cassandra-query-journal.eventual-consistency-delay to 0s lagom/lagom#497
- Delay as related to integration tests lagom/lagom#634