SlideShare una empresa de Scribd logo
1 de 17
© 2016 IBM Corporation
IoT Analytics from Edge to Cloud
© 2016 IBM Corporation2
Agenda
 What is Edge
 Edgent (formerly Quarks) overview
 Database (Informix) on the edge
 Database in the Cloud
 Spark
© 2016 IBM Corporation3
What is the Edge?
 Systems with constrained compute platform
 Due to cost, weight restrictions, space constraints, borrowing resources, ...
 Limited connectivity to central systems
 Limited by expense, bandwidth
 Periods of being disconnected
 Can be mobile or static
 Access to sensors for system being analyzed
 Potential to control system based on analysis
 Typically systems that exist where data(sensor) is generated
© 2016 IBM Corporation4
Edge Examples
 Vehicle
 Car, truck, race car, bike, train, bus, boat, drone, plane, ...
 Analyze engine sensors to predict/reduce chance of failure
 Mobile, may lose connectivity
 Building/Store/Warehouse
 HVAC, climate, energy use, motion sensors, ...
 Server in machine room
 Analyze load, cpu temps, rack temps
 Raspberry Pi with a couple of sensors
 Cheap $5+
 Smartphone
 Industrial machine
© 2016 IBM Corporation5
What is the value of analytics at the edge?
• Reduce communication cost
• Send relevant data when an event of interest occurs
• Heartbeats alone may not contain enough data or be
too late to take action
• React locally to events
• More intelligent decision making on the device
• Execute analytics while disconnected
• Streaming analysis
• Data is constantly being generated
• Needing real-time/continuous analyzing
• Collaborate with related devices
• Learn from devices with similar characteristics
• or location
© 2016 IBM Corporation6
Streaming and In-database Analytics at the Edge
• Streaming analytics
• Data is constantly being generated
• Needing real-time/continuous analyzing
• In-memory analysis of data
• In-database analytics
• Store data at the edge efficiently and securely
• Provide historical analytics on the data
• Visualize the historical data at the edge
• Perform complex/advanced analytics on historical
data: windowed aggregates, pattern matching,
anomaly detection, etc.
© 2016 IBM Corporation7
Introducing Apache
 Apache Edgent (renamed from Quarks)
 A community for accelerating Edge Analytics
 Open Source, incubating at Apache Software Foundation
• http://edgent.incubator.apache.org/
• http://wiki.apache.org/incubator/QuarksProposal
 Programming model and runtime for analytics at the edge
 A programming SDK with Functional Flow API for streaming analytics
• Initial support for Java & Android, Goal is to support multiple languages with priorities driven by the community
 A modular, lightweight and embeddable runtime
 Initially built by IBM based on 12 years experience with IBM Streams
© 2016 IBM Corporation8
Features
 Quarks for edge analytics – on device or gateway
 Lightweight embedded streaming analytics runtime
 Analyze events locally on the edge
 Reduce communication costs by only sending relevant events
 Functional Flow API for streaming analytics
 Per-event and windowed processing with simple analytics and pattern detection
• Map, FlatMap, Filter, Aggregate
 Connectors
 Messaging systems & data stores
• MQTT, HTTP, Web Sockets, JDBC, File, Apache Kafka and IBM Watson IoT Platform, Informix
 Micro-kernel style runtime with multi-platform support
 Small-footprint edge devices or sensors
• Including Raspberry Pis or smart phones
© 2016 IBM Corporation9
A Simplified IoT/Industry 4.0 Sensor Data Flow
Sensor Data History
Sensors
In-memory Analytics
Predictive
Analytics
Publish /
Subscribe
Cloud
Infrastructure
HDFS / HadoopStream Processing
Real-time Analytics Operational Analytics Big Data Analytics
(no gateway)
(Gateways) IBM Watson IoT Platform
© 2016 IBM Corporation10
Typical IoT Scenario
Industrial IoT-/Edge-Gateway(s)
with specific industry communication stacks
and local Analytic capabilties (in motion / at rest analytics)
Industrial Shop Floor Sensors
Raw Sensor Data
via industry specific
automation protocols
(e.g. PROFINET, BACnet,
OPC UA, Modbus etc.)
Aggregated / Filtered Sensor Data
via standard communication protocols
and formats (e.g. MQTT/JSON) into
the Cloud (IBM Bluemix, IBM IoT Platform),
IBM PMQ plus on premises solutions etc.
© 2016 IBM Corporation11
Informix - The Sensor Data optimized Hybrid Database
 Superior IoT Sensor Data Performance and Scalability in the Cloud,
on Premises and on Edge Gateways
 Innovative Sensor Data Storage and Processing w/o the need for costly all-or-
nothing In-Memory database technologies
 Large Scale and Embedded Sensor Data Benchmarks
 Simplified Application Development due to Integration of all Sensor
Data relevant data types in one hybrid Database
 Relational, Time Series, JSON and Geospatial (all joinable!)
 JSON based Time Series for full Schema Flexibilty
 Free Developer Editions and Docker Images available
 Open, Standardized APIs allow easy Integration into existing
Architectures
 SQL, REST, MongoDB, Node-RED, MQTT, JDBC, ODBC, .NET etc.
 Very Cost Effective Operations in all Deployment Models
 Very efficient HW utilization (less disk space, less CPU & Memory) compared to
other approaches
© 2016 IBM Corporation12
DEMO
Recorded video of the demo
(https://ibm.box.com/s/hye8csvq14f6cylnk8cqrmtu0h5n2m8h)
© 2016 IBM Corporation13
Live Demo: Sensor Data Flow - Edgent & Informix on a Raspberry Pi
Sensortag
to
Node-red
(Node.js)
Raw sensor data
(JSON) captured
every 100ms by
node-red and sent to
Edgent via
Websockets
JDBC
Stream
(Insert)
Dynamic
Stream
Filter
Raspberry Pi
Time Series Data
Data
Aggregated
and
Thresholds
checked
Last, dynamic
moving average
over 30 seconds
Raw sensor
Data
Node-RED Dashboard
WebSockets
© 2016 IBM Corporation14
In-Motion & At-Rest Analytics on the Edge: & Informix
DirectProvider tp = new DirectProvider();
Topology t = tp.newTopology("InformixQuarksSensorTagMQTT");
JdbcStreams mydb = new JdbcStreams(t, () -> InformixConnector.getIfxDataSource() ,
(dataSource) -> dataSource.getConnection() );
MqttConfig mqttConfig = new MqttConfig("tcp://localhost:1883", "");
MqttStreams mqtt = new MqttStreams(t, () -> mqttConfig);
TStream<String> msgs = mqtt.subscribe("sensortag/cc2650", 0);
msgs = msgs.map(tuple -> new JSONObject(new JSONObject(tuple), new String[] {"tstamp","lux"}).toString());
mydb.executeStatement(msgs,
() -> "INSERT into quarks_json_ts_v values (?,?,?)",
(g, stmt) -> { String ts = EpochtoTS(new JSONObject(g).getLong("tstamp"));
stmt.setString(1, "RAW");
stmt.setString(2, ts);
BSONObject bson = new BasicBSONObject("value_r", new JSONObject(g).getDouble("lux"));
stmt.setObject(3, new IfxBSONObject(bson));
} );
mqtt.publish(msgs, "values/raw", 0, false);
TStream<String> threshold = mydb.executeStatement(msgs,
() -> "select elem.timestamp, elem.value FROM (select GetLastElem(Apply('TSRunningAvg($value_r, 30)',
CURRENT - 30 UNITS SECOND, CURRENT, sensor_values)::TimeSeries(one_value_t))
from quarks_json_ts where sensor_id = ?) AS t(elem);",
(g, stmt) -> stmt.setString(1,"RAW"),
(g, rs, exc, consumer) -> {
if (exc != null) { System.err.println("Unable to execute SELECT: " + exc); }
else {
rs.next();
Double last = rs.getDouble("value");
String ts = rs.getString("timestamp");
JSONObject jo = null;
if (ts != null)
{
jo = new JSONObject().put("threshold", setThresholdValue(last)).put("tstamp", TStoEpoch(ts));
}
consumer.accept(jo.toString());
}
}
);
mqtt.publish(threshold, "values/threshold", 0, false);
msgs = msgs.filter(tuple -> new JSONObject(tuple).getDouble("lux") > thresholdValue);
Insert raw sensor data from stream into an Informix time series
Dynamically calculate moving average from raw time series data
Apply dynamic moving average as a dynamic filter to the stream
Create a new Edgent stream from an MQTT queue
© 2016 IBM Corporation15
Deeper Cloud Analytics
 Integrates with centralized analytics
systems through IoT scale message hub
 Any hub
 Any central system
 Informix Hosted Service
 Push data to Spark for deeper analysis
 https://github.com/IBM-
IoT/InformixSparkStreaming
© 2016 IBM Corporation16
Heart Monitor Informix
Message
Broker
Apache Spark
Analytics
Display Results
IOT devices send data into
the Informix server
Data Streams from Informix
into an MQTT broker
From MQTT Data is
streamed into Spark for real-
time Analysis
Results from both Informix
and Spark available to the
end user
IoT Spark Streaming Analytics with Informix
© 2016 IBM Corporation17
Sample Code (Edge)
http://github.com/IBM-IoT/edgent-demo
IBM IoT Gateway Kit
http://github.com/IBM-IoT/iot-gateway-kit

Más contenido relacionado

La actualidad más candente

Why Gateways are Important in Your IoT Architecture
Why Gateways are Important in Your IoT ArchitectureWhy Gateways are Important in Your IoT Architecture
Why Gateways are Important in Your IoT ArchitectureIBM Analytics
 
MongoDB and the Internet of Things
MongoDB and the Internet of ThingsMongoDB and the Internet of Things
MongoDB and the Internet of ThingsMongoDB
 
Introduction to Microsoft Azure IoT
Introduction to Microsoft Azure IoTIntroduction to Microsoft Azure IoT
Introduction to Microsoft Azure IoTAltoros
 
Windows for Raspberry Pi 2 Makers (and more!)
Windows for Raspberry Pi 2Makers (and more!)Windows for Raspberry Pi 2Makers (and more!)
Windows for Raspberry Pi 2 Makers (and more!)Guy Barrette
 
Exploring IoT Edge
Exploring IoT EdgeExploring IoT Edge
Exploring IoT EdgeCodit
 
Guide to IoT Projects and Architecture with Microsoft Cloud and Azure
Guide to IoT Projects and Architecture with Microsoft Cloud and AzureGuide to IoT Projects and Architecture with Microsoft Cloud and Azure
Guide to IoT Projects and Architecture with Microsoft Cloud and AzureBarnaba Accardi
 
An IoT gateway centric architecture to provide novel m2m services
An IoT gateway centric architecture to provide novel m2m servicesAn IoT gateway centric architecture to provide novel m2m services
An IoT gateway centric architecture to provide novel m2m servicesSoumya Kanti Datta
 
Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...
Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...
Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...Altoros
 
Momentum in Big Data, IoT and Machine Intelligence
Momentum in Big Data, IoT and Machine IntelligenceMomentum in Big Data, IoT and Machine Intelligence
Momentum in Big Data, IoT and Machine IntelligenceShamshad Ansari
 
Phoenix Data Conference - Big Data Analytics for IoT 11/4/17
Phoenix Data Conference - Big Data Analytics for IoT 11/4/17Phoenix Data Conference - Big Data Analytics for IoT 11/4/17
Phoenix Data Conference - Big Data Analytics for IoT 11/4/17Mark Goldstein
 
Xanadu for Big Data + IoT + Deep Learning + Cloud Integration Strategy
Xanadu for Big Data + IoT + Deep Learning + Cloud Integration StrategyXanadu for Big Data + IoT + Deep Learning + Cloud Integration Strategy
Xanadu for Big Data + IoT + Deep Learning + Cloud Integration StrategyAlex G. Lee, Ph.D. Esq. CLP
 
IoT Architecture - are traditional architectures good enough?
IoT Architecture - are traditional architectures good enough?IoT Architecture - are traditional architectures good enough?
IoT Architecture - are traditional architectures good enough?Guido Schmutz
 
Xanadu Big Data Platform Technology BMT@ Rackspace Cloud
Xanadu Big Data Platform Technology BMT@ Rackspace Cloud Xanadu Big Data Platform Technology BMT@ Rackspace Cloud
Xanadu Big Data Platform Technology BMT@ Rackspace Cloud Alex G. Lee, Ph.D. Esq. CLP
 
IBM IoT Architecture and Capabilities at the Edge and Cloud
IBM IoT Architecture and Capabilities at the Edge and Cloud IBM IoT Architecture and Capabilities at the Edge and Cloud
IBM IoT Architecture and Capabilities at the Edge and Cloud Pradeep Natarajan
 
Green Compute and Storage - Why does it Matter and What is in Scope
Green Compute and Storage - Why does it Matter and What is in ScopeGreen Compute and Storage - Why does it Matter and What is in Scope
Green Compute and Storage - Why does it Matter and What is in ScopeNarayanan Subramaniam
 
Internet of Things with Cloud Computing and M2M Communication
Internet of Things with Cloud Computing and M2M CommunicationInternet of Things with Cloud Computing and M2M Communication
Internet of Things with Cloud Computing and M2M CommunicationSherin C Abraham
 
Janos Puskas (Accenture) – Azure IoT Reference Architecture for enterprise Io...
Janos Puskas (Accenture) – Azure IoT Reference Architecture for enterprise Io...Janos Puskas (Accenture) – Azure IoT Reference Architecture for enterprise Io...
Janos Puskas (Accenture) – Azure IoT Reference Architecture for enterprise Io...Codiax
 
Xanadu for Big Data + Deep Learning + Cloud + IoT Integration Strategy
Xanadu for Big Data + Deep Learning + Cloud + IoT Integration StrategyXanadu for Big Data + Deep Learning + Cloud + IoT Integration Strategy
Xanadu for Big Data + Deep Learning + Cloud + IoT Integration StrategyAlex G. Lee, Ph.D. Esq. CLP
 

La actualidad más candente (20)

Why Gateways are Important in Your IoT Architecture
Why Gateways are Important in Your IoT ArchitectureWhy Gateways are Important in Your IoT Architecture
Why Gateways are Important in Your IoT Architecture
 
MongoDB and the Internet of Things
MongoDB and the Internet of ThingsMongoDB and the Internet of Things
MongoDB and the Internet of Things
 
Introduction to Microsoft Azure IoT
Introduction to Microsoft Azure IoTIntroduction to Microsoft Azure IoT
Introduction to Microsoft Azure IoT
 
Windows for Raspberry Pi 2 Makers (and more!)
Windows for Raspberry Pi 2Makers (and more!)Windows for Raspberry Pi 2Makers (and more!)
Windows for Raspberry Pi 2 Makers (and more!)
 
Exploring IoT Edge
Exploring IoT EdgeExploring IoT Edge
Exploring IoT Edge
 
Guide to IoT Projects and Architecture with Microsoft Cloud and Azure
Guide to IoT Projects and Architecture with Microsoft Cloud and AzureGuide to IoT Projects and Architecture with Microsoft Cloud and Azure
Guide to IoT Projects and Architecture with Microsoft Cloud and Azure
 
An IoT gateway centric architecture to provide novel m2m services
An IoT gateway centric architecture to provide novel m2m servicesAn IoT gateway centric architecture to provide novel m2m services
An IoT gateway centric architecture to provide novel m2m services
 
Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...
Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...
Unified Analytics in GE’s Predix for the IIoT: Tying Operational Technology t...
 
Momentum in Big Data, IoT and Machine Intelligence
Momentum in Big Data, IoT and Machine IntelligenceMomentum in Big Data, IoT and Machine Intelligence
Momentum in Big Data, IoT and Machine Intelligence
 
Internet of Things propositie - Enterprise IOT - AMIS - Conclusion
Internet of Things propositie - Enterprise IOT - AMIS - Conclusion Internet of Things propositie - Enterprise IOT - AMIS - Conclusion
Internet of Things propositie - Enterprise IOT - AMIS - Conclusion
 
Phoenix Data Conference - Big Data Analytics for IoT 11/4/17
Phoenix Data Conference - Big Data Analytics for IoT 11/4/17Phoenix Data Conference - Big Data Analytics for IoT 11/4/17
Phoenix Data Conference - Big Data Analytics for IoT 11/4/17
 
Xanadu for Big Data + IoT + Deep Learning + Cloud Integration Strategy
Xanadu for Big Data + IoT + Deep Learning + Cloud Integration StrategyXanadu for Big Data + IoT + Deep Learning + Cloud Integration Strategy
Xanadu for Big Data + IoT + Deep Learning + Cloud Integration Strategy
 
IoT Architecture - are traditional architectures good enough?
IoT Architecture - are traditional architectures good enough?IoT Architecture - are traditional architectures good enough?
IoT Architecture - are traditional architectures good enough?
 
Xanadu Big Data Platform Technology BMT@ Rackspace Cloud
Xanadu Big Data Platform Technology BMT@ Rackspace Cloud Xanadu Big Data Platform Technology BMT@ Rackspace Cloud
Xanadu Big Data Platform Technology BMT@ Rackspace Cloud
 
IoT architecture
IoT architectureIoT architecture
IoT architecture
 
IBM IoT Architecture and Capabilities at the Edge and Cloud
IBM IoT Architecture and Capabilities at the Edge and Cloud IBM IoT Architecture and Capabilities at the Edge and Cloud
IBM IoT Architecture and Capabilities at the Edge and Cloud
 
Green Compute and Storage - Why does it Matter and What is in Scope
Green Compute and Storage - Why does it Matter and What is in ScopeGreen Compute and Storage - Why does it Matter and What is in Scope
Green Compute and Storage - Why does it Matter and What is in Scope
 
Internet of Things with Cloud Computing and M2M Communication
Internet of Things with Cloud Computing and M2M CommunicationInternet of Things with Cloud Computing and M2M Communication
Internet of Things with Cloud Computing and M2M Communication
 
Janos Puskas (Accenture) – Azure IoT Reference Architecture for enterprise Io...
Janos Puskas (Accenture) – Azure IoT Reference Architecture for enterprise Io...Janos Puskas (Accenture) – Azure IoT Reference Architecture for enterprise Io...
Janos Puskas (Accenture) – Azure IoT Reference Architecture for enterprise Io...
 
Xanadu for Big Data + Deep Learning + Cloud + IoT Integration Strategy
Xanadu for Big Data + Deep Learning + Cloud + IoT Integration StrategyXanadu for Big Data + Deep Learning + Cloud + IoT Integration Strategy
Xanadu for Big Data + Deep Learning + Cloud + IoT Integration Strategy
 

Similar a IoT Analytics from Edge to Cloud - using IBM Informix

3 Software Stacks for IoT Solutions
3 Software Stacks for IoT Solutions3 Software Stacks for IoT Solutions
3 Software Stacks for IoT SolutionsIan Skerrett
 
Advanced Open IoT Platform for Prevention and Early Detection of Forest Fires
Advanced Open IoT Platform for Prevention and Early Detection of Forest FiresAdvanced Open IoT Platform for Prevention and Early Detection of Forest Fires
Advanced Open IoT Platform for Prevention and Early Detection of Forest FiresIvo Andreev
 
Fom io t_to_bigdata_step_by_step-final
Fom io t_to_bigdata_step_by_step-finalFom io t_to_bigdata_step_by_step-final
Fom io t_to_bigdata_step_by_step-finalLuis Filipe Silva
 
Apache edgent with STM32f401 to watson iot platform
Apache edgent with STM32f401 to watson iot platformApache edgent with STM32f401 to watson iot platform
Apache edgent with STM32f401 to watson iot platformMostafa Ramezani
 
Model-driven Telemetry: The Foundation of Big Data Analytics
Model-driven Telemetry: The Foundation of Big Data AnalyticsModel-driven Telemetry: The Foundation of Big Data Analytics
Model-driven Telemetry: The Foundation of Big Data AnalyticsCisco Canada
 
Modernizing upstream workflows with aws storage - john mallory
Modernizing upstream workflows with aws storage -  john malloryModernizing upstream workflows with aws storage -  john mallory
Modernizing upstream workflows with aws storage - john malloryAmazon Web Services
 
Programming IoT Gateways with macchina.io
Programming IoT Gateways with macchina.ioProgramming IoT Gateways with macchina.io
Programming IoT Gateways with macchina.ioGünter Obiltschnig
 
Azure Data Explorer deep dive - review 04.2020
Azure Data Explorer deep dive - review 04.2020Azure Data Explorer deep dive - review 04.2020
Azure Data Explorer deep dive - review 04.2020Riccardo Zamana
 
Enabling Microservices Frameworks to Solve Business Problems
Enabling Microservices Frameworks to Solve  Business ProblemsEnabling Microservices Frameworks to Solve  Business Problems
Enabling Microservices Frameworks to Solve Business ProblemsKen Owens
 
2016-09-eclipse-iot-cf-summit
2016-09-eclipse-iot-cf-summit2016-09-eclipse-iot-cf-summit
2016-09-eclipse-iot-cf-summitMike Milinkovich
 
Io t world_2016_iot_smart_gateways_moe
Io t world_2016_iot_smart_gateways_moeIo t world_2016_iot_smart_gateways_moe
Io t world_2016_iot_smart_gateways_moeShawn Moe
 
Automatic generation of hardware memory architectures for HPC
Automatic generation of hardware memory architectures for HPCAutomatic generation of hardware memory architectures for HPC
Automatic generation of hardware memory architectures for HPCFacultad de Informática UCM
 
Essential Capabilities of an IoT Cloud Platform - AWS Online Tech Talks
Essential Capabilities of an IoT Cloud Platform - AWS Online Tech TalksEssential Capabilities of an IoT Cloud Platform - AWS Online Tech Talks
Essential Capabilities of an IoT Cloud Platform - AWS Online Tech TalksAmazon Web Services
 
Eclipse IOT [IoT World Santa Clara]
Eclipse IOT  [IoT World Santa Clara]Eclipse IOT  [IoT World Santa Clara]
Eclipse IOT [IoT World Santa Clara]Ian Skerrett
 
People Counting: Internet of Things in Motion at JavaOne 2013
People Counting: Internet of Things in Motion at JavaOne 2013People Counting: Internet of Things in Motion at JavaOne 2013
People Counting: Internet of Things in Motion at JavaOne 2013Eurotech
 
Course Notes-Unit 5.ppt
Course Notes-Unit 5.pptCourse Notes-Unit 5.ppt
Course Notes-Unit 5.pptSafaM3
 
Informix - The Ideal Database for IoT
Informix - The Ideal Database for IoTInformix - The Ideal Database for IoT
Informix - The Ideal Database for IoTPradeep Natarajan
 
ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...
ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...
ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...Altinity Ltd
 
IoT and connected devices
IoT and connected devicesIoT and connected devices
IoT and connected devicesPascal Bodin
 

Similar a IoT Analytics from Edge to Cloud - using IBM Informix (20)

Smartblitzmerker
SmartblitzmerkerSmartblitzmerker
Smartblitzmerker
 
3 Software Stacks for IoT Solutions
3 Software Stacks for IoT Solutions3 Software Stacks for IoT Solutions
3 Software Stacks for IoT Solutions
 
Advanced Open IoT Platform for Prevention and Early Detection of Forest Fires
Advanced Open IoT Platform for Prevention and Early Detection of Forest FiresAdvanced Open IoT Platform for Prevention and Early Detection of Forest Fires
Advanced Open IoT Platform for Prevention and Early Detection of Forest Fires
 
Fom io t_to_bigdata_step_by_step-final
Fom io t_to_bigdata_step_by_step-finalFom io t_to_bigdata_step_by_step-final
Fom io t_to_bigdata_step_by_step-final
 
Apache edgent with STM32f401 to watson iot platform
Apache edgent with STM32f401 to watson iot platformApache edgent with STM32f401 to watson iot platform
Apache edgent with STM32f401 to watson iot platform
 
Model-driven Telemetry: The Foundation of Big Data Analytics
Model-driven Telemetry: The Foundation of Big Data AnalyticsModel-driven Telemetry: The Foundation of Big Data Analytics
Model-driven Telemetry: The Foundation of Big Data Analytics
 
Modernizing upstream workflows with aws storage - john mallory
Modernizing upstream workflows with aws storage -  john malloryModernizing upstream workflows with aws storage -  john mallory
Modernizing upstream workflows with aws storage - john mallory
 
Programming IoT Gateways with macchina.io
Programming IoT Gateways with macchina.ioProgramming IoT Gateways with macchina.io
Programming IoT Gateways with macchina.io
 
Azure Data Explorer deep dive - review 04.2020
Azure Data Explorer deep dive - review 04.2020Azure Data Explorer deep dive - review 04.2020
Azure Data Explorer deep dive - review 04.2020
 
Enabling Microservices Frameworks to Solve Business Problems
Enabling Microservices Frameworks to Solve  Business ProblemsEnabling Microservices Frameworks to Solve  Business Problems
Enabling Microservices Frameworks to Solve Business Problems
 
2016-09-eclipse-iot-cf-summit
2016-09-eclipse-iot-cf-summit2016-09-eclipse-iot-cf-summit
2016-09-eclipse-iot-cf-summit
 
Io t world_2016_iot_smart_gateways_moe
Io t world_2016_iot_smart_gateways_moeIo t world_2016_iot_smart_gateways_moe
Io t world_2016_iot_smart_gateways_moe
 
Automatic generation of hardware memory architectures for HPC
Automatic generation of hardware memory architectures for HPCAutomatic generation of hardware memory architectures for HPC
Automatic generation of hardware memory architectures for HPC
 
Essential Capabilities of an IoT Cloud Platform - AWS Online Tech Talks
Essential Capabilities of an IoT Cloud Platform - AWS Online Tech TalksEssential Capabilities of an IoT Cloud Platform - AWS Online Tech Talks
Essential Capabilities of an IoT Cloud Platform - AWS Online Tech Talks
 
Eclipse IOT [IoT World Santa Clara]
Eclipse IOT  [IoT World Santa Clara]Eclipse IOT  [IoT World Santa Clara]
Eclipse IOT [IoT World Santa Clara]
 
People Counting: Internet of Things in Motion at JavaOne 2013
People Counting: Internet of Things in Motion at JavaOne 2013People Counting: Internet of Things in Motion at JavaOne 2013
People Counting: Internet of Things in Motion at JavaOne 2013
 
Course Notes-Unit 5.ppt
Course Notes-Unit 5.pptCourse Notes-Unit 5.ppt
Course Notes-Unit 5.ppt
 
Informix - The Ideal Database for IoT
Informix - The Ideal Database for IoTInformix - The Ideal Database for IoT
Informix - The Ideal Database for IoT
 
ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...
ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...
ClickHouse Paris Meetup. Pragma Analytics Software Suite w/ClickHouse, by Mat...
 
IoT and connected devices
IoT and connected devicesIoT and connected devices
IoT and connected devices
 

Último

Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Delhi Call girls
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxolyaivanovalion
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...shambhavirathore45
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
ALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxolyaivanovalion
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfadriantubila
 
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlCall Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlkumarajju5765
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 

Último (20)

Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Zuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptxZuja dropshipping via API with DroFx.pptx
Zuja dropshipping via API with DroFx.pptx
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
ALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptxALSO dropshipping via API with DroFx.pptx
ALSO dropshipping via API with DroFx.pptx
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girlCall Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
Call Girls 🫤 Dwarka ➡️ 9711199171 ➡️ Delhi 🫦 Two shot with one girl
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 

IoT Analytics from Edge to Cloud - using IBM Informix

  • 1. © 2016 IBM Corporation IoT Analytics from Edge to Cloud
  • 2. © 2016 IBM Corporation2 Agenda  What is Edge  Edgent (formerly Quarks) overview  Database (Informix) on the edge  Database in the Cloud  Spark
  • 3. © 2016 IBM Corporation3 What is the Edge?  Systems with constrained compute platform  Due to cost, weight restrictions, space constraints, borrowing resources, ...  Limited connectivity to central systems  Limited by expense, bandwidth  Periods of being disconnected  Can be mobile or static  Access to sensors for system being analyzed  Potential to control system based on analysis  Typically systems that exist where data(sensor) is generated
  • 4. © 2016 IBM Corporation4 Edge Examples  Vehicle  Car, truck, race car, bike, train, bus, boat, drone, plane, ...  Analyze engine sensors to predict/reduce chance of failure  Mobile, may lose connectivity  Building/Store/Warehouse  HVAC, climate, energy use, motion sensors, ...  Server in machine room  Analyze load, cpu temps, rack temps  Raspberry Pi with a couple of sensors  Cheap $5+  Smartphone  Industrial machine
  • 5. © 2016 IBM Corporation5 What is the value of analytics at the edge? • Reduce communication cost • Send relevant data when an event of interest occurs • Heartbeats alone may not contain enough data or be too late to take action • React locally to events • More intelligent decision making on the device • Execute analytics while disconnected • Streaming analysis • Data is constantly being generated • Needing real-time/continuous analyzing • Collaborate with related devices • Learn from devices with similar characteristics • or location
  • 6. © 2016 IBM Corporation6 Streaming and In-database Analytics at the Edge • Streaming analytics • Data is constantly being generated • Needing real-time/continuous analyzing • In-memory analysis of data • In-database analytics • Store data at the edge efficiently and securely • Provide historical analytics on the data • Visualize the historical data at the edge • Perform complex/advanced analytics on historical data: windowed aggregates, pattern matching, anomaly detection, etc.
  • 7. © 2016 IBM Corporation7 Introducing Apache  Apache Edgent (renamed from Quarks)  A community for accelerating Edge Analytics  Open Source, incubating at Apache Software Foundation • http://edgent.incubator.apache.org/ • http://wiki.apache.org/incubator/QuarksProposal  Programming model and runtime for analytics at the edge  A programming SDK with Functional Flow API for streaming analytics • Initial support for Java & Android, Goal is to support multiple languages with priorities driven by the community  A modular, lightweight and embeddable runtime  Initially built by IBM based on 12 years experience with IBM Streams
  • 8. © 2016 IBM Corporation8 Features  Quarks for edge analytics – on device or gateway  Lightweight embedded streaming analytics runtime  Analyze events locally on the edge  Reduce communication costs by only sending relevant events  Functional Flow API for streaming analytics  Per-event and windowed processing with simple analytics and pattern detection • Map, FlatMap, Filter, Aggregate  Connectors  Messaging systems & data stores • MQTT, HTTP, Web Sockets, JDBC, File, Apache Kafka and IBM Watson IoT Platform, Informix  Micro-kernel style runtime with multi-platform support  Small-footprint edge devices or sensors • Including Raspberry Pis or smart phones
  • 9. © 2016 IBM Corporation9 A Simplified IoT/Industry 4.0 Sensor Data Flow Sensor Data History Sensors In-memory Analytics Predictive Analytics Publish / Subscribe Cloud Infrastructure HDFS / HadoopStream Processing Real-time Analytics Operational Analytics Big Data Analytics (no gateway) (Gateways) IBM Watson IoT Platform
  • 10. © 2016 IBM Corporation10 Typical IoT Scenario Industrial IoT-/Edge-Gateway(s) with specific industry communication stacks and local Analytic capabilties (in motion / at rest analytics) Industrial Shop Floor Sensors Raw Sensor Data via industry specific automation protocols (e.g. PROFINET, BACnet, OPC UA, Modbus etc.) Aggregated / Filtered Sensor Data via standard communication protocols and formats (e.g. MQTT/JSON) into the Cloud (IBM Bluemix, IBM IoT Platform), IBM PMQ plus on premises solutions etc.
  • 11. © 2016 IBM Corporation11 Informix - The Sensor Data optimized Hybrid Database  Superior IoT Sensor Data Performance and Scalability in the Cloud, on Premises and on Edge Gateways  Innovative Sensor Data Storage and Processing w/o the need for costly all-or- nothing In-Memory database technologies  Large Scale and Embedded Sensor Data Benchmarks  Simplified Application Development due to Integration of all Sensor Data relevant data types in one hybrid Database  Relational, Time Series, JSON and Geospatial (all joinable!)  JSON based Time Series for full Schema Flexibilty  Free Developer Editions and Docker Images available  Open, Standardized APIs allow easy Integration into existing Architectures  SQL, REST, MongoDB, Node-RED, MQTT, JDBC, ODBC, .NET etc.  Very Cost Effective Operations in all Deployment Models  Very efficient HW utilization (less disk space, less CPU & Memory) compared to other approaches
  • 12. © 2016 IBM Corporation12 DEMO Recorded video of the demo (https://ibm.box.com/s/hye8csvq14f6cylnk8cqrmtu0h5n2m8h)
  • 13. © 2016 IBM Corporation13 Live Demo: Sensor Data Flow - Edgent & Informix on a Raspberry Pi Sensortag to Node-red (Node.js) Raw sensor data (JSON) captured every 100ms by node-red and sent to Edgent via Websockets JDBC Stream (Insert) Dynamic Stream Filter Raspberry Pi Time Series Data Data Aggregated and Thresholds checked Last, dynamic moving average over 30 seconds Raw sensor Data Node-RED Dashboard WebSockets
  • 14. © 2016 IBM Corporation14 In-Motion & At-Rest Analytics on the Edge: & Informix DirectProvider tp = new DirectProvider(); Topology t = tp.newTopology("InformixQuarksSensorTagMQTT"); JdbcStreams mydb = new JdbcStreams(t, () -> InformixConnector.getIfxDataSource() , (dataSource) -> dataSource.getConnection() ); MqttConfig mqttConfig = new MqttConfig("tcp://localhost:1883", ""); MqttStreams mqtt = new MqttStreams(t, () -> mqttConfig); TStream<String> msgs = mqtt.subscribe("sensortag/cc2650", 0); msgs = msgs.map(tuple -> new JSONObject(new JSONObject(tuple), new String[] {"tstamp","lux"}).toString()); mydb.executeStatement(msgs, () -> "INSERT into quarks_json_ts_v values (?,?,?)", (g, stmt) -> { String ts = EpochtoTS(new JSONObject(g).getLong("tstamp")); stmt.setString(1, "RAW"); stmt.setString(2, ts); BSONObject bson = new BasicBSONObject("value_r", new JSONObject(g).getDouble("lux")); stmt.setObject(3, new IfxBSONObject(bson)); } ); mqtt.publish(msgs, "values/raw", 0, false); TStream<String> threshold = mydb.executeStatement(msgs, () -> "select elem.timestamp, elem.value FROM (select GetLastElem(Apply('TSRunningAvg($value_r, 30)', CURRENT - 30 UNITS SECOND, CURRENT, sensor_values)::TimeSeries(one_value_t)) from quarks_json_ts where sensor_id = ?) AS t(elem);", (g, stmt) -> stmt.setString(1,"RAW"), (g, rs, exc, consumer) -> { if (exc != null) { System.err.println("Unable to execute SELECT: " + exc); } else { rs.next(); Double last = rs.getDouble("value"); String ts = rs.getString("timestamp"); JSONObject jo = null; if (ts != null) { jo = new JSONObject().put("threshold", setThresholdValue(last)).put("tstamp", TStoEpoch(ts)); } consumer.accept(jo.toString()); } } ); mqtt.publish(threshold, "values/threshold", 0, false); msgs = msgs.filter(tuple -> new JSONObject(tuple).getDouble("lux") > thresholdValue); Insert raw sensor data from stream into an Informix time series Dynamically calculate moving average from raw time series data Apply dynamic moving average as a dynamic filter to the stream Create a new Edgent stream from an MQTT queue
  • 15. © 2016 IBM Corporation15 Deeper Cloud Analytics  Integrates with centralized analytics systems through IoT scale message hub  Any hub  Any central system  Informix Hosted Service  Push data to Spark for deeper analysis  https://github.com/IBM- IoT/InformixSparkStreaming
  • 16. © 2016 IBM Corporation16 Heart Monitor Informix Message Broker Apache Spark Analytics Display Results IOT devices send data into the Informix server Data Streams from Informix into an MQTT broker From MQTT Data is streamed into Spark for real- time Analysis Results from both Informix and Spark available to the end user IoT Spark Streaming Analytics with Informix
  • 17. © 2016 IBM Corporation17 Sample Code (Edge) http://github.com/IBM-IoT/edgent-demo IBM IoT Gateway Kit http://github.com/IBM-IoT/iot-gateway-kit