Why does the read-only sqlite_zip storage include a broker backend?

I noticed that the setup process for a profile with the read-only sqlite_zip storage also allows you to setup a broker backend (i.e. RabbitMQ or ZeroMQ). Out of curiosity, what are the use cases of this broker backend for a read-only profile? As far as I understood, you cannot create new data in a read-only profile and without this ability what use cases are there for running processes that have to be controlled by a broker backend? Is this simply to allow the option of (re)-running processes using the data from the sqlite_zip archive without storing the results in the end?

I think it’s just because at the moment we allow to pair any storage backend with any broker backend. But you are right that in your specific case, it does not make sense as it’s read-only. I don’t remember if we have a specific “flag” in the storage to mark it as read only - probably we should add this flag, and not ask the broker at all if the storage is read-only.

Pinging @geiger_j @agoscinski @ali-khosravi @edan-bainglass if they have further comments (and we should probably open an issue so this can be fixed later)

Thanks for pointing it out , One aspect worth considering is whether broker configuration should depend on the capabilities of the storage backend rather than being offered for every storage type.

For a read-only sqlite_zip profile, I don’t immediately see a clear use case for a broker, since the storage cannot persist new data or processing results. Introducing a capability flag (such as read_only) at the storage level could help avoid requesting unnecessary broker configuration during setup.

Are there any specific use cases where pairing a broker with read-only storage would still be necessary?