Using Redis to store beamline state persistently#

Section Topic

This documents one way of using Redis at a beamline. Redis is an in-memory data store which can be served from a server at the beamline. At BMM, Redis is used to store keyword/value pairs – i.e. a dictionary – as a way of maintaining the state of an experiment.

Lesson

Maintain the state of an experiment in a way that is independent of the running Bluesky process. In this way, state can be preserved even if Bluesky is exited. It also allows multiple processes to access knowledge of the state of the running experiment.

Beamline

BMM

Link to source code

linkam.py

Section author

Bruce Ravel (bravel@bnl.gov)