Can we control the order of replication agents?
We are using AEM 6.3
My use case:
There are totally 3 replication agents in my scenario
1. On author, I have 2 replication agents
2. One for activating the content to publish instance
3. One agent to purge Akamai Cache.
4. On publish there is one replication agent to flush dispactcher cache.
Issue: I want to activate Akamai Cache purge ONLY AFTER flushing dispatcher cache. So on author, can I trigger Akamai Cache Purge Agent only after the content gets activated on Publish instance? Can I do that?
Note:
1. Having the Akamai Flush agent on Publish instance WILL NOT work for me, since in my production, I have 4 publishers and I do not want Akamai requests to flow from all the 4 publishers.
2. I want this order of flushing cache -> First Publisher then Dispatcher and then Akamai to avoid any race condition.
Let me know if there is any better way to handle this use case.