threeel
3 years ago

How to Measure Login Request per Resource for a Subscription

Posted 3 years ago by threeel

Hello all i am trying to figure out the best way to handle a request counter and persist it.

ok the scenario,

i have a resource for example.

/resource/{identifier}

the identifier is the id of the resource i want to measure how many times did this resource was hit and to persist it so that if on a next request the counter is equal to the maximum of users subscription to deny access to the resource.

i am looking for efficiency... i am aware that i can do

$model->increment('counter-property') 

the connections that i am expecting is around 3200/day on the same resource.

thank you for your time!

Please sign in or create an account to participate in this conversation.