SOF --:--NYC --:--

~/cases/iot-digital-twin

professional, anonymized

IoT ingestion and a digital twin platform on AWS

Large-scale ingestion and analytics of device data, and a digital twin built on AWS with streaming and big data tooling.

diagram
Ingestion is separate from processing: streams in motion, batch for history.streambatchDevicescontinuous, high volumeKinesis + KafkaingestionApache Flinkprocessing in motionReal-time viewsSpark + Hivebatch and historicalanalysisHistorical analysis
Ingestion is separate from processing: streams in motion, batch for history.

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.

$ facing something similar?