Now, whenever I get a Message, I'd like to wait for X seconds (and, of course, continue process other lines). If within this time period I get the matching Answer (i.e. with the same msisdn), mark it as OK, else mark it as ERROR.
Maybe I should save the data in elastcsearch and than periodically search for Messages without Answers. Do you think it's a good idea?
Sure, that should work but I don't think there's a way to ask such a query efficiently so depending on the amount of data you may have to use clever caching to avoid flooding the ES server with queries.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.