by goloroden on 10/18/23, 7:22 PM with 1 comments
However, I find little material on this on the internet. There are a few pieces of information on event sequences. There's much more on time-series topics, but that's a bit different. What algorithms, data structures, etc. should one be familiar with if one wants to deal with the analysis and prediction of events? And what keywords should I watch out for?
by eimrine on 10/19/23, 8:56 AM
Suppose a program which accepts some requests from Internet (server in client-server terminology). One request needs 1 second to get done, but the client might send you either 1 request per 10 seconds in best case, because the server has 9 seconds to poke or 10 requests per 1 second in worst case, because the server needs 9 extra seconds. How to handle this?
Use an MQ software (zeromq, rabbimq, apache kafka etc). It is a doubly-linked list with pointers to undone tasks, if any. If you have a 10 one-second requests in one second, you just do them as fast as you can and use MQ as a storage.