What product/components do you use and which version/fix level?
Cumulocity IoT (backend 1011.0.19 frontend 1011.0.4)
Are you using a free trial or a product with a customer license?
Customer license
What are trying to achieve? Please describe in detail.
Hi,
It’s Luca from DAC System.
We are starting to build a custom web application on top of cockpit. We are porting a 2D chart from a pre-existing application. This chart can be customized setting up some property from the UI like y-axis min/max value, lines color and so on. All these settings need to be persisted in some way, clearly we don’t want to set them every time we need to read the chart.
This is a very specific use case but I can generalize: what is the correct approach to persistency?
- Use built-in API? What if the entity I need to persist doesn’t fit the “pre defined” collections i.e. inventory, alarms, events …?
- Create some sort of persistency layer on a microservice? If this is the case I need some clarification on these statements I found on Cumulocity IoT docs. Here it’s stated that “All persistent states must be stored at the Cumulocity IoT platform via inventory, binary, tenant options and other APIs. Persistent volumes are not supported.” On the other hand here under the statefullness paragraph: " Avoid statefulness wherever possible, rather write data via REST requests or DB to a persistent shared storage […]" What is the difference between a persistent volume and a persistent shared storage in this context?
Every bit of info or direction to look at is welcome.
Regards,
Luca