SlideShare a Scribd company logo
1 of 33
Download to read 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.ļ¬‚ickr.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.ļ¬‚ickr.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.ļ¬‚ickr.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.ļ¬‚ickr.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.ļ¬‚ickr.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.ļ¬‚ickr.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 diļ¬€usion...

ā€¢ 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

More Related Content

What's hot

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

What's hot (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
Ā 

Viewers also liked

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
Ā 

Viewers also liked (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
Ā 

Similar to 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
Ā 

Similar to 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
Ā 

More from 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
Ā 

More from 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
Ā 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
Ā 

Recently uploaded (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Ā 
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
Ā 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Ā 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Ā 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
Ā 
šŸ¬ The future of MySQL is Postgres šŸ˜
šŸ¬  The future of MySQL is Postgres   šŸ˜šŸ¬  The future of MySQL is Postgres   šŸ˜
šŸ¬ The future of MySQL is Postgres šŸ˜
Ā 
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, ...
Ā 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Ā 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Ā 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Ā 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
Ā 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Ā 
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
Ā 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Ā 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Ā 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
Ā 
Scaling API-first ā€“ The story of a global engineering organization
Scaling API-first ā€“ The story of a global engineering organizationScaling API-first ā€“ The story of a global engineering organization
Scaling API-first ā€“ The story of a global engineering organization
Ā 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Ā 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
Ā 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Ā 

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.ļ¬‚ickr.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.ļ¬‚ickr.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.ļ¬‚ickr.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.ļ¬‚ickr.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.ļ¬‚ickr.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.ļ¬‚ickr.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 diļ¬€usion... ā€¢ 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