Apigee Edge Proxy - PostClientFlow with SharedFlow

I am trying to create a shared flow (transaction logging using Message Logging policy) which needs to run for all the proxy in my environment.

I currently see if I add this in post-proxy flowhook, its running before sending the response to client. Is adding this in flowhook would cause any performance issue when there are higher TPS ?

Other option is to add this shared flow as FlowCallout policy where I can add them to PostClientFlow making the logging happen after sending the response to client. But I have to manually do this for all proxy.

Is there a way to run this shared flow post client response through flowhooks ? Looking for some best practices from apigee team.

1 Like

Hi, it’s true that the flow hooks don’t cover postclientflows, so you need to add those always in each proxy. You could automate this using automation as well, before proxies are deployed. Would that be a solution?

1 Like

Yes, I could try that provided there is no direct option to do this. We are a centralized team and customers deploy proxies with our pipeline using maven. I would like to see if I can put this in pipeline.

I am using the maven plugin to deploy the proxies. Do you have a sample code or config, how I could add this ?