[Evergreen-dev] Time to deprecate "authoritative" APIs?
Galen Charlton
gmc at equinoxoli.org
Tue Mar 21 09:54:13 EDT 2023
Hi,
On Mon, Mar 20, 2023 at 4:07 PM Bill Erickson via Evergreen-dev <
evergreen-dev at list.evergreen-ils.org> wrote:
> Since these begin + rollback pairs (and ".authoritative" APIs) serve no
> purpose in our environment, I was considering creating a local patch to
> disable them. However, before I start patching locally, I'm curious if
> there is a broader desire for deprecating authoritative APIs? I suspect
> they can be turned into NO-OP's with 2 or 3 well-placed lines of code.
>
> Do many/any of you use live, read-only pooled database replicas?
>
I don't think there are many (or any) left, but just in case, it looks like
it would be straightforward to either adjust authoritative_wrapper() or
register_method() in OpenILS::Application to look for an opensrf.xml
service setting called something like "uses_pooled_read_replica_dbs" to
decide whether to actually apply the wrapper or just clone the base method.
I think it would be OK to default that setting to false.
Regards,
Galen
--
Galen Charlton
Implementation and IT Manager
Equinox Open Library Initiative
gmc at equinoxOLI.org
https://www.equinoxOLI.org
phone: 877-OPEN-ILS (673-6457)
direct: 770-709-5581
<http://evergreen-ils.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.evergreen-ils.org/pipermail/evergreen-dev/attachments/20230321/754b6679/attachment.htm>
More information about the Evergreen-dev
mailing list