Unique constraint violated in payload

Is there a way for the unique constraint validation in the payload in Axon to exist when creating an object?

Here is blog with how it can be done in Axon. Once we have DCB it will be much easier.