I am trying to set up routing traffic through a proxy to enforce rate limits at the edge, and in order to accomplish this I am thinking of having my proxy sign each request and then check this signature in a db_pre_request function on the supabase side. If this doesn't work in read replicas it would be less appealing, so just wondering if anyone here knows whether that pre request function is ran in the read replicas.
The user is trying to set up a proxy to enforce rate limits by signing requests and checking the signature in a db_pre_request function. They are inquiring if this function runs on read replicas, as it affects their implementation strategy.
I would guess that db_pre_request hook would come under a read only function (based on the postgres docs)