Hi Vineet, Thank you for quick reply. How about searching past data? Let's say I want to put a threshold for API calls only up to last month API calls? Does Storm support this? If so, what kind of database system does Storm use?
Thanks, Dimuthu On Tue, Sep 1, 2015 at 10:25 AM, Vineet Mishra <[email protected]> wrote: > Hi Dimuthu, > > This is the perfect use case you are owning, the power of storm to > leverage real time event processing can be achieved prominently. > > Make sure you keep your spout parallelism and nodes configuration tuned. > > Cheers! > On Sep 1, 2015 10:09 AM, "DImuthu Upeksha" <[email protected]> > wrote: > >> 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 >> >> -- Regards W.Dimuthu Upeksha Undergraduate Department of Computer Science And Engineering University of Moratuwa, Sri Lanka
