liuxiran commented on issue #2737:
URL: https://github.com/apache/apisix/issues/2737#issuecomment-732355968


   I have a question: how does apisix watch the changes of etcd and update the 
nginx config?  
   
   my current implementation idea is that 
   
   1. add a field `status` in route`s schema, like  
https://github.com/apache/apisix/blob/d7593a0ac3f960ab23d5a71d98cf1666e21b207c/apisix/schema_def.lua#L621
   
   1. write the route to etcd after it is created, and remove it from the nginx 
configuration when it is discovered that the status of the route is 0 (offline).
   
   as for the second step I didn't find the relevant code , so do we have any 
reference codes or documentations?
   
   Thanks and looking forward to your reply😊
   
   cc @membphis @moonming @spacewander 
   
   


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

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


Reply via email to