SlideShare uma empresa Scribd logo
1 de 33
Baixar para ler offline
The anatomy of a large scale Social
       Web for Internet enabled Object

                             Antonio Pintus             Davide Carboni               Andrea Piras


                                                             CRS4

                                      WoT 2011 - June 2011 - San Francisco, CA, USA

Antonio Pintus - pintux@crs4.it       Davide Carboni - dcarboni@crs4.it   Andrea Piras - piras@crs4.it   1
Who, where...

    • Antonio Pintus and Davide Carboni and Andrea Piras
    • ICT - LBS Group @ CRS4, an interdisciplinary applied research center based
      in Pula (Cagliari), SARDINIA, Italy




                                                                                                             2
Antonio Pintus, Davide Carboni, Andrea Piras                   WoT2011 - June 2011- San Francisco, CA, USA
The Web of Things

    • In the Web of Things (WoT) vision, things are connected to a pervasive
      wireless/wired network and can communicate with other objects and
      services using HTTP-based protocols


    • Everyday surrounding objects (phones, domestic appliances,
      advertisement billboards, musical instruments,... ) become nodes of the
      WoT

    • Web-enabled objects are available on the market just now!




                                                                                                           3
Antonio Pintus, Davide Carboni, Andrea Piras                 WoT2011 - June 2011- San Francisco, CA, USA
part #1

                                                              Our Vision

                                               Ph. http://www.flickr.com/photos/salendron/
                                                                                                                 4
Antonio Pintus, Davide Carboni, Andrea Piras                       WoT2011 - June 2011- San Francisco, CA, USA
Vision: a Social Web of Things /1

                 #1: connecting Things to the Web must be
                 simple

              - simple to “plug”
              - simple to con gure
              - simple to manage
              - Web-based UX



          Ph. Nigel Marshall, http://www.flickr.com/photos/nige_mar/
                                                                                                                        5
Antonio Pintus, Davide Carboni, Andrea Piras                              WoT2011 - June 2011- San Francisco, CA, USA
Vision: a Social Web of Things /2


    • #2: not only “physical” Things but also “virtual”
      ones
         –social networks, Web sites, feeds, APIs, ...




                                                                                                            6
Antonio Pintus, Davide Carboni, Andrea Piras                  WoT2011 - June 2011- San Francisco, CA, USA
Vision: a Social Web of Things /3


                      #3: interconnecting Things in the Web
                      must be simple

                      - including “physical” and “virtual”
                      Things

                      - data adapting / transformation

                Ph. John Thurm, http://www.flickr.com/photos/thurm

                                                                                                                     7
Antonio Pintus, Davide Carboni, Andrea Piras                           WoT2011 - June 2011- San Francisco, CA, USA
Vision: a Social Web of Things /4

        #4: Social /1: existing social networks become
        connectable Things

        - Authentication facilities, friends/contacts import




                                                                           Ph. Nigel Marshall, http://www.flickr.com/photos/nige_mar/

                                                                                                                              8
Antonio Pintus, Davide Carboni, Andrea Piras                  WoT2011 - June 2011- San Francisco, CA, USA
Vision: a Social Web of Things /5
                                                            Ph. Ryan Roberts http://www.flickr.com/photos/ryanr




         #5: Social /2: Share your Things with friends!
                                                                                                                 9
Antonio Pintus, Davide Carboni, Andrea Piras                       WoT2011 - June 2011- San Francisco, CA, USA
Things Sharing

           – Things sharing:

                • it should be possible to share a Thing with friends and let
                  them use it in their connections (according to a de ned
                  policy: public, open, moderated)



                • sharing objects goes toward a “collaborative consumption”
                  as shaped by the authors of the book What’s mine is yours*




         * What's Mine Is Yours: The Rise of Collaborative Consumption, Rachel Botsman and Roo Rogers . Harperbusiness,
         http://www.collaborativeconsumption.com/
                                                                                                                              10
Antonio Pintus, Davide Carboni, Andrea Piras                                    WoT2011 - June 2011- San Francisco, CA, USA
The Model: 4 basic abstractions

                                                                               - Services:
                                                                                          - Sensors
                                                                                          - Actuators

                                                                               - Connections




Ph. Windell Oskay http://www.flickr.com/photos/oskay/265899865/

                                                                                                               11
Antonio Pintus, Davide Carboni, Andrea Piras                     WoT2011 - June 2011- San Francisco, CA, USA
Services: Sensors

                                                       - every Thing capable to produce
                                                        data


                                                       - using HTTP


                                                       - anemometers, Arduino boards,
                                                        but also Foursquare, Pachube,
                                                        other services in the Web...

Ph. Windell Oskay http://www.flickr.com/photos/oskay/
                                                                                                                    12
Antonio Pintus, Davide Carboni, Andrea Piras                          WoT2011 - June 2011- San Francisco, CA, USA
Services: Actuators

                                                            - every Thing capable to receive/
                                                             consume data and to perfom an
                                                             action


                                                            - using HTTP


                                                            - lighting systems, Arduino,
                                                             Chumby, Karotz, but also Twitter,
                                                             Facebook, other applications...
Ph. Dieter Drescher http://www.flickr.com/photos/cosmosfan
                                                                                                                         13
Antonio Pintus, Davide Carboni, Andrea Piras                               WoT2011 - June 2011- San Francisco, CA, USA
Connections

                                                 - between two Services:

                                                            - a Sensor as the source
                                                            - an Actuator as the destination

                                                 - they are con gurable:

                                                            - data ltering
                                                            - data mapping
                                                  Ph. supermaryan http://www.flickr.com/photos/33975256@N06/
                                                                                                                                  14
Antonio Pintus, Davide Carboni, Andrea Piras                                        WoT2011 - June 2011- San Francisco, CA, USA
problems: architecture & scalability

    • Scalability

         – What happens when the number of users grows?

         – What happens when thousands of things are added?

         – What happens when thousands of near real-time data
          have to be managed?

         – System MUST be scalable by design!
                                                                                                        15
Antonio Pintus, Davide Carboni, Andrea Piras              WoT2011 - June 2011- San Francisco, CA, USA
problems: architecture & scalability

                                                Web-based Architecture

WS-* or REST
                                                   Web server



  Load balancing
                                   Horizontal Scalability



                                        C10K problem
                                                                        Database
                                                                                                     ?
                                                       New Sensors/Actuators
Ph. MrFaber, http://www.flickr.com/photos/mrfaber
                                                                                                              16
 Antonio Pintus, Davide Carboni, Andrea Piras                   WoT2011 - June 2011- San Francisco, CA, USA
part #2

           Architectural &
           Design Choices


                                 Ph. Jaime Silva, http://www.flickr.com/photos/20792787@N00/
                                                                                                                                   17
Antonio Pintus, Davide Carboni, Andrea Piras                                         WoT2011 - June 2011- San Francisco, CA, USA
WS-* or REST?

   • in many cases adopting a WS-* stack is too complex:
     WSDL, SOAP over HTTP, ...

   • often, we’re talking about (limited) physical digital Things

   • we’ve chosen REST as architectural style:

                        » Things, connections, data, users, ..., are REST
                         resources

                        » simpler, exible, “mashable”, APIs
                                                                                                         18
Antonio Pintus, Davide Carboni, Andrea Piras               WoT2011 - June 2011- San Francisco, CA, USA
Data persistence: SQL or NoSQL?

   • Considering:
        – high data heterogeneity: DB schema exibility required
        – database scalability across distributed systems
        – data partitioning & data replication

   • We’ve chosen a NoSQL DB:

                        » no xed schemas, no tables, no relations
                        » high concurrent read-write, scalability, auto-
                         sharding
                        » JSON native format
                                                                                                           19
Antonio Pintus, Davide Carboni, Andrea Piras                 WoT2011 - June 2011- San Francisco, CA, USA
Web server, Web front-end

 • Full Web-based system


 • C10K problem: 10,000 simultaneous open standing HTTP
   connections (clients)


 • Horizontal scalability: add new server instances when
   required


 • Load balancing/reverse proxy

                                                                                                           20
Antonio Pintus, Davide Carboni, Andrea Piras                 WoT2011 - June 2011- San Francisco, CA, USA
Things Connections




  • data transfers between DB-based queues
  • data adaptation performed by system processes
  • data adaptation rules de ned by users for each owned
    connection
                                                                                                          21
Antonio Pintus, Davide Carboni, Andrea Piras                WoT2011 - June 2011- San Francisco, CA, USA
Data adaptation: lters


    • a Filter is a boolean expression evaluated
      against data coming from a Sensor

         –using Javascript as expression language

                         »   sensor > 12
                         »   sensor. eld == ‘mylabel’
                         »   sensor.data >20 && sensor.type == ‘temp’
                         »   ...


                                                                                                              22
Antonio Pintus, Davide Carboni, Andrea Piras                    WoT2011 - June 2011- San Francisco, CA, USA
Data adaptation: mappings


    • Mappings are couple of expressions: (cond, repl)


               • cond : a boolean expression evaluated against
                 Sensor data (same as for lters)


               • repl : an expression producing a data value to be
                 forwarded to the Actuator when cond is true


                                                                                                           23
Antonio Pintus, Davide Carboni, Andrea Piras                 WoT2011 - June 2011- San Francisco, CA, USA
Mappings, examples

           – Javascript as expression language
       Sensor data                  CONDITION                       REPLACE                          Actuator data
          type                                                                                           type



          numeric                    sensor > 30           <% sensor * 3.14 / 100 %>                     numeric


                                                        Summer is coming, temperature is:
          numeric                    sensor > 25                                                            text
                                                                <% sensor %> °C


                                                           Data is <% sensor.data %>
            JSON                  sensor.data > 30                                                          text
                                                         and type is <% sensor.type %>


                                                     <?xml version="1.0" encoding="UTF-8"?>
                                sensor.A0 > 30 &&    <value>
            JSON                                                                                           XML
                                  sensor.A5 <= 10        <% sensor.A0 * 100 %>
                                                     </value>

                                                                                                                       24
Antonio Pintus, Davide Carboni, Andrea Piras                             WoT2011 - June 2011- San Francisco, CA, USA
Paraimpu



      • is a Web-based social tool

      • allows people to:

           – connect, use, share and compose Things, services and
             devices to create personalized WoT applications




                                                                                                        25
Antonio Pintus, Davide Carboni, Andrea Piras              WoT2011 - June 2011- San Francisco, CA, USA
General Architecture

                                                            Load balancing



                                                                        Web front-end
                                                                        scalability



                                                                    System processes (back-
                                                                    end) scalability


                                                                      DB scalability

                                                                                                            26
Antonio Pintus, Davide Carboni, Andrea Piras                  WoT2011 - June 2011- San Francisco, CA, USA
Paraimpu: the workspace




                                                                                                          27
Antonio Pintus, Davide Carboni, Andrea Piras                WoT2011 - June 2011- San Francisco, CA, USA
Current version


    • ~ 50 active alpha users

    • Palette:
         • 5 ready-to-use Sensors + 1 generic Sensor
         • 7 ready-to-use Actuators + 1 generic Actuator

    • Sharing policy: (private), public, open, moderated

    • Noti cation system between users for Things sharing
                                                                                                               28
Antonio Pintus, Davide Carboni, Andrea Piras                     WoT2011 - June 2011- San Francisco, CA, USA
Technologies

   • Architecture mainly written in Python

   • Web stack based on Tornado Web server

   • NoSQL DBMS (MongoDB)

   • HTML+jQuery




                                                                                                            29
Antonio Pintus, Davide Carboni, Andrea Piras                  WoT2011 - June 2011- San Francisco, CA, USA
Conclusion

• We believe that a social Web of Things can help in its diffusion...

• Results are encouraging: alpha users are helping us in testing
  and improving the system

• More and better test beds are under de nition to prove system
  scalability in each of its critical aspects

• We’re working hard to add new features and new ready-to-use,
  easy-con guration, components and Things

                                                                                                          30
Antonio Pintus, Davide Carboni, Andrea Piras                WoT2011 - June 2011- San Francisco, CA, USA
The prototype




                                    http://paraimpu.crs4.it

                                                twitter: @paraimpu


                                                                                                             31
Antonio Pintus, Davide Carboni, Andrea Piras                   WoT2011 - June 2011- San Francisco, CA, USA
Contacts

    • Antonio Pintus, pintux@crs4.it, twitter: @apintux
    • Davide Carboni, dcarboni@crs4.it
    • Andrea Piras, piras@crs4.it




    • LBS group @ CRS4: http://geoweb.crs4.it/


    • CRS4 Home Page:                          http://www.crs4.it



                                                                                                                  32
Antonio Pintus, Davide Carboni, Andrea Piras                        WoT2011 - June 2011- San Francisco, CA, USA
Q&A


                                  Thank you for your attention




                                                                                                    33
Antonio Pintus, Davide Carboni, Andrea Piras          WoT2011 - June 2011- San Francisco, CA, USA

Mais conteúdo relacionado

Mais procurados

Podcasting intro for Rhodes
Podcasting intro for RhodesPodcasting intro for Rhodes
Podcasting intro for Rhodes
Bryan Alexander
 

Mais procurados (13)

2010 NIH Handheld Users Meeting
2010 NIH Handheld Users Meeting2010 NIH Handheld Users Meeting
2010 NIH Handheld Users Meeting
 
From Digital Panopticon To Noosphere
From Digital Panopticon To NoosphereFrom Digital Panopticon To Noosphere
From Digital Panopticon To Noosphere
 
Brave New World: Developing Staff Competencies Around Mobile
Brave New World: Developing Staff Competencies Around MobileBrave New World: Developing Staff Competencies Around Mobile
Brave New World: Developing Staff Competencies Around Mobile
 
Podcasting intro for Rhodes
Podcasting intro for RhodesPodcasting intro for Rhodes
Podcasting intro for Rhodes
 
Some Ideas and Works Behind Mekong ICT Camp 2
Some Ideas and Works Behind Mekong ICT Camp 2Some Ideas and Works Behind Mekong ICT Camp 2
Some Ideas and Works Behind Mekong ICT Camp 2
 
Digital Trails Dave King 1 5 10 Part 1 D3
Digital Trails   Dave King   1 5 10   Part 1 D3Digital Trails   Dave King   1 5 10   Part 1 D3
Digital Trails Dave King 1 5 10 Part 1 D3
 
Building Online Communities
Building Online CommunitiesBuilding Online Communities
Building Online Communities
 
What's happening to copyright
What's happening to copyrightWhat's happening to copyright
What's happening to copyright
 
Mobile Access to Licensed Databases in Medicine and Other Subject Areas
Mobile Access to Licensed Databases in Medicine and Other Subject AreasMobile Access to Licensed Databases in Medicine and Other Subject Areas
Mobile Access to Licensed Databases in Medicine and Other Subject Areas
 
Research Ethics in the 2.0 Era
Research Ethics in the 2.0 EraResearch Ethics in the 2.0 Era
Research Ethics in the 2.0 Era
 
Singapore iatul keynote
Singapore iatul keynoteSingapore iatul keynote
Singapore iatul keynote
 
WOW Presentation-K12 Online Conference
WOW Presentation-K12 Online ConferenceWOW Presentation-K12 Online Conference
WOW Presentation-K12 Online Conference
 
ELI Web 2.0 Storytelling workshop: Introduction
ELI Web 2.0 Storytelling workshop: IntroductionELI Web 2.0 Storytelling workshop: Introduction
ELI Web 2.0 Storytelling workshop: Introduction
 

Destaque

DiscoWoT - Extensible Discovery for Smart Things
DiscoWoT - Extensible Discovery for Smart ThingsDiscoWoT - Extensible Discovery for Smart Things
DiscoWoT - Extensible Discovery for Smart Things
Simon Mayer
 

Destaque (7)

"On the complementarity of Triple Spaces and the Web of Things" poster @ WoT2011
"On the complementarity of Triple Spaces and the Web of Things" poster @ WoT2011"On the complementarity of Triple Spaces and the Web of Things" poster @ WoT2011
"On the complementarity of Triple Spaces and the Web of Things" poster @ WoT2011
 
DiscoWoT - Extensible Discovery for Smart Things
DiscoWoT - Extensible Discovery for Smart ThingsDiscoWoT - Extensible Discovery for Smart Things
DiscoWoT - Extensible Discovery for Smart Things
 
A Network Architecture for the Web of Things
A Network Architecture for the Web of ThingsA Network Architecture for the Web of Things
A Network Architecture for the Web of Things
 
uBox A Distributed Resource Management Architecture for the Web-of-Things
uBox A Distributed Resource Management Architecture for the Web-of-ThingsuBox A Distributed Resource Management Architecture for the Web-of-Things
uBox A Distributed Resource Management Architecture for the Web-of-Things
 
Connecting Things to the Web using Programmable Low-power WiFi Modules
Connecting Things to the Web using Programmable Low-power WiFi ModulesConnecting Things to the Web using Programmable Low-power WiFi Modules
Connecting Things to the Web using Programmable Low-power WiFi Modules
 
Estudios de linea.
Estudios de linea.Estudios de linea.
Estudios de linea.
 
Californium: Scalable Cloud Services for the Internet of Things with CoAP
Californium: Scalable Cloud Services for the Internet of Things with CoAPCalifornium: Scalable Cloud Services for the Internet of Things with CoAP
Californium: Scalable Cloud Services for the Internet of Things with CoAP
 

Semelhante a Paraimpu: a social tool for the Web of Things @ WoT2011

Netnography online course part 1 of 3 17 november 2016
Netnography online course part 1 of 3 17 november 2016Netnography online course part 1 of 3 17 november 2016
Netnography online course part 1 of 3 17 november 2016
suresh sood
 
How libraries can servive in the new media ecosystem
How libraries can servive in the new media ecosystemHow libraries can servive in the new media ecosystem
How libraries can servive in the new media ecosystem
Rajalaxmi Govanakoppa
 
Running head INTERNET1INTERNET3Interne.docx
Running head INTERNET1INTERNET3Interne.docxRunning head INTERNET1INTERNET3Interne.docx
Running head INTERNET1INTERNET3Interne.docx
cowinhelen
 

Semelhante a Paraimpu: a social tool for the Web of Things @ WoT2011 (20)

Paraimpu @ WWW 2012
Paraimpu @ WWW 2012Paraimpu @ WWW 2012
Paraimpu @ WWW 2012
 
Summer Social Webshop: Technology-Mediated Social Participation
Summer Social Webshop: Technology-Mediated Social ParticipationSummer Social Webshop: Technology-Mediated Social Participation
Summer Social Webshop: Technology-Mediated Social Participation
 
Nfais social discovery-v5
Nfais social discovery-v5Nfais social discovery-v5
Nfais social discovery-v5
 
Netnography online course part 1 of 3 17 november 2016
Netnography online course part 1 of 3 17 november 2016Netnography online course part 1 of 3 17 november 2016
Netnography online course part 1 of 3 17 november 2016
 
How libraries can survive in the new media ecosystem
How libraries can survive in the new media ecosystemHow libraries can survive in the new media ecosystem
How libraries can survive in the new media ecosystem
 
How libraries can servive in the new media ecosystem
How libraries can servive in the new media ecosystemHow libraries can servive in the new media ecosystem
How libraries can servive in the new media ecosystem
 
How libraries can survive in the new media ecosystem 14/1-2009
How libraries can survive in the new media ecosystem 14/1-2009How libraries can survive in the new media ecosystem 14/1-2009
How libraries can survive in the new media ecosystem 14/1-2009
 
On community-standards, data curation and scholarly communication - BITS, Ita...
On community-standards, data curation and scholarly communication - BITS, Ita...On community-standards, data curation and scholarly communication - BITS, Ita...
On community-standards, data curation and scholarly communication - BITS, Ita...
 
Citizen Sensing, Social Media Analytics, and Applications
Citizen Sensing, Social Media Analytics, and ApplicationsCitizen Sensing, Social Media Analytics, and Applications
Citizen Sensing, Social Media Analytics, and Applications
 
New Media, New Ethics - ICA 2012
New Media, New Ethics - ICA 2012New Media, New Ethics - ICA 2012
New Media, New Ethics - ICA 2012
 
Data Science For Social Good: Tackling the Challenge of Homelessness
Data Science For Social Good: Tackling the Challenge of HomelessnessData Science For Social Good: Tackling the Challenge of Homelessness
Data Science For Social Good: Tackling the Challenge of Homelessness
 
Introduction to information literacy part 1
Introduction to information literacy part 1Introduction to information literacy part 1
Introduction to information literacy part 1
 
Using Social Media to Leverage Triple Helix Insights in Innovation Ecosystems
Using Social Media to Leverage Triple Helix Insights in Innovation EcosystemsUsing Social Media to Leverage Triple Helix Insights in Innovation Ecosystems
Using Social Media to Leverage Triple Helix Insights in Innovation Ecosystems
 
The Thinking Behind Big Data at the NIH
The Thinking Behind Big Data at the NIHThe Thinking Behind Big Data at the NIH
The Thinking Behind Big Data at the NIH
 
Running head INTERNET1INTERNET3Interne.docx
Running head INTERNET1INTERNET3Interne.docxRunning head INTERNET1INTERNET3Interne.docx
Running head INTERNET1INTERNET3Interne.docx
 
How to Execute A Research Paper
How to Execute A Research PaperHow to Execute A Research Paper
How to Execute A Research Paper
 
Future of the Internet - National Geographic - Digital Capital Week
Future of the Internet - National Geographic - Digital Capital WeekFuture of the Internet - National Geographic - Digital Capital Week
Future of the Internet - National Geographic - Digital Capital Week
 
Developing Staff Competencies in Emerging Technologies
Developing Staff Competencies in Emerging TechnologiesDeveloping Staff Competencies in Emerging Technologies
Developing Staff Competencies in Emerging Technologies
 
Mind the Gap: Reflections on Data Policies and Practice
Mind the Gap: Reflections on Data Policies and PracticeMind the Gap: Reflections on Data Policies and Practice
Mind the Gap: Reflections on Data Policies and Practice
 
Netnography webinar
Netnography webinarNetnography webinar
Netnography webinar
 

Mais de Antonio Pintus

Un mare di oggetti in comunicazione tra loro (c'era una volta il Web)
Un mare di oggetti in comunicazione tra loro (c'era una volta il Web)Un mare di oggetti in comunicazione tra loro (c'era una volta il Web)
Un mare di oggetti in comunicazione tra loro (c'era una volta il Web)
Antonio Pintus
 

Mais de Antonio Pintus (14)

Internet of Things, a che punto siamo?
Internet of Things, a che punto siamo?Internet of Things, a che punto siamo?
Internet of Things, a che punto siamo?
 
Humanizing the Internet of Things
Humanizing the Internet of ThingsHumanizing the Internet of Things
Humanizing the Internet of Things
 
Introduzione all'Internet of Things
Introduzione all'Internet of ThingsIntroduzione all'Internet of Things
Introduzione all'Internet of Things
 
Paraimpu @ Tiscali Open Campus
Paraimpu @ Tiscali Open CampusParaimpu @ Tiscali Open Campus
Paraimpu @ Tiscali Open Campus
 
Internet of Things & Paraimpu
Internet of Things & ParaimpuInternet of Things & Paraimpu
Internet of Things & Paraimpu
 
Paraimpu @ World Wide Rome
Paraimpu @ World Wide RomeParaimpu @ World Wide Rome
Paraimpu @ World Wide Rome
 
Paraimpu PechaKucha Night Cagliari #02
Paraimpu PechaKucha Night Cagliari #02Paraimpu PechaKucha Night Cagliari #02
Paraimpu PechaKucha Night Cagliari #02
 
MongoDB: a gentle, friendly overview
MongoDB: a gentle, friendly overviewMongoDB: a gentle, friendly overview
MongoDB: a gentle, friendly overview
 
Paraimpu: a social tool for the Web of Things
Paraimpu: a social tool for the Web of ThingsParaimpu: a social tool for the Web of Things
Paraimpu: a social tool for the Web of Things
 
Paraimpu: un social tool per il Web of Things
Paraimpu: un social tool per il Web of ThingsParaimpu: un social tool per il Web of Things
Paraimpu: un social tool per il Web of Things
 
Un mare di oggetti in comunicazione tra loro (c'era una volta il Web)
Un mare di oggetti in comunicazione tra loro (c'era una volta il Web)Un mare di oggetti in comunicazione tra loro (c'era una volta il Web)
Un mare di oggetti in comunicazione tra loro (c'era una volta il Web)
 
Connecting Smart Things through Web services Orchestrations
Connecting Smart Things through Web services OrchestrationsConnecting Smart Things through Web services Orchestrations
Connecting Smart Things through Web services Orchestrations
 
Parliamo di SOA
Parliamo di SOAParliamo di SOA
Parliamo di SOA
 
Building a complete SOA application with NetBeans 5.5
Building a complete SOA application with NetBeans 5.5Building a complete SOA application with NetBeans 5.5
Building a complete SOA application with NetBeans 5.5
 

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

Paraimpu: a social tool for the Web of Things @ WoT2011

  • 1. The anatomy of a large scale Social Web for Internet enabled Object Antonio Pintus Davide Carboni Andrea Piras CRS4 WoT 2011 - June 2011 - San Francisco, CA, USA Antonio Pintus - pintux@crs4.it Davide Carboni - dcarboni@crs4.it Andrea Piras - piras@crs4.it 1
  • 2. Who, where... • Antonio Pintus and Davide Carboni and Andrea Piras • ICT - LBS Group @ CRS4, an interdisciplinary applied research center based in Pula (Cagliari), SARDINIA, Italy 2 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 3. The Web of Things • In the Web of Things (WoT) vision, things are connected to a pervasive wireless/wired network and can communicate with other objects and services using HTTP-based protocols • Everyday surrounding objects (phones, domestic appliances, advertisement billboards, musical instruments,... ) become nodes of the WoT • Web-enabled objects are available on the market just now! 3 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 4. part #1 Our Vision Ph. http://www.flickr.com/photos/salendron/ 4 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 5. Vision: a Social Web of Things /1 #1: connecting Things to the Web must be simple - simple to “plug” - simple to con gure - simple to manage - Web-based UX Ph. Nigel Marshall, http://www.flickr.com/photos/nige_mar/ 5 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 6. Vision: a Social Web of Things /2 • #2: not only “physical” Things but also “virtual” ones –social networks, Web sites, feeds, APIs, ... 6 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 7. Vision: a Social Web of Things /3 #3: interconnecting Things in the Web must be simple - including “physical” and “virtual” Things - data adapting / transformation Ph. John Thurm, http://www.flickr.com/photos/thurm 7 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 8. Vision: a Social Web of Things /4 #4: Social /1: existing social networks become connectable Things - Authentication facilities, friends/contacts import Ph. Nigel Marshall, http://www.flickr.com/photos/nige_mar/ 8 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 9. Vision: a Social Web of Things /5 Ph. Ryan Roberts http://www.flickr.com/photos/ryanr #5: Social /2: Share your Things with friends! 9 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 10. Things Sharing – Things sharing: • it should be possible to share a Thing with friends and let them use it in their connections (according to a de ned policy: public, open, moderated) • sharing objects goes toward a “collaborative consumption” as shaped by the authors of the book What’s mine is yours* * What's Mine Is Yours: The Rise of Collaborative Consumption, Rachel Botsman and Roo Rogers . Harperbusiness, http://www.collaborativeconsumption.com/ 10 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 11. The Model: 4 basic abstractions - Services: - Sensors - Actuators - Connections Ph. Windell Oskay http://www.flickr.com/photos/oskay/265899865/ 11 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 12. Services: Sensors - every Thing capable to produce data - using HTTP - anemometers, Arduino boards, but also Foursquare, Pachube, other services in the Web... Ph. Windell Oskay http://www.flickr.com/photos/oskay/ 12 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 13. Services: Actuators - every Thing capable to receive/ consume data and to perfom an action - using HTTP - lighting systems, Arduino, Chumby, Karotz, but also Twitter, Facebook, other applications... Ph. Dieter Drescher http://www.flickr.com/photos/cosmosfan 13 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 14. Connections - between two Services: - a Sensor as the source - an Actuator as the destination - they are con gurable: - data ltering - data mapping Ph. supermaryan http://www.flickr.com/photos/33975256@N06/ 14 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 15. problems: architecture & scalability • Scalability – What happens when the number of users grows? – What happens when thousands of things are added? – What happens when thousands of near real-time data have to be managed? – System MUST be scalable by design! 15 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 16. problems: architecture & scalability Web-based Architecture WS-* or REST Web server Load balancing Horizontal Scalability C10K problem Database ? New Sensors/Actuators Ph. MrFaber, http://www.flickr.com/photos/mrfaber 16 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 17. part #2 Architectural & Design Choices Ph. Jaime Silva, http://www.flickr.com/photos/20792787@N00/ 17 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 18. WS-* or REST? • in many cases adopting a WS-* stack is too complex: WSDL, SOAP over HTTP, ... • often, we’re talking about (limited) physical digital Things • we’ve chosen REST as architectural style: » Things, connections, data, users, ..., are REST resources » simpler, exible, “mashable”, APIs 18 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 19. Data persistence: SQL or NoSQL? • Considering: – high data heterogeneity: DB schema exibility required – database scalability across distributed systems – data partitioning & data replication • We’ve chosen a NoSQL DB: » no xed schemas, no tables, no relations » high concurrent read-write, scalability, auto- sharding » JSON native format 19 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 20. Web server, Web front-end • Full Web-based system • C10K problem: 10,000 simultaneous open standing HTTP connections (clients) • Horizontal scalability: add new server instances when required • Load balancing/reverse proxy 20 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 21. Things Connections • data transfers between DB-based queues • data adaptation performed by system processes • data adaptation rules de ned by users for each owned connection 21 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 22. Data adaptation: lters • a Filter is a boolean expression evaluated against data coming from a Sensor –using Javascript as expression language » sensor > 12 » sensor. eld == ‘mylabel’ » sensor.data >20 && sensor.type == ‘temp’ » ... 22 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 23. Data adaptation: mappings • Mappings are couple of expressions: (cond, repl) • cond : a boolean expression evaluated against Sensor data (same as for lters) • repl : an expression producing a data value to be forwarded to the Actuator when cond is true 23 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 24. Mappings, examples – Javascript as expression language Sensor data CONDITION REPLACE Actuator data type type numeric sensor > 30 <% sensor * 3.14 / 100 %> numeric Summer is coming, temperature is: numeric sensor > 25 text <% sensor %> °C Data is <% sensor.data %> JSON sensor.data > 30 text and type is <% sensor.type %> <?xml version="1.0" encoding="UTF-8"?> sensor.A0 > 30 && <value> JSON XML sensor.A5 <= 10 <% sensor.A0 * 100 %> </value> 24 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 25. Paraimpu • is a Web-based social tool • allows people to: – connect, use, share and compose Things, services and devices to create personalized WoT applications 25 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 26. General Architecture Load balancing Web front-end scalability System processes (back- end) scalability DB scalability 26 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 27. Paraimpu: the workspace 27 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 28. Current version • ~ 50 active alpha users • Palette: • 5 ready-to-use Sensors + 1 generic Sensor • 7 ready-to-use Actuators + 1 generic Actuator • Sharing policy: (private), public, open, moderated • Noti cation system between users for Things sharing 28 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 29. Technologies • Architecture mainly written in Python • Web stack based on Tornado Web server • NoSQL DBMS (MongoDB) • HTML+jQuery 29 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 30. Conclusion • We believe that a social Web of Things can help in its diffusion... • Results are encouraging: alpha users are helping us in testing and improving the system • More and better test beds are under de nition to prove system scalability in each of its critical aspects • We’re working hard to add new features and new ready-to-use, easy-con guration, components and Things 30 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 31. The prototype http://paraimpu.crs4.it twitter: @paraimpu 31 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 32. Contacts • Antonio Pintus, pintux@crs4.it, twitter: @apintux • Davide Carboni, dcarboni@crs4.it • Andrea Piras, piras@crs4.it • LBS group @ CRS4: http://geoweb.crs4.it/ • CRS4 Home Page: http://www.crs4.it 32 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA
  • 33. Q&A Thank you for your attention 33 Antonio Pintus, Davide Carboni, Andrea Piras WoT2011 - June 2011- San Francisco, CA, USA