6 ms·
entity = instance id component = metadata + data system = metadata processors This way you can decouple business rules from the model by using metadata to in
by NovaX 5y ago
entity = instance id
component = metadata + data
system = metadata processors
This way you can decouple business rules from the model by using metadata to instruct how the entity should be processed. At work we use json schema as our type system to describe our entities, where every instance includes the schemas that it implements. The metadata allows us to render an entity, process it via server-side triggers, store and search, use generic crud routes, etc. In a language like Java, this is the same as using reflection to inspect interfaces and annotations for processing an object.