A standalone service that represents a read model, which is "query" part in the CQRS pattern. To update the read model, it handles domain events published by catalog command service.
The catalog query service uses Spring JPA and Postgres to store catalog items.
The catalog items are publicly available.
The best way to run the service is with IDE like IntelliJ IDEA or Eclipse. Alternatively, after you build the service, you can run it with the following command:
~ java -jar services/catalog/catalog-query/build/libs/catalog-query.jar
Optional profiles:
- elk - to enable ELK logging.
- distributed-tracing - to enable distributed tracing with Sleuth and Zipking.
- docker - used when the service is run with docker.