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 2020/07/24 10:35:29 UTC

[GitHub] [incubator-apisix] UnderTreeTech opened a new issue #1899: request help: the difference between conf and lru cache

UnderTreeTech opened a new issue #1899:
URL: https://github.com/apache/incubator-apisix/issues/1899


   In most plugins, apisix use lru cache to store hot data. At the same time, in every plugin user can get config data through parameter conf. That make me confused, if conf can provide plugin global data, why apisix still choose lru to store global data? @membphis @moonming 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-apisix] UnderTreeTech commented on issue #1899: request help: what's the difference between conf and lru cache

Posted by GitBox <gi...@apache.org>.
UnderTreeTech commented on issue #1899:
URL: https://github.com/apache/incubator-apisix/issues/1899#issuecomment-663927584


   > The `conf` is the user's original configuration in etcd. We need to avoid modifying it. 
   > Keep to use it in a "read-only" way is safer.
   
   If my customize plugin only read the conf, can I use the conf directly? I think is more convenient.@membphis 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-apisix] membphis commented on issue #1899: request help: what's the difference between conf and lru cache

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1899:
URL: https://github.com/apache/incubator-apisix/issues/1899#issuecomment-663985459


   of course, you can do in this way.
   
   and we can close this issue.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-apisix] membphis commented on issue #1899: request help: what's the difference between conf and lru cache

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1899:
URL: https://github.com/apache/incubator-apisix/issues/1899#issuecomment-663919471


   The `conf` is the user's original configuration in etcd. We need to avoid modifying it. 
   Keep to use it in a "read-only" way is safer.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-apisix] membphis closed issue #1899: request help: what's the difference between conf and lru cache

Posted by GitBox <gi...@apache.org>.
membphis closed issue #1899:
URL: https://github.com/apache/incubator-apisix/issues/1899


   


----------------------------------------------------------------
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:
users@infra.apache.org