4 ms·
Some thing I was wondering about this kind of architecture, how would you express some constrains, like foreign key constraints or unique key constraint? Would
by sischoel 7y ago
Some thing I was wondering about this kind of architecture, how would you express some constrains, like foreign key constraints or unique key constraint? Would they still be in the database, or would you put them into some inner layer?
- deleted 7y ago[deleted]
- kgwxd 7y agoMy understanding is that only the storage layer should care about that, and only if it's a relational store. The concept of looking things up by "id" will obviously make it to the application layer but the application layer "id" isn't directly linked to the PK column of a particular SQL table, even if it's going to be the most common use case.