ecodina commented on issue #61686:
URL: https://github.com/apache/airflow/issues/61686#issuecomment-3880283033

   I have been able to reproduce the issue locally with `breeze` (Mac M2 Pro, 
docker capped at 8 GB) by creating 600 Dags.
   
   - Requests take around 6 seconds instead of 25 (since Keycloak is managed 
with `breeze` in the same machine, without SSL).
   - I have tested modifying `_is_authorized`: if it returns True without 
making a request to Keycloak, responses are immediate.
   - I have also verified that in every request we send 600 requests to 
Keycloak to verify whether we have access to each Dag.
   
   So, I believe the only way to fix it for everyone would be to implement 
`filter_authorized_dag_ids` and `batch_is_authorized_dag`. 
   
   I've been investigating with Opus 4.6 what would be the best approach to 
implement them, but after an intensive session we've not arrived anywhere. 
Maybe someone else has a clearer idea on how to proceed?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to