You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/01/24 02:09:41 UTC

[GitHub] [apisix] spacewander commented on issue #6143: discuss: Support config merge/overwrite by profile(like spring boot profile style)

spacewander commented on issue #6143:
URL: https://github.com/apache/apisix/issues/6143#issuecomment-1019646729


   Kong is migrating its dbless backend to LMDB. For effectiveness, multiple files can't win an embedded database.
   
   But multiple files may be a good solution for middle-scale configuration.
   
   What about using a directory to configure, and merging all files into one?
   For example,
   
   ```
   conf-dir/
   routes-xxx.yml # we don't need `apisix-` prefix if we have a directory
   routes-yyy.yml
   upstreams-xxx.yml
   ...
   ```
   
   ```
   # routes-xxx.yml
   routes:
     -
       uri: /hello
       upstream:
         nodes:
           "127.0.0.1:1980": 1
         type: roundrobin
     ...
   ```
   
   We can keep the list in memory and update the data if one of the files changes.
   
   It is only my idea. Since this feature is not trivial, let's discuss it for several days before coding. Ideas are welcome!


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org