NOTE: a generalized write-up of a problem class I have worked on. Client names, data and internal details are omitted on purpose.
Context
Two enterprise projects dealt with large volumes of data produced by devices: one focused on ingesting and analysing IoT data, the other on a digital twin of a physical system running on AWS.
Constraints
- Continuous, high-volume input that cannot be allowed to back up.
- Data had to be usable for both real-time views and historical analysis.
- The solutions had to be cloud-native and cost-aware.
Decision
Separate ingestion from processing. Streams enter through AWS Kinesis and Apache Kafka and are processed in motion with Apache Flink. Batch and historical analysis runs on Apache Spark and Hive. Services were written in Scala and Java, with the Play Framework for APIs.
Trade-offs
- Running streaming and batch paths means two models to maintain, but each is matched to its job.
- Managed ingestion services reduce operations work and add provider coupling.
Outcome
Two delivered platforms, an IoT data ingestion and analytics platform and an AWS-based digital twin, built within a wider effort to bring modern data engineering practices and automated testing to the organisation.
What I would stress
Treat the schema of device data as a contract from day one. Changes upstream are the most common cause of broken pipelines.