Hi all,
We have an API management solution which controls access to selected APIs
from outside users. We have a usecase of counting number of API calls done
by a user for each API and control access for that user once he has reached
to a threshold. Note : This should be done at real time
My approach is sending a stream of objects / JSONs to Storm for each API
call done by user. Sample JSON Could be like this
{
userName : dim,
apiName : SampleAPI
}
Can Strom aggregate these objects and keep a summary of API calls done by
each user for each API? Once number of api calls for user "dim" has reached
to a threshold level, Storm should be able to notify me (API management
tool) to restrict access for that user to access APIs.
Can we do this using Storm?
Thanks,
Dimuthu