Fabriceli commented on PR #8928:
URL: https://github.com/apache/apisix/pull/8928#issuecomment-1451879256

   It can create TWO event to watch the services and update the `all_services`:
   
   ```mermaid
   flowchart TD
                subgraph Event1: watch catalog
                A[Start] --> catalog{Catalog any change?}
       catalog -->|Yes| health[Query nodes]
       health --> D[Post Event1]
       catalog ---->|No| E[End]
       D --> E
       end
       
       subgraph Event2: watch health
       A2[Start] --> health2{health any change?}
       health2 -->|Yes| catalog2[Query services]
       catalog2 --> H[Query nodes]
       H --> D2[Post Event2]
       health2 ---->|No| E2[End]
       D2 --> E2
       end
       
       subgraph Events register
       A3[Start] --> register[Register Event]
       register --> update[Update all services]
       update --> e[End]
       end
   ```
   


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