SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Downloaden Sie, um offline zu lesen
Pasquale Vitale
Engineering Ingegneria Informatica
FIWARE Complex Event Processing
How to process the context events in real-time
To perform some processing on available context information you need a Complex Event Processing
The CEP allows you to detect patterns above contexts (triggering some action or raising some alarm)
The CEP receives contexts information as input events and generates observations (or situations) as
output events
Applications role
Applications connected to the CEP GE (external applications or some other GE like Context Broker GE)
can play two different role:
the role of Event Producer
the role of Event Consumer
Note: A given application can play both roles
Event Producer
Event Producer sources can be:
an external applications reporting events
a sensor reporting a measurement
Event Producers can be provide events in two modes:
Push mode - the Event Producers push events into the CEP by means of invoking a REST API
Pull mode - the Event Producer exports a REST API that the CEP can invoke to retrieve events
Event Consumer
Event Consumers are the destination point of events. For example:
Dashboard: a type of event consumer that displays alarms defined when certain conditions hold on events related
to some entities user community or produced by a number of devices
Handling process: a type of event consumer that consumes meaningful events (such as opportunities or threats)
and performs a concrete action
The Context Broker GE which can connect as an event consumer to the CEP and forward the events it consumes
to all interested applications based on a subscription model
Pattern
The CEP allows you to define patterns over selected events occurring in event processing contexts (such
as a time window or segmentation) with optional additional conditions
Those patterns can be defined using Web based authoring tool (without to write any code)
Event Processing Agent (EPA) - Pattern
Patterns supported are:
Basic type, meaning a basic event
a lamp battery charge is below 15 percent
Aggregate type, compute some aggregation functions on a set of incoming events
the percentage of failed measurements is higher than 10 percent in the last 5 minutes
Absent type, meaning no event holding some condition arrived within the time window for the pattern to match
no sensor events arrived in the last 10 minutes
Sequence type, meaning events need to occur in a specified order for the pattern to be detected
detect if the sensor status was “fixed” and later was “failed” within 24 hours
All type, meaning that all the events specified should arrive for the pattern to match
alert if the total reservations number arriving from 4 branches is higher than some threshold
From Event-Condition-Action to Pattern-Condition-Action
In certain scenarios, single events are insignificant, a CEP engine can detect combinations of events,
and generate derived events situations, which are meaningful
Use CEP when there is a need to detect patterns over incoming events
Other tools can be used when there is a need to respond to single events with some condition (e.g.,
Context Broker GE)
Event Processing Context definition
Every EPA (event processing agent - pattern) is associated with an event processing context
Event processing context can be a:
temporal processing context (time window)
segmentation processing context
composite context (group of several contexts) +
Event processing context groups event instances can be processed in a related way
Working with the CEP
The FI-WARE CEP instance: IBM Proactive Technology Online - PROTON
Proton (CEP GE Instance) – Build Time Web User Interface
Definition type (or build block) of CEP:
Event types - events that are expected to be received as input or to be sent as output
EPAs - responsible to detect patterns: Basic, Aggregate, Absent, Sequence, All
Processing Contexts - Temporal, Segmentation, Composite
Consumers - the event consumers: File, REST, JMS, Custom
Producers - the event source: File, REST, JMS, Custom
Build Time Web User Interface
The Authoring tool allows you to define a CEP application, validate it, and export the application definition
Create definitions
Definitions can be generated by the user through a WEB User Interface
Definitions can be generated by external systems
In JSON format
Runtime Main interactions
Runtime Main interactions - Input & Output Adapters
Proton (CEP GE Instance) – Rest Input Adapter
Rest Input Adapter Client
Has a Producer definition in the Web UI
Activates a REST service as a client
Access the REST API declared by the event producer and pull events using the GET method
Support format:
Tag delimited
JSON
Name=ShipPosition;ShipID=RTX33;Long=46;Lat=55;Speed=4.0;Time=1333033200;
{
"Name":"TrafficReport", 
"volume":"1000“
}
Proton (CEP GE Instance) – Rest Output Adapter
Rest Output Adapter Client
Has a Consumer definition in the Web UI
Activates a REST service as a client
Access the REST API declared by the event consumer and push events to the consumer using the POST method
Support format:
Tag delimited
JSON
Name=TrafficReport;Certainty=0.0;Cost=0.0;EventSource=;OccurrenceTime=null;Annotation=;Duration=0.0;volume=1000; 
EventId=40f68052‐3c7c‐4245‐ae5a‐6e20def2e618;ExpirationTime=null;Chronon=null;DetectionTime=1349181899221;
{"Cost":"0.0","Certainty":"0.0","Name":"TrafficReport","EventSource":"","Duration":"0.0","Annotation":"", 
"volume":"1000","EventId":"e206b5e8‐9f3a‐4711‐9f46‐d0e9431fe215","DetectionTime":"1350311378034"}
How to administrate the CEP – REST ADMIN APIs
Managing the Definitions Repository
GET all the existing definitions in the repository
GET specific definition in JSON format
POST a new definition
PUT update for a definition
DELETE definition
Administrating runtime Instances
GET instance status
PUT instance status
Reading the State of the CEP engine:
The instance’s definition URI
The instance’s state (stopped or started)
How to send input events to the CEP
Example to send event in the JSON format (in push mode)
POST <cep_host>:<port>/{instance_name}/rest/events 
(Example: POST: http://130.206.81.23:8080/ProtonOnWebServer/rest/events)
Headers: {'Content‐Type’: 'application/json’; 'X‐Auth‐Token' : <Oauth2.0 TOKEN>}
{ 
"Name":"TrafficReport", 
"volume":"1000" 
}
Thanks!Thanks!

Weitere ähnliche Inhalte

Was ist angesagt?

Key elements of security threat
Key elements of security threatKey elements of security threat
Key elements of security threatAraf Karsh Hamid
 
Built on Pulsar: A Commercial Consent Management System for 80 Million Citizens
Built on Pulsar: A Commercial Consent Management System for 80 Million CitizensBuilt on Pulsar: A Commercial Consent Management System for 80 Million Citizens
Built on Pulsar: A Commercial Consent Management System for 80 Million CitizensStreamNative
 
Technology Focus before investing on Multiscreen content delivery
Technology Focus before investing on Multiscreen content deliveryTechnology Focus before investing on Multiscreen content delivery
Technology Focus before investing on Multiscreen content deliverymachau123
 
High performance data center computing using manageable distributed computing
High performance data center computing using manageable distributed computingHigh performance data center computing using manageable distributed computing
High performance data center computing using manageable distributed computingJuniper Networks
 
[Kong summit 2019] Egress Gateway Pattern - Zhuojie Zhou
[Kong summit 2019] Egress Gateway Pattern - Zhuojie Zhou[Kong summit 2019] Egress Gateway Pattern - Zhuojie Zhou
[Kong summit 2019] Egress Gateway Pattern - Zhuojie Zhou00zzj
 
Balancing Mobile UX & Security: An API Management Perspective Presentation fr...
Balancing Mobile UX & Security: An API Management Perspective Presentation fr...Balancing Mobile UX & Security: An API Management Perspective Presentation fr...
Balancing Mobile UX & Security: An API Management Perspective Presentation fr...CA API Management
 
apidays LIVE New York 2021 - Managing the usage of Asynchronous APIs: What do...
apidays LIVE New York 2021 - Managing the usage of Asynchronous APIs: What do...apidays LIVE New York 2021 - Managing the usage of Asynchronous APIs: What do...
apidays LIVE New York 2021 - Managing the usage of Asynchronous APIs: What do...apidays
 
apidays LIVE Australia 2021 - Levelling up database security by thinking in A...
apidays LIVE Australia 2021 - Levelling up database security by thinking in A...apidays LIVE Australia 2021 - Levelling up database security by thinking in A...
apidays LIVE Australia 2021 - Levelling up database security by thinking in A...apidays
 
FIWARE Tech Summit - FIWARE NGSIv2 Introduction
FIWARE Tech Summit - FIWARE NGSIv2 IntroductionFIWARE Tech Summit - FIWARE NGSIv2 Introduction
FIWARE Tech Summit - FIWARE NGSIv2 IntroductionFIWARE
 
FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference
 FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference
FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conferenceFIWARE
 
Fiware Developers Week Iot exercises (Advanced)
Fiware Developers Week Iot exercises (Advanced)Fiware Developers Week Iot exercises (Advanced)
Fiware Developers Week Iot exercises (Advanced)dmoranj
 
WSO2 Dashboard Server - Product Overview
WSO2 Dashboard Server - Product OverviewWSO2 Dashboard Server - Product Overview
WSO2 Dashboard Server - Product OverviewWSO2
 
Microservices Architecture & Testing Strategies
Microservices Architecture & Testing StrategiesMicroservices Architecture & Testing Strategies
Microservices Architecture & Testing StrategiesAraf Karsh Hamid
 
Building Open Source IoT Cloud
Building Open Source IoT CloudBuilding Open Source IoT Cloud
Building Open Source IoT Clouddejanb
 
apidays LIVE India - Digital Trust Infrastructure - Key to digital transforma...
apidays LIVE India - Digital Trust Infrastructure - Key to digital transforma...apidays LIVE India - Digital Trust Infrastructure - Key to digital transforma...
apidays LIVE India - Digital Trust Infrastructure - Key to digital transforma...apidays
 
Federation Evolved: How Cloud, Mobile & APIs Change the Way We Broker Identity
Federation Evolved: How Cloud, Mobile & APIs Change the Way We Broker IdentityFederation Evolved: How Cloud, Mobile & APIs Change the Way We Broker Identity
Federation Evolved: How Cloud, Mobile & APIs Change the Way We Broker IdentityCA API Management
 
WSO2 IoT Server - Product Overview
WSO2 IoT Server - Product OverviewWSO2 IoT Server - Product Overview
WSO2 IoT Server - Product OverviewWSO2
 

Was ist angesagt? (20)

Key elements of security threat
Key elements of security threatKey elements of security threat
Key elements of security threat
 
Built on Pulsar: A Commercial Consent Management System for 80 Million Citizens
Built on Pulsar: A Commercial Consent Management System for 80 Million CitizensBuilt on Pulsar: A Commercial Consent Management System for 80 Million Citizens
Built on Pulsar: A Commercial Consent Management System for 80 Million Citizens
 
Technology Focus before investing on Multiscreen content delivery
Technology Focus before investing on Multiscreen content deliveryTechnology Focus before investing on Multiscreen content delivery
Technology Focus before investing on Multiscreen content delivery
 
High performance data center computing using manageable distributed computing
High performance data center computing using manageable distributed computingHigh performance data center computing using manageable distributed computing
High performance data center computing using manageable distributed computing
 
iPlanet presentation
iPlanet presentationiPlanet presentation
iPlanet presentation
 
[Kong summit 2019] Egress Gateway Pattern - Zhuojie Zhou
[Kong summit 2019] Egress Gateway Pattern - Zhuojie Zhou[Kong summit 2019] Egress Gateway Pattern - Zhuojie Zhou
[Kong summit 2019] Egress Gateway Pattern - Zhuojie Zhou
 
Balancing Mobile UX & Security: An API Management Perspective Presentation fr...
Balancing Mobile UX & Security: An API Management Perspective Presentation fr...Balancing Mobile UX & Security: An API Management Perspective Presentation fr...
Balancing Mobile UX & Security: An API Management Perspective Presentation fr...
 
apidays LIVE New York 2021 - Managing the usage of Asynchronous APIs: What do...
apidays LIVE New York 2021 - Managing the usage of Asynchronous APIs: What do...apidays LIVE New York 2021 - Managing the usage of Asynchronous APIs: What do...
apidays LIVE New York 2021 - Managing the usage of Asynchronous APIs: What do...
 
Fiware, the future internet
Fiware, the future internetFiware, the future internet
Fiware, the future internet
 
apidays LIVE Australia 2021 - Levelling up database security by thinking in A...
apidays LIVE Australia 2021 - Levelling up database security by thinking in A...apidays LIVE Australia 2021 - Levelling up database security by thinking in A...
apidays LIVE Australia 2021 - Levelling up database security by thinking in A...
 
FIWARE Tech Summit - FIWARE NGSIv2 Introduction
FIWARE Tech Summit - FIWARE NGSIv2 IntroductionFIWARE Tech Summit - FIWARE NGSIv2 Introduction
FIWARE Tech Summit - FIWARE NGSIv2 Introduction
 
FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference
 FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference
FIWARE Developers Week_FIWARE IoT: Beginner's tutorial_conference
 
Fiware Developers Week Iot exercises (Advanced)
Fiware Developers Week Iot exercises (Advanced)Fiware Developers Week Iot exercises (Advanced)
Fiware Developers Week Iot exercises (Advanced)
 
WSO2 Dashboard Server - Product Overview
WSO2 Dashboard Server - Product OverviewWSO2 Dashboard Server - Product Overview
WSO2 Dashboard Server - Product Overview
 
Microservices Architecture & Testing Strategies
Microservices Architecture & Testing StrategiesMicroservices Architecture & Testing Strategies
Microservices Architecture & Testing Strategies
 
Building Open Source IoT Cloud
Building Open Source IoT CloudBuilding Open Source IoT Cloud
Building Open Source IoT Cloud
 
FIWARE IoT Introduction 1
FIWARE IoT Introduction 1FIWARE IoT Introduction 1
FIWARE IoT Introduction 1
 
apidays LIVE India - Digital Trust Infrastructure - Key to digital transforma...
apidays LIVE India - Digital Trust Infrastructure - Key to digital transforma...apidays LIVE India - Digital Trust Infrastructure - Key to digital transforma...
apidays LIVE India - Digital Trust Infrastructure - Key to digital transforma...
 
Federation Evolved: How Cloud, Mobile & APIs Change the Way We Broker Identity
Federation Evolved: How Cloud, Mobile & APIs Change the Way We Broker IdentityFederation Evolved: How Cloud, Mobile & APIs Change the Way We Broker Identity
Federation Evolved: How Cloud, Mobile & APIs Change the Way We Broker Identity
 
WSO2 IoT Server - Product Overview
WSO2 IoT Server - Product OverviewWSO2 IoT Server - Product Overview
WSO2 IoT Server - Product Overview
 

Andere mochten auch

Scalable Strategies for Computing with Massive Data: The Bigmemory Project
Scalable Strategies for Computing with Massive Data: The Bigmemory ProjectScalable Strategies for Computing with Massive Data: The Bigmemory Project
Scalable Strategies for Computing with Massive Data: The Bigmemory Projectjoshpaulson
 
Dealing with Data Diversity in a Smart City Data Hub
Dealing with Data Diversity in a Smart City Data HubDealing with Data Diversity in a Smart City Data Hub
Dealing with Data Diversity in a Smart City Data HubMathieu d'Aquin
 
Open Data Conference - Rufus Pollock - Open Knowledge Foundation & CKAN
Open Data Conference - Rufus Pollock - Open Knowledge Foundation & CKANOpen Data Conference - Rufus Pollock - Open Knowledge Foundation & CKAN
Open Data Conference - Rufus Pollock - Open Knowledge Foundation & CKANOpening-up.eu
 
FIWARE NGSI: Managing Context Information at Large Scale
FIWARE NGSI: Managing Context Information at Large ScaleFIWARE NGSI: Managing Context Information at Large Scale
FIWARE NGSI: Managing Context Information at Large ScaleFIWARE
 
FIWARE From Open Data to Open APIs
FIWARE From Open Data to Open APIsFIWARE From Open Data to Open APIs
FIWARE From Open Data to Open APIsSergio Garcia Gomez
 
Complex Event Processing
Complex Event ProcessingComplex Event Processing
Complex Event ProcessingJohn Plummer
 
NGSIを利用するプラットフォームFIWAREとは何か?(in Japanese)
NGSIを利用するプラットフォームFIWAREとは何か?(in Japanese)NGSIを利用するプラットフォームFIWAREとは何か?(in Japanese)
NGSIを利用するプラットフォームFIWAREとは何か?(in Japanese)Toshihiko Yamakami
 
FI-WARE Basic Guide
FI-WARE Basic GuideFI-WARE Basic Guide
FI-WARE Basic GuideFIWARE
 
WSO2Con USA 2017: Scalable Real-time Complex Event Processing at Uber
WSO2Con USA 2017: Scalable Real-time Complex Event Processing at UberWSO2Con USA 2017: Scalable Real-time Complex Event Processing at Uber
WSO2Con USA 2017: Scalable Real-time Complex Event Processing at UberWSO2
 

Andere mochten auch (18)

FIWARE Context Broker
FIWARE Context BrokerFIWARE Context Broker
FIWARE Context Broker
 
FIWARE Lab
FIWARE LabFIWARE Lab
FIWARE Lab
 
FIWARE Technology
FIWARE TechnologyFIWARE Technology
FIWARE Technology
 
FIWARE ID Management
FIWARE ID ManagementFIWARE ID Management
FIWARE ID Management
 
FINODEX introduces FIWARE
FINODEX introduces FIWAREFINODEX introduces FIWARE
FINODEX introduces FIWARE
 
FIWARE Generic Enablers introduction
FIWARE Generic Enablers introductionFIWARE Generic Enablers introduction
FIWARE Generic Enablers introduction
 
FIWARE Internet of Things
FIWARE Internet of ThingsFIWARE Internet of Things
FIWARE Internet of Things
 
FINODEX summary. Year 1
FINODEX summary. Year 1FINODEX summary. Year 1
FINODEX summary. Year 1
 
Scalable Strategies for Computing with Massive Data: The Bigmemory Project
Scalable Strategies for Computing with Massive Data: The Bigmemory ProjectScalable Strategies for Computing with Massive Data: The Bigmemory Project
Scalable Strategies for Computing with Massive Data: The Bigmemory Project
 
Dealing with Data Diversity in a Smart City Data Hub
Dealing with Data Diversity in a Smart City Data HubDealing with Data Diversity in a Smart City Data Hub
Dealing with Data Diversity in a Smart City Data Hub
 
Open Data Conference - Rufus Pollock - Open Knowledge Foundation & CKAN
Open Data Conference - Rufus Pollock - Open Knowledge Foundation & CKANOpen Data Conference - Rufus Pollock - Open Knowledge Foundation & CKAN
Open Data Conference - Rufus Pollock - Open Knowledge Foundation & CKAN
 
FIWARE NGSI: Managing Context Information at Large Scale
FIWARE NGSI: Managing Context Information at Large ScaleFIWARE NGSI: Managing Context Information at Large Scale
FIWARE NGSI: Managing Context Information at Large Scale
 
FIWARE From Open Data to Open APIs
FIWARE From Open Data to Open APIsFIWARE From Open Data to Open APIs
FIWARE From Open Data to Open APIs
 
Complex Event Processing
Complex Event ProcessingComplex Event Processing
Complex Event Processing
 
NGSIを利用するプラットフォームFIWAREとは何か?(in Japanese)
NGSIを利用するプラットフォームFIWAREとは何か?(in Japanese)NGSIを利用するプラットフォームFIWAREとは何か?(in Japanese)
NGSIを利用するプラットフォームFIWAREとは何か?(in Japanese)
 
FI-WARE Basic Guide
FI-WARE Basic GuideFI-WARE Basic Guide
FI-WARE Basic Guide
 
Decision tree and random forest
Decision tree and random forestDecision tree and random forest
Decision tree and random forest
 
WSO2Con USA 2017: Scalable Real-time Complex Event Processing at Uber
WSO2Con USA 2017: Scalable Real-time Complex Event Processing at UberWSO2Con USA 2017: Scalable Real-time Complex Event Processing at Uber
WSO2Con USA 2017: Scalable Real-time Complex Event Processing at Uber
 

Ähnlich wie FIWARE Complex Event Processing

FIWARE CEP GE introduction, ICT 2015
FIWARE CEP GE introduction, ICT 2015FIWARE CEP GE introduction, ICT 2015
FIWARE CEP GE introduction, ICT 2015ishkin
 
Open Source Event Processing for Sensor Fusion Applications
Open Source Event Processing for Sensor Fusion ApplicationsOpen Source Event Processing for Sensor Fusion Applications
Open Source Event Processing for Sensor Fusion Applicationsguestc4ce526
 
Design patterns - ICIN 2010
Design patterns - ICIN 2010Design patterns - ICIN 2010
Design patterns - ICIN 2010steccami
 
Platform Events by Tim Taylor
Platform Events by Tim TaylorPlatform Events by Tim Taylor
Platform Events by Tim TaylorChristine Smith
 
Guido schmutz-jax2011-event-driven soa
Guido schmutz-jax2011-event-driven soaGuido schmutz-jax2011-event-driven soa
Guido schmutz-jax2011-event-driven soaGuido Schmutz
 
Swiss army knife Spring
Swiss army knife SpringSwiss army knife Spring
Swiss army knife SpringMario Fusco
 
PATTERNS06 - The .NET Event Model
PATTERNS06 - The .NET Event ModelPATTERNS06 - The .NET Event Model
PATTERNS06 - The .NET Event ModelMichael Heron
 
S4: Distributed Stream Computing Platform
S4: Distributed Stream Computing PlatformS4: Distributed Stream Computing Platform
S4: Distributed Stream Computing PlatformAleksandar Bradic
 
Restate: Event-driven Asynchronous Services, Easy as Synchronous RPC
Restate: Event-driven Asynchronous Services, Easy as Synchronous RPCRestate: Event-driven Asynchronous Services, Easy as Synchronous RPC
Restate: Event-driven Asynchronous Services, Easy as Synchronous RPCHostedbyConfluent
 
Vldb 2010 event processing tutorial
Vldb 2010 event processing tutorialVldb 2010 event processing tutorial
Vldb 2010 event processing tutorialOpher Etzion
 
Explained: Domain events
Explained: Domain eventsExplained: Domain events
Explained: Domain eventsJoão Pires
 
Scaling Experimentation & Data Capture at Grab
Scaling Experimentation & Data Capture at GrabScaling Experimentation & Data Capture at Grab
Scaling Experimentation & Data Capture at GrabRoman
 
Complex Event Processor 3.0.0 - An overview of upcoming features
Complex Event Processor 3.0.0 - An overview of upcoming features Complex Event Processor 3.0.0 - An overview of upcoming features
Complex Event Processor 3.0.0 - An overview of upcoming features WSO2
 
Proposed Event Processing Definitions ,September 20, 2006
Proposed Event Processing Definitions,September 20, 2006Proposed Event Processing Definitions,September 20, 2006
Proposed Event Processing Definitions ,September 20, 2006Tim Bass
 
ITE 1122_ Event Handling.pptx
ITE 1122_ Event Handling.pptxITE 1122_ Event Handling.pptx
ITE 1122_ Event Handling.pptxudithaisur
 
eFront V3.7 Extensions Architecture
eFront V3.7 Extensions ArchitectureeFront V3.7 Extensions Architecture
eFront V3.7 Extensions Architecturepapagel
 
Data to Insight in a Flash: Introduction to Real-Time Analytics with WSO2 Com...
Data to Insight in a Flash: Introduction to Real-Time Analytics with WSO2 Com...Data to Insight in a Flash: Introduction to Real-Time Analytics with WSO2 Com...
Data to Insight in a Flash: Introduction to Real-Time Analytics with WSO2 Com...WSO2
 

Ähnlich wie FIWARE Complex Event Processing (20)

FIWARE CEP GE introduction, ICT 2015
FIWARE CEP GE introduction, ICT 2015FIWARE CEP GE introduction, ICT 2015
FIWARE CEP GE introduction, ICT 2015
 
Open Source Event Processing for Sensor Fusion Applications
Open Source Event Processing for Sensor Fusion ApplicationsOpen Source Event Processing for Sensor Fusion Applications
Open Source Event Processing for Sensor Fusion Applications
 
Design patterns - ICIN 2010
Design patterns - ICIN 2010Design patterns - ICIN 2010
Design patterns - ICIN 2010
 
Platform Events by Tim Taylor
Platform Events by Tim TaylorPlatform Events by Tim Taylor
Platform Events by Tim Taylor
 
Guido schmutz-jax2011-event-driven soa
Guido schmutz-jax2011-event-driven soaGuido schmutz-jax2011-event-driven soa
Guido schmutz-jax2011-event-driven soa
 
Swiss army knife Spring
Swiss army knife SpringSwiss army knife Spring
Swiss army knife Spring
 
PATTERNS06 - The .NET Event Model
PATTERNS06 - The .NET Event ModelPATTERNS06 - The .NET Event Model
PATTERNS06 - The .NET Event Model
 
S4: Distributed Stream Computing Platform
S4: Distributed Stream Computing PlatformS4: Distributed Stream Computing Platform
S4: Distributed Stream Computing Platform
 
Restate: Event-driven Asynchronous Services, Easy as Synchronous RPC
Restate: Event-driven Asynchronous Services, Easy as Synchronous RPCRestate: Event-driven Asynchronous Services, Easy as Synchronous RPC
Restate: Event-driven Asynchronous Services, Easy as Synchronous RPC
 
Vldb 2010 event processing tutorial
Vldb 2010 event processing tutorialVldb 2010 event processing tutorial
Vldb 2010 event processing tutorial
 
Webx 2010
Webx 2010Webx 2010
Webx 2010
 
SAP workflow events
SAP workflow eventsSAP workflow events
SAP workflow events
 
Explained: Domain events
Explained: Domain eventsExplained: Domain events
Explained: Domain events
 
Reactive Data System
Reactive Data SystemReactive Data System
Reactive Data System
 
Scaling Experimentation & Data Capture at Grab
Scaling Experimentation & Data Capture at GrabScaling Experimentation & Data Capture at Grab
Scaling Experimentation & Data Capture at Grab
 
Complex Event Processor 3.0.0 - An overview of upcoming features
Complex Event Processor 3.0.0 - An overview of upcoming features Complex Event Processor 3.0.0 - An overview of upcoming features
Complex Event Processor 3.0.0 - An overview of upcoming features
 
Proposed Event Processing Definitions ,September 20, 2006
Proposed Event Processing Definitions,September 20, 2006Proposed Event Processing Definitions,September 20, 2006
Proposed Event Processing Definitions ,September 20, 2006
 
ITE 1122_ Event Handling.pptx
ITE 1122_ Event Handling.pptxITE 1122_ Event Handling.pptx
ITE 1122_ Event Handling.pptx
 
eFront V3.7 Extensions Architecture
eFront V3.7 Extensions ArchitectureeFront V3.7 Extensions Architecture
eFront V3.7 Extensions Architecture
 
Data to Insight in a Flash: Introduction to Real-Time Analytics with WSO2 Com...
Data to Insight in a Flash: Introduction to Real-Time Analytics with WSO2 Com...Data to Insight in a Flash: Introduction to Real-Time Analytics with WSO2 Com...
Data to Insight in a Flash: Introduction to Real-Time Analytics with WSO2 Com...
 

Kürzlich hochgeladen

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 

Kürzlich hochgeladen (20)

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 

FIWARE Complex Event Processing

  • 1. Pasquale Vitale Engineering Ingegneria Informatica FIWARE Complex Event Processing
  • 2. How to process the context events in real-time To perform some processing on available context information you need a Complex Event Processing The CEP allows you to detect patterns above contexts (triggering some action or raising some alarm) The CEP receives contexts information as input events and generates observations (or situations) as output events
  • 3. Applications role Applications connected to the CEP GE (external applications or some other GE like Context Broker GE) can play two different role: the role of Event Producer the role of Event Consumer Note: A given application can play both roles
  • 4. Event Producer Event Producer sources can be: an external applications reporting events a sensor reporting a measurement Event Producers can be provide events in two modes: Push mode - the Event Producers push events into the CEP by means of invoking a REST API Pull mode - the Event Producer exports a REST API that the CEP can invoke to retrieve events
  • 5. Event Consumer Event Consumers are the destination point of events. For example: Dashboard: a type of event consumer that displays alarms defined when certain conditions hold on events related to some entities user community or produced by a number of devices Handling process: a type of event consumer that consumes meaningful events (such as opportunities or threats) and performs a concrete action The Context Broker GE which can connect as an event consumer to the CEP and forward the events it consumes to all interested applications based on a subscription model
  • 6. Pattern The CEP allows you to define patterns over selected events occurring in event processing contexts (such as a time window or segmentation) with optional additional conditions Those patterns can be defined using Web based authoring tool (without to write any code)
  • 7. Event Processing Agent (EPA) - Pattern Patterns supported are: Basic type, meaning a basic event a lamp battery charge is below 15 percent Aggregate type, compute some aggregation functions on a set of incoming events the percentage of failed measurements is higher than 10 percent in the last 5 minutes Absent type, meaning no event holding some condition arrived within the time window for the pattern to match no sensor events arrived in the last 10 minutes Sequence type, meaning events need to occur in a specified order for the pattern to be detected detect if the sensor status was “fixed” and later was “failed” within 24 hours All type, meaning that all the events specified should arrive for the pattern to match alert if the total reservations number arriving from 4 branches is higher than some threshold
  • 8. From Event-Condition-Action to Pattern-Condition-Action In certain scenarios, single events are insignificant, a CEP engine can detect combinations of events, and generate derived events situations, which are meaningful Use CEP when there is a need to detect patterns over incoming events Other tools can be used when there is a need to respond to single events with some condition (e.g., Context Broker GE)
  • 9. Event Processing Context definition Every EPA (event processing agent - pattern) is associated with an event processing context Event processing context can be a: temporal processing context (time window) segmentation processing context composite context (group of several contexts) + Event processing context groups event instances can be processed in a related way
  • 10. Working with the CEP The FI-WARE CEP instance: IBM Proactive Technology Online - PROTON
  • 11. Proton (CEP GE Instance) – Build Time Web User Interface Definition type (or build block) of CEP: Event types - events that are expected to be received as input or to be sent as output EPAs - responsible to detect patterns: Basic, Aggregate, Absent, Sequence, All Processing Contexts - Temporal, Segmentation, Composite Consumers - the event consumers: File, REST, JMS, Custom Producers - the event source: File, REST, JMS, Custom
  • 12. Build Time Web User Interface The Authoring tool allows you to define a CEP application, validate it, and export the application definition
  • 13. Create definitions Definitions can be generated by the user through a WEB User Interface Definitions can be generated by external systems In JSON format
  • 15. Runtime Main interactions - Input & Output Adapters
  • 16. Proton (CEP GE Instance) – Rest Input Adapter Rest Input Adapter Client Has a Producer definition in the Web UI Activates a REST service as a client Access the REST API declared by the event producer and pull events using the GET method Support format: Tag delimited JSON Name=ShipPosition;ShipID=RTX33;Long=46;Lat=55;Speed=4.0;Time=1333033200; { "Name":"TrafficReport",  "volume":"1000“ }
  • 17. Proton (CEP GE Instance) – Rest Output Adapter Rest Output Adapter Client Has a Consumer definition in the Web UI Activates a REST service as a client Access the REST API declared by the event consumer and push events to the consumer using the POST method Support format: Tag delimited JSON Name=TrafficReport;Certainty=0.0;Cost=0.0;EventSource=;OccurrenceTime=null;Annotation=;Duration=0.0;volume=1000;  EventId=40f68052‐3c7c‐4245‐ae5a‐6e20def2e618;ExpirationTime=null;Chronon=null;DetectionTime=1349181899221; {"Cost":"0.0","Certainty":"0.0","Name":"TrafficReport","EventSource":"","Duration":"0.0","Annotation":"",  "volume":"1000","EventId":"e206b5e8‐9f3a‐4711‐9f46‐d0e9431fe215","DetectionTime":"1350311378034"}
  • 18. How to administrate the CEP – REST ADMIN APIs Managing the Definitions Repository GET all the existing definitions in the repository GET specific definition in JSON format POST a new definition PUT update for a definition DELETE definition Administrating runtime Instances GET instance status PUT instance status Reading the State of the CEP engine: The instance’s definition URI The instance’s state (stopped or started)
  • 19. How to send input events to the CEP Example to send event in the JSON format (in push mode) POST <cep_host>:<port>/{instance_name}/rest/events  (Example: POST: http://130.206.81.23:8080/ProtonOnWebServer/rest/events) Headers: {'Content‐Type’: 'application/json’; 'X‐Auth‐Token' : <Oauth2.0 TOKEN>} {  "Name":"TrafficReport",  "volume":"1000"  }