IOT Architecture II
IOT Architecture II
H.M.H.T.Hikkaduwa
Complex systems.
Complex systems are become dynamic systems rather than static systems.
ea. Financial market systems, social network.
Complex systems are constantly change and change is the norm.
It is no longer static structural properties and space define the systems.
Also increase the system relation in time that define how system function.
Event driven architecture.
Event driven architecture is a design pattern built around the production, detection and
reaction to event that takes time.
IS a methodology use for designing and implementing applications where events transmit
among decouples software services and components.
Critical piece of a hybrid integration platform.
What is event?
Event manager.
Event manager function as a intermediary managing events. Manager receive a
notification from a event and if need apply rule to process the event. Events are pass to down
stream event consumers.
Event consumer are entity that need to know occurrence of the event. Subscribe for the
type of event manager.
Event processing styles.
1. SOA based communication may limit enterprise ability to be effectively adaptive and
effective.
2. SOA architecture insufficient in real time response.
3. SOA architecture insufficient in parallel process of service execution.
IOT system unique characteristic from the
traditional information system service.
Perceptibility of the environment.
Perceived service system interact with the environment to support dynamic adaptive
computing based on scenarios. Sense device service system perceives the environment
surrounding temperature, humidity, light. Sensory data constantly transfer to the service
system and it handles real time to support intelligent calculations based on situation.
The service execution driven by events.
Business event define by users. The sensing service systems analyze and collect real time
data. Get the business event and do real time processing and response to event. Traditional
information service generally uses the request and response model.
IOT system unique characteristic from the
traditional information system service.
Service has the characteristics of collaborative work.
Expansion of sensing service and application scope service may need to work with
multiple application forms. Perceive service system commands many components actively.
Sensing service has long life time.
Configuring operations perceive system running in the longer period, instead of the traditional
service execution by system calls.
The sensing is predictive and proactive.
The sensing service system predicts business events and actives service in advance according
to the sensory data and context scenarios.
Event driven SOA.
Form of Service oriented architecture and combining the intelligence and the pro
activeness of the architecture with organization capabilities found in service offerings.
Also a methodology use for design and implementing applications where events transmit
among decoupled software components and the services.
Software architecture pattern promoting the production, detection, consumption of an
reaction to events.
EDA is an event driven process execution component model. Event can be transmitted
through components and services.
The generation of an event can trigger one or more services to be invoked.
Event driven SOA.
Not like sequential procedural systems, event driven SOA allow to run systems and
component to respond dynamically in real time as event occurs.
Long running processing capabilities enable architecture to collect various asynchronous
events over a long period of time and correlate these events in to the casual relationship.
Event driven programming is structured around the concept of decoupled relationships
between event producers and event handlers.
Event consumer doesn’t care why event occur and it concerned that it will be invoked
when the event has occurred.
Different characteristics of event driven SOA.
Fog computing is the concept of network fabric that stretches form the outer edges where
data is created to where it will eventually stored.
Fog is a another layer in the distributed environment and is closely associate with cloud
environment and the internet of things.
Fog computing or fogging is an architecture that use edge devices to carry out a substantial
amount of computation, storage, communicate locally and routed over the internet
backbone.
Fog computing architecture.
Goal of fog computing is to bring basic analytics services to the network edge, improving
performance by positioning computing resources closer to the where they are needed.
This is used to reduce the distance that data needed to be transport on the network and
improve the overall network performance and the efficiency.
Fog computing implies distribution of communication, computation and storage resources
and services on or close to devises and systems in the control of end users.
Real world applications use in fog computing.
Fog computing is used for the smart electrical grids. Electrical grids are dynamical and
responsible for increased electrical consumption and lowering production when it is no
need to be economical. In order to run efficiently, a smart grid relies heavily on real time
data of electrical consumption and production.
The data is not from an isolation sensor. But rather from a group of sensors.
Advantages of the Fog computing.
Offline Handling.
Without an internet connection, an IOT solution which is entirely based on an online
platform cannot work. With the fog computing, we have a local node and we have to deal with
local network connection only. And also scenarios like cloud platform is available but the
connection isn’t reliable or the bandwidth also low.
Security and Privacy.
Protecting the data is a must situation. Even if all cloud connections are encrypted and
based on SSL/TSSL protocols Also IOT solution prefer to have data on their private server to
protect themselves and their customers. Using field gateway we can filter data to avoid
sending all of them to the cloud. We can hold sensible data in our network and send the no
sensible ones to the public servers.
Advantages of the Fog computing.
Reducing price.
IOT cloud platforms are not free. They have a cost which is related to a number of
connected devises and the number of messages exchanged per hour or a day. Using the
preprocessing we can reduce and filter the amount of data to send.
Applications of Fog computing.
In industrial environment all devises use protocol like OPC-UA and need near real time
reaction time. (Robots in a production line)
Smart home is a another example made of ZIgBee, Z wave devises and connected to the
internet through a central router.
IOT and API.
API work as a data pipes to send the data off to the cloud and retrieve the metrics and
suggestion back
Assume that sensors collecting the information. And those devises connected to your
mobile phone via Bluetooth and mobile phone connected to the internet and send data to
the provider.
The connection between these app to the provider usually done via APIs.
IOT and API.
Devises asked to provide wireless access to get internet.
Devises directly communicate with the provider and send data to the providers back end
which is often running in the cloud.
Sensors do this using API calls based on REST, Web sockets or even proprietary protocols.
Protocols like MQTT become more and more popular to connect power and constrained
devices to the back end.
Why we use API based architectures.
The big split between the back end and front end.
This is also called as split stack development. API driven architecture allow to decouple the back
end and front end of the application. Instead having the dependency each end communicate via
API. This is extremely beneficial like each end can be build in completely different tools.
Sensibility and scalability.
API is the key or foundation of the application. It enable the organization to scale the app by
simply plugin in services as and when needed.
Parallel development and agility.
Different teams and the persons work with the back end and front end applications there is
no need to teams to work together. Only they have to concern and agree with the API structure.
Why we use API based architectures.
https://www.techradar.com/news/what-is-fog-computing
https://apifriends.com/api-management/iot-api/
https://dzone.com/articles/the-hybrid-internet-of-things-1
Thank You.