caproto
caproto copied to clipboard
PVGroups backed by actual databases (e.g., elasticsearch)
Add some "advanced" examples based on the concept of PVGroups backed by actual databases. May be worthy of additional 'helpers' in a separate repository.
Of one of the possible forms:
- Existing database -> pull -> PVGroup.pvproperty
- PVGroup as a document -> push -> database
A variant of (2) is prototyped here for elasticsearch https://github.com/pcdshub/archstats/blob/master/archstats/db_backed.py where:
- Data is sourced from a simple http request generating a JSON document
- ... which is then exposed to EPICS by way of a dynamic PVGroup
- ... and simultaneously stashed away as a document in elasticsearch
Wow, cool.