SlideShare a Scribd company logo
1 of 47
Download to read offline
Orientierung im Nebel:
Unterschiede zwischen Stream
Processing in Edge und Cloud
• IIoT vs IoT
• (Stream) processing at the Edge
• How Apache Edgent can help
What I’ll talk about
• Julian Feinauer
• Phd in mathematics
• Founder of pragmatic minds GmbH and pragmatic industries GmbH
• Apache PLC4X & Apache Edgent (P)PMC member
• Twitter: @jfeinauer2
Who am I?
Industry 4.0, Digitalization and the
Industrial Internet of Things?!
• Everybody wants Industrie 4.0 or Digitalization
• „Can we do something with Big Data?“
• „We need a Data Lake“
• Can AI solve this for us?“
• This means that the Shopfloor is confrontend with
• ... connectivity
• ... modern IT infrastructure
• ... Cloud technology
Current Trend in the Industry
• #Neuland for the Industry
• Industry is always conservative regarding IT infrastructure
• Suppliers try to close the gap but are themselves faced with a
completly new situation and new technologies
• Very dynamic situation but Industry likes to plan
• In many industrial sites we have bad bandwidths
But...
• „Universal Protocol
Adapter“
• Connectivity for PLCs
• Bridging the GAP between
Shopfloor and IT
However...
The Industrial Internet of Things!
The Industrial Internet of Things
PLCs
Sensors
Actors
The Industrial Internet of Things
PLCs
Sensors
Actors
Hundreds of internal variables
• 10-100 Sensors
• Scaling
• Data types
• 10-100 Actors
• Different technologies
• Metadata is important
The Industrial Internet of Things
PLCs
Sensors
Actors
• No discrete Events
• Timeseries!
• Events have to be extracted based
on
• ... absolute values (thresholds)
• ... (bit-)triggers / value changes
• ... derivatives
• ...
• è Stream Processing at the Edge!
Stream Processing at the Edge
(Classic-)Definition:
“A data stream can be seen as a continuous and
potentially infinite stochastic process in which events
occur independently from another”
Streaming is easy!
The Industrial Internet of Things
PLCs
Sensors
Actors
• No discrete Events
• Timeseries!
• Events have to be extracted based
on
• ... absolute values (thresholds)
• ... (bit-)triggers / value changes
• ... derivatives
• ...
• è Stream Processing at the Edge!
A simple Example…
Example: Cycle Detection
• A (boolean) marker is true during cycle, false otherwise
• We want to detect cycles as events, and record their start / end
Example: Cycle Detection
Example: Cycle Detection
• A (boolean) marker is true during cycle, false otherwise
• We want to detect cycles as events, and record their start / end
• „Oh, we sometimes jitter, so a cycle is only a real cycle if its
longer than 10 seconds“
Example: Cycle Detection
Example: Cycle Detection
• A (boolean) marker is true during cycle, false otherwise
• We want to detect cycles as events, and record their start / end
• „Oh, we sometimes jitter, so a cycle is only a real cycle if its
longer than 10 seconds“
• „Ah, we forgot, it would be good to also store the pressure at the
end of the cycle“
Example: Cycle Detection
Example: Cycle Detection
• A (boolean) marker is true during cycle, false otherwise
• We want to detect cycles as events, and record their start / end
• „Oh, we sometimes jitter, so a cycle is only a real cycle if its longer than
10 seconds“
• „Ah, we forgot, it would be good to also store the pressure at the end
of the cycle“
• „In fact, we also need the current, rpm and temperature for the cycle“
Example: Cycle Detection
...
Example: Error Logging
• Exceptions are stored as bit mask
• About 2300 bits / exceptions on the machine
• Task
• Read all bits
• See which toggled
• Generate Event for Exception on / off
...
Example: Error Logging
Example: Complex Actions
• We need production parameters, at defined points
• First, wait until bit0 is set, then take the start time
• Then, wait until bit1 is set, then take the pressure
• Then, wait until bit2 is set, then take the rpm
• ...
Example: Complex Actions
...
Part II – Which Engine to use?
Streaming is easy!
Stream Processing is not Stream
Processing
Property Cloud Edge
Distribution Yes No
Scalable Yes No
Fast Yes Easy
Stateless Yes* No
Message Delivery Exactly-Once At least once sufficient
From Imperative to Declarative
CRUNCH it!
• CRUNCH - A framework for declarative industrial data analysis
• Not another streaming framework, ABOVE the streaming layer
• Created by pragmatic minds GmbH
• Open Source sind end of 2018
• Apache 2.0 License
• Visit: https://github.com/pragmaticminds/crunch
CRUNCH it!
• CRUNCH - A framework for declarative industrial data analysis
• Not another streaming framework, ABOVE the streaming layer
• Created by pragmatic minds GmbH
• Open Source sind end of 2018
• Apache 2.0 License
• Visit: https://github.com/pragmaticminds/crunch
Introducing Apache Edgent (incubating)
Best practices... λ-Architecture
λ-Architecture at the Edge?
λ-Architecture at the Edge?
• Incubating project at the Apache Software Foundation
• Established 2016
• Edge runtime with
• a streaming runtime
• real-time analytics capabilities
• and cloud communication
for constrained devices (i.e., with small footprint), at the edge.
Apache Edgent
Apache Edgent
Apache Edgent
Edge to Cloud...
But...
• All have their own specific API
• Partly open source, but usually very vendor driven
• Vendor-Lock in
• Entrance barrier is low but this should be a strategic decision
• Can become very expensive, long term
Edgent to the rescue!
• All Open Source (Apache 2.0 Licence)
• Cloud Connectors for different providers, no vendor lock-in
• Tight integration with other Apache Frameworks, like
• Apache PLC4X (incubating)
• Apache IoTDB (coming soon)
• Complete toolkit to build analytic applications at the edge!
What‘s (probably) Next?
• More Cloud Connectors!
• Tight integration of CRUNCH
• Edge Integration Patterns!
• Improve Routing / Rule Engine at the Edge („Camel at the Edge“)
• Revive the Community
Interested?
• Visit www.edgent.apache.org
• Sign up to our mailing-list: dev@edgent.apache.org
• Follow us on twitter: @ApacheEdgent
• Start using Edgent
• File bugs: https://issues.apache.org/jira/projects/EDGENT
• Source code: https://github.com/apache/incubator-edgent
• Examples: https://github.com/apache/incubator-edgent-samples
• Join our meetup in Frankfurt on Mai 6th in Frankfurt (am Main)
Questions?
Julian Feinauer
T +49 7022 24933 01
M +49 176 2488 3977
E j.feinauer@pragmaticminds.de
PRAGMATICMINDS GmbH
Zementwerk 1
72622 Nürtingen
www.pragmaticminds.de

More Related Content

Recently uploaded

Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 

Recently uploaded (20)

Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Orientation in the fog: differences between stream processing in edge and cloud

  • 1. Orientierung im Nebel: Unterschiede zwischen Stream Processing in Edge und Cloud
  • 2. • IIoT vs IoT • (Stream) processing at the Edge • How Apache Edgent can help What I’ll talk about
  • 3. • Julian Feinauer • Phd in mathematics • Founder of pragmatic minds GmbH and pragmatic industries GmbH • Apache PLC4X & Apache Edgent (P)PMC member • Twitter: @jfeinauer2 Who am I?
  • 4. Industry 4.0, Digitalization and the Industrial Internet of Things?!
  • 5. • Everybody wants Industrie 4.0 or Digitalization • „Can we do something with Big Data?“ • „We need a Data Lake“ • Can AI solve this for us?“ • This means that the Shopfloor is confrontend with • ... connectivity • ... modern IT infrastructure • ... Cloud technology Current Trend in the Industry
  • 6. • #Neuland for the Industry • Industry is always conservative regarding IT infrastructure • Suppliers try to close the gap but are themselves faced with a completly new situation and new technologies • Very dynamic situation but Industry likes to plan • In many industrial sites we have bad bandwidths But...
  • 7. • „Universal Protocol Adapter“ • Connectivity for PLCs • Bridging the GAP between Shopfloor and IT However...
  • 9. The Industrial Internet of Things PLCs Sensors Actors
  • 10. The Industrial Internet of Things PLCs Sensors Actors Hundreds of internal variables • 10-100 Sensors • Scaling • Data types • 10-100 Actors • Different technologies • Metadata is important
  • 11. The Industrial Internet of Things PLCs Sensors Actors • No discrete Events • Timeseries! • Events have to be extracted based on • ... absolute values (thresholds) • ... (bit-)triggers / value changes • ... derivatives • ... • è Stream Processing at the Edge!
  • 13. (Classic-)Definition: “A data stream can be seen as a continuous and potentially infinite stochastic process in which events occur independently from another”
  • 15. The Industrial Internet of Things PLCs Sensors Actors • No discrete Events • Timeseries! • Events have to be extracted based on • ... absolute values (thresholds) • ... (bit-)triggers / value changes • ... derivatives • ... • è Stream Processing at the Edge!
  • 17. Example: Cycle Detection • A (boolean) marker is true during cycle, false otherwise • We want to detect cycles as events, and record their start / end
  • 19. Example: Cycle Detection • A (boolean) marker is true during cycle, false otherwise • We want to detect cycles as events, and record their start / end • „Oh, we sometimes jitter, so a cycle is only a real cycle if its longer than 10 seconds“
  • 21. Example: Cycle Detection • A (boolean) marker is true during cycle, false otherwise • We want to detect cycles as events, and record their start / end • „Oh, we sometimes jitter, so a cycle is only a real cycle if its longer than 10 seconds“ • „Ah, we forgot, it would be good to also store the pressure at the end of the cycle“
  • 23. Example: Cycle Detection • A (boolean) marker is true during cycle, false otherwise • We want to detect cycles as events, and record their start / end • „Oh, we sometimes jitter, so a cycle is only a real cycle if its longer than 10 seconds“ • „Ah, we forgot, it would be good to also store the pressure at the end of the cycle“ • „In fact, we also need the current, rpm and temperature for the cycle“
  • 25. Example: Error Logging • Exceptions are stored as bit mask • About 2300 bits / exceptions on the machine • Task • Read all bits • See which toggled • Generate Event for Exception on / off
  • 27. Example: Complex Actions • We need production parameters, at defined points • First, wait until bit0 is set, then take the start time • Then, wait until bit1 is set, then take the pressure • Then, wait until bit2 is set, then take the rpm • ...
  • 29. Part II – Which Engine to use?
  • 31. Stream Processing is not Stream Processing Property Cloud Edge Distribution Yes No Scalable Yes No Fast Yes Easy Stateless Yes* No Message Delivery Exactly-Once At least once sufficient
  • 32. From Imperative to Declarative
  • 33. CRUNCH it! • CRUNCH - A framework for declarative industrial data analysis • Not another streaming framework, ABOVE the streaming layer • Created by pragmatic minds GmbH • Open Source sind end of 2018 • Apache 2.0 License • Visit: https://github.com/pragmaticminds/crunch
  • 34. CRUNCH it! • CRUNCH - A framework for declarative industrial data analysis • Not another streaming framework, ABOVE the streaming layer • Created by pragmatic minds GmbH • Open Source sind end of 2018 • Apache 2.0 License • Visit: https://github.com/pragmaticminds/crunch
  • 39. • Incubating project at the Apache Software Foundation • Established 2016 • Edge runtime with • a streaming runtime • real-time analytics capabilities • and cloud communication for constrained devices (i.e., with small footprint), at the edge. Apache Edgent
  • 43. But... • All have their own specific API • Partly open source, but usually very vendor driven • Vendor-Lock in • Entrance barrier is low but this should be a strategic decision • Can become very expensive, long term
  • 44. Edgent to the rescue! • All Open Source (Apache 2.0 Licence) • Cloud Connectors for different providers, no vendor lock-in • Tight integration with other Apache Frameworks, like • Apache PLC4X (incubating) • Apache IoTDB (coming soon) • Complete toolkit to build analytic applications at the edge!
  • 45. What‘s (probably) Next? • More Cloud Connectors! • Tight integration of CRUNCH • Edge Integration Patterns! • Improve Routing / Rule Engine at the Edge („Camel at the Edge“) • Revive the Community
  • 46. Interested? • Visit www.edgent.apache.org • Sign up to our mailing-list: dev@edgent.apache.org • Follow us on twitter: @ApacheEdgent • Start using Edgent • File bugs: https://issues.apache.org/jira/projects/EDGENT • Source code: https://github.com/apache/incubator-edgent • Examples: https://github.com/apache/incubator-edgent-samples • Join our meetup in Frankfurt on Mai 6th in Frankfurt (am Main)
  • 47. Questions? Julian Feinauer T +49 7022 24933 01 M +49 176 2488 3977 E j.feinauer@pragmaticminds.de PRAGMATICMINDS GmbH Zementwerk 1 72622 Nürtingen www.pragmaticminds.de