[Evergreen-dev] Time to deprecate "authoritative" APIs?
Bill Erickson
berickxx at gmail.com
Tue Mar 21 10:15:44 EDT 2023
On Tue, Mar 21, 2023 at 9:54 AM Galen Charlton <gmc at equinoxoli.org> wrote:
> 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.
>
Thanks, Galen. Makes sense. I'll open an LP.
-b
> <http://evergreen-ils.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.evergreen-ils.org/pipermail/evergreen-dev/attachments/20230321/9cf4250d/attachment.htm>
More information about the Evergreen-dev
mailing list