Hi. I’m discovering Solid, it seems very promising for me.
By reading the documentation i have one doubt. How to handle the case of having complex bussiness logic to update the data stored in a pod, or side effects that occur outside the system?
For example, let’s say we have an online shop. Some articles are available for buying only if the quantity in stock in a physical warehouse is above some level, that varies for different product categories, or in particular seasons.
If we put the logic in the front app that manages the data, how can I ensure that the data in the POD is always valid? If the pod allows any arbitrary create or update operation, some authorized user could use a generic app and put whatever nonsense value in the store.
Can we model these business rules in the RDF semantics? Or can I embed my custom logic inside the POD some way?
Or this is not the kind of system that Solid is designed for?