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/08/01 23:02:03 UTC

[GitHub] [apisix] MalWalters opened a new issue, #7587: help request: limit-count plugin

MalWalters opened a new issue, #7587:
URL: https://github.com/apache/apisix/issues/7587

   ### Description
   
   Hi, we have a use case where we would like to use APISix to provide a prepaid way to access our API. e.g. a client would subscribe for 12 months or 1,000,000 API calls and it looks like the `limit-count` plugin supports this. I have two questions though.
   
   Does it make this distinction per customer? We are anticipate using the X-API-Key for authentication and would be ideal if we could group by this.
   
   Is there a way that we can expose the usage count for the client via a GET call so they can assess and budget their usage?
   
   Thanks in advance
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


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

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


[GitHub] [apisix] github-actions[bot] commented on issue #7587: help request: limit-count plugin

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7587:
URL: https://github.com/apache/apisix/issues/7587#issuecomment-1661925630

   This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.


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


[GitHub] [apisix] tokers commented on issue #7587: help request: limit-count plugin

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #7587:
URL: https://github.com/apache/apisix/issues/7587#issuecomment-1202238569

   @MalWalters By the way, you should be careful about the quota sharing; by default, the quote is calculated per instance. It's not shared among the cluster.
   
   Also, use `$consumer_name` as the key doesn't allow you to configure different quotas for different consumers.


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


[GitHub] [apisix] MalWalters commented on issue #7587: help request: limit-count plugin

Posted by GitBox <gi...@apache.org>.
MalWalters commented on issue #7587:
URL: https://github.com/apache/apisix/issues/7587#issuecomment-1201988371

   Thanks @tzssangglass , much appreciated. Do you know of any specific plugins that support the functionality required?


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


[GitHub] [apisix] github-actions[bot] closed issue #7587: help request: limit-count plugin

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #7587: help request: limit-count plugin
URL: https://github.com/apache/apisix/issues/7587


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


[GitHub] [apisix] exotfboy commented on issue #7587: help request: limit-count plugin

Posted by GitBox <gi...@apache.org>.
exotfboy commented on issue #7587:
URL: https://github.com/apache/apisix/issues/7587#issuecomment-1217494626

   @MalWalters : We met the same requirement, how do you make it finally? 


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


[GitHub] [apisix] tzssangglass commented on issue #7587: help request: limit-count plugin

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #7587:
URL: https://github.com/apache/apisix/issues/7587#issuecomment-1202318687

   > Thanks @tzssangglass , much appreciated. Do you know of any specific plugins that support the functionality required?
   
   You need to implement such functionality yourself.


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


[GitHub] [apisix] github-actions[bot] commented on issue #7587: help request: limit-count plugin

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #7587:
URL: https://github.com/apache/apisix/issues/7587#issuecomment-1682003438

   This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.


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


[GitHub] [apisix] MalWalters commented on issue #7587: help request: limit-count plugin

Posted by GitBox <gi...@apache.org>.
MalWalters commented on issue #7587:
URL: https://github.com/apache/apisix/issues/7587#issuecomment-1202322997

   @tokers thanks for the heads up. That should be OK we'd be looking at going with one instance for the POC and load test to assess performance limitations.


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


[GitHub] [apisix] tzssangglass commented on issue #7587: help request: limit-count plugin

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #7587:
URL: https://github.com/apache/apisix/issues/7587#issuecomment-1201909168

   > Does it make this distinction per customer?
   
   We can set the `key` to be `$consumer_name` to distinguish the customer, e.g.:
   
   ```
       "plugins": {
           "limit-count": {
               "count": 2,
               "time_window": 60,
               "rejected_code": 503,
               "key": "$consumer_name"
           }
       },
   ```
   
   for more details, ref: https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/limit-count.md#attributes
   
   `X-API-Key` is used for the admin API of APISIX. It is not related to customs and should not be used to count requests generated by customs.
   
   > Is there a way that we can expose the usage count for the client via a GET call so they can assess and budget their usage?
   
   None. But you can add this functionality based on open source plugins.


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