How to get service info (in partcular service cert) without a transaction #4324
-
Currently I can only see using a transaction to get a view on the service map as a way to get the service info. It would be useful if we could get this without having to use a transaction, e.g. in initialisation logic. Is there a way to get it without a transaction? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The other way of accessing state is to use a The service cert is particularly difficult though, because it is not produced immediately on startup. So it might be accessible in What's the use case for reading service info without a transaction? If it's executed outside of a transaction (eg - in an index), we should consider what value of the |
Beta Was this translation helpful? Give feedback.
The other way of accessing state is to use a
Subsystem
. Seenode_configuration_subsytem.h
for an example of one which exposes the node's startup configuration.The service cert is particularly difficult though, because it is not produced immediately on startup. So it might be accessible in
open()
, but not in your app/registry's constructor. There's also situations where the service cert changes - primarily on restarts in disaster recovery, but also on explicit cert validity renewals by members.What's the use case for reading service info without a transaction? If it's executed outside of a transaction (eg - in an index), we should consider what value of the
ServiceInfo
we want to use, an…