tirkarthi commented on issue #59082:
URL: https://github.com/apache/airflow/issues/59082#issuecomment-3619401775

   Below using JSONResponse also has 12k rps without dependency on orjson using 
fastapi builtin JSONResponse with annotation for return value that helps spec 
generation.
   
   ```python
   @app.get("/dags5")                                                           
                                                                                
           
   def get_dags5() -> DAGWithLatestDagRunsCollectionResponse:
       
DAGWithLatestDagRunsCollectionResponse(total_entries=res["total_entries"], 
dags=res["dags"])
       return JSONResponse(res) 
   ```


-- 
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