CAP theorem – the challenge
Imagine we have thousands of thousands of alerts (telemetry data) generated from IoT devices and we want to collect them to do some analysis, reporting or to create supporting tickets from the data we received? These alerts are sent over a network protocol, either through HTTPS, SMTP, TCP/IP or AMQP. The truth is that there will always be a latency receiving those messages. If you heard about the CAP theorem, it states that it is impossible for a distributed data store to achieve more than 2 out of these 3 guarantees: