I’m using command validation in custom interceptor which extends BeanValidationInterceptor (for now I’m using AsynchronousCommandBus but perhaps I’ll switch to jgroups).
For validation I’m calling other services with rest from within this interceptor. In early stage of development I was using spring’s repository to perform direct query to database, but this tights my services together. With rest, services are separated but that takes more time. How are you doing validation and what are the best practices to do so.