SlideShare uma empresa Scribd logo
1 de 206
webhooks        jeff lindsay




pro tip: @progrium for questions
webhooks        jeff lindsay




pro tip: @progrium for questions
superglue
WEBHOOKS
 AND   THE


FUTURE
OF THE WEB
web•hooks |ˈwebˌhoŏks|
  pattern of enabling user-defined callbacks
  in web applications
problem
 solution
  examples
    implementation
         inspiration
               future
problem?
‣ notifications
‣ data syncing
‣ chaining
‣ modification
‣ plugins
‣ notifications
‣ data syncing
‣ chaining
‣ modification
‣ plugins
‣ notifications   “I wish I could get
                 notifications exactly
‣ data syncing   how I want.”
‣ chaining
‣ modification
‣ plugins
‣ notifications
‣ data syncing   “I wish my web apps
                 would keep overlapping
‣ chaining       data in sync.”
‣ modification
‣ plugins
‣ notifications
‣ data syncing
‣ chaining       “I wish I could make
                 another app do something
‣ modification    when I use this app.”
‣ plugins
‣ notifications
‣ data syncing
‣ chaining
‣ modification    “I wish I could make
‣ plugins        this app work just
                 slightly differently.”
‣ notifications
‣ data syncing
‣ chaining
‣ modification
                 “I wish I could let my
‣ plugins        users extend/build
                 plugins for my app.”
}
‣ notifications
‣ data syncing
‣ chaining           programmability
‣ modification
‣ plugins
WEBHOOKS
WEBHOOKS

       Huh?
web•hooks |ˈwebˌhoŏks|
  pattern of enabling user-defined callbacks
  in web applications
us•er |ˈyoōzər|
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library
                               ƒ(x) ƒ(x)
      ƒ(x)            ƒ(x)       ƒ(x)


         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)
                               Library

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                       ƒ(x)
“In computer programming, hooking is
a technique used to alter or augment the
behavior of [a program], often without
having access to its source code.”
webhooks origin
subversion hooks

                repository
working copy


                    foo
subversion hooks

                repository
working copy


    foo             foo
subversion hooks

     repository




         foo
subversion hooks

           repository




bar            foo
subversion hooks

           repository




bar            foo
subversion hooks

           repository




bar            bar
subversion hooks

     repository
      pre-commit




          foo       bar




      post-commit
subversion hooks

     repository
      pre-commit




          foo       bar




      post-commit
subversion hooks
Does this user have
                        repository
   permission?

                         pre-commit
Is this change valid?



                             foo       bar




                         post-commit
subversion hooks

     repository
      pre-commit




          foo       bar




      post-commit
subversion hooks

     repository
      pre-commit




          bar       bar




      post-commit
subversion hooks

                       repository
                        pre-commit




                            bar       bar


Send a notice to IRC

                        post-commit
  Try to build the
      project
subversion hooks

           repository




bar            bar
subversion hooks

                          repository
A new change was
committed by Jeff.




       bar                    bar
subversion hooks

                       repository




     bar                   bar




   Damn it Jeff,
you broke the build!
paypal ipn
paypal ipn
paypal ipn
webhooks
SO SIMPLE YOUʼLL THINK ITʼS STUPID
webhooks anatomy



         web app
webhooks anatomy



         web app

                   db
webhooks anatomy


        ui

         web app

                   db
webhooks anatomy


        ui

         web app

                   db
webhooks anatomy


        ui

         web app
        event
        event
                   db
        event
webhooks anatomy


        ui      api

         web app
        event
        event
                   db
        event
webhooks anatomy


        ui      api

         web app
        event
        event
                   db
        event
webhooks anatomy


        ui      api

         web app
        event
        event
                   db
        event
webhooks anatomy


           ui      api

           web app
           event
           event
                     db
           event
callback
webhooks anatomy


               ui      api

               web app
               event
               event
                         db
               event
    callback
webhooks anatomy


        ui      api

         web app
        event
        event
                   db
        event
webhooks anatomy
webhooks anatomy




callback
webhooks anatomy




callback
webhooks anatomy




callback
webhooks anatomy




callback
webhooks anatomy




callback
examples
DEPLOY
PUSH
Hey guys, pull.
k
DEPLOY
PUSH
Hey guys, pull.
k
DEPLOY
Hooks?
http://myserver.com/script
http://myserver.com/script




   R
   ISTE
REG
PUSH
PUSH
Hey guys, pull.
k
OY
   PL
 E
D
1. define achievements here
2. add trigger pings to your backend
3. paste javascript into your layout
not done yet, but...




   QUESTIONS?
more examples
ecommerce



project hosting



notifications



plugins / platform
more examples
ecommerce



project hosting



notifications



plugins / platform
more examples
ecommerce



project hosting



notifications



plugins / platform
more examples
ecommerce



project hosting



notifications



plugins / platform
more examples
ecommerce



project hosting



notifications



plugins / platform
more examples
ecommerce



project hosting



notifications



plugins / platform
payoff               notifications
                     data syncing
 FOR THE DEVELOPER
                     chaining
                     modifications
                     plugins
payoff               notifications
                     data syncing
 FOR THE DEVELOPER
                     chaining
                     modifications
                     plugins
payoff               notifications
                     data syncing
 FOR THE DEVELOPER
                     chaining
                     modifications
                     plugins
payoff               notifications
                     data syncing
 FOR THE DEVELOPER
                     chaining
                     modifications
                     plugins
payoff               notifications
                     data syncing
 FOR THE DEVELOPER
                     chaining
                     modifications
                     plugins
payoff               notifications
                     data syncing
 FOR THE DEVELOPER
                     chaining
                     modifications
                     plugins

                     one, simple solution
how to implement
1. design callback channels

  per noun     or   per verb on noun
     wiki              crud?
     project           install/uninstall
     account           pre-commit/post-commit
     plugin




               vs
2. create registration method

 web ui      or    api




            both? :)
3. choose payload format

  POST parameters


  JSON


  XML
4. add trigger code to events
5. consider these options

    queuing posts
      HMAC
        verification
          retry
             return data
                 filtering
ecosystem
protocol-droid
protocol-droid


    coming soon...
inspiration
Todos

        Basecamp
Hey, there’s an
event hook here!
Save
future
what to expect from webhooks
what to expect from webhooks


            sharing
what to expect from webhooks


                     sharing

   standardization
what to expect from webhooks


                     sharing

   standardization
what to expect from webhooks


                     sharing

   standardization




                tools
what to expect from webhooks


                     sharing

   standardization
                               integration



                tools
what to expect from webhooks


                     sharing

   standardization
                               integration



                tools
what to expect from webhooks
web of things
embedded devices are getting
more powerful and connected
web of things

 “API for everything”
programming literacy
  As programming becomes more important, it
  will leave the back room and become a key
  skill and attribute of our top intellectual and
  social classes, just as reading and writing did
  in the past.
                               Marc Prensky
program the world

   cloud computing
           +
                         == near real “magic”
     web of things
           +
easier programmability
use webhooks!

   join the community
   http://webhooks.org
ok, itʼs over...




  QUESTIONS?

Mais conteúdo relacionado

Mais de Jeff Lindsay

Hacker Dojo Origins
Hacker Dojo OriginsHacker Dojo Origins
Hacker Dojo OriginsJeff Lindsay
 
APIs That Make Things Happen
APIs That Make Things HappenAPIs That Make Things Happen
APIs That Make Things HappenJeff Lindsay
 
WebHooks in 10 Minutes
WebHooks in 10 MinutesWebHooks in 10 Minutes
WebHooks in 10 MinutesJeff Lindsay
 
Hacker Dojo @ Google
Hacker Dojo @ GoogleHacker Dojo @ Google
Hacker Dojo @ GoogleJeff Lindsay
 
How WebHooks Will Make Us All Programmers
How WebHooks Will Make Us All ProgrammersHow WebHooks Will Make Us All Programmers
How WebHooks Will Make Us All ProgrammersJeff Lindsay
 
Creating + Nurturing Your Indie Game Community
Creating + Nurturing Your Indie Game CommunityCreating + Nurturing Your Indie Game Community
Creating + Nurturing Your Indie Game CommunityJeff Lindsay
 
Dissolving Problems
Dissolving ProblemsDissolving Problems
Dissolving ProblemsJeff Lindsay
 
SHDH Retrospective, Part 2
SHDH Retrospective, Part 2SHDH Retrospective, Part 2
SHDH Retrospective, Part 2Jeff Lindsay
 
SHDH Retrospective, Part 1
SHDH Retrospective, Part 1SHDH Retrospective, Part 1
SHDH Retrospective, Part 1Jeff Lindsay
 
Web Hooks Google Tech Talk
Web Hooks Google Tech TalkWeb Hooks Google Tech Talk
Web Hooks Google Tech TalkJeff Lindsay
 
Beyond Mashups: Service Integration and More
Beyond Mashups: Service Integration and MoreBeyond Mashups: Service Integration and More
Beyond Mashups: Service Integration and MoreJeff Lindsay
 
Web Hooks and the Programmable World of Tomorrow
Web Hooks and the Programmable World of TomorrowWeb Hooks and the Programmable World of Tomorrow
Web Hooks and the Programmable World of TomorrowJeff Lindsay
 

Mais de Jeff Lindsay (14)

Hacker Dojo Origins
Hacker Dojo OriginsHacker Dojo Origins
Hacker Dojo Origins
 
Dinos
DinosDinos
Dinos
 
APIs That Make Things Happen
APIs That Make Things HappenAPIs That Make Things Happen
APIs That Make Things Happen
 
WebHooks in 10 Minutes
WebHooks in 10 MinutesWebHooks in 10 Minutes
WebHooks in 10 Minutes
 
Hacker Dojo @ Google
Hacker Dojo @ GoogleHacker Dojo @ Google
Hacker Dojo @ Google
 
How WebHooks Will Make Us All Programmers
How WebHooks Will Make Us All ProgrammersHow WebHooks Will Make Us All Programmers
How WebHooks Will Make Us All Programmers
 
Creating + Nurturing Your Indie Game Community
Creating + Nurturing Your Indie Game CommunityCreating + Nurturing Your Indie Game Community
Creating + Nurturing Your Indie Game Community
 
Dissolving Problems
Dissolving ProblemsDissolving Problems
Dissolving Problems
 
SHDH Retrospective, Part 2
SHDH Retrospective, Part 2SHDH Retrospective, Part 2
SHDH Retrospective, Part 2
 
SHDH Retrospective, Part 1
SHDH Retrospective, Part 1SHDH Retrospective, Part 1
SHDH Retrospective, Part 1
 
Web Hooks Google Tech Talk
Web Hooks Google Tech TalkWeb Hooks Google Tech Talk
Web Hooks Google Tech Talk
 
Beyond Mashups: Service Integration and More
Beyond Mashups: Service Integration and MoreBeyond Mashups: Service Integration and More
Beyond Mashups: Service Integration and More
 
Web Hooks and the Programmable World of Tomorrow
Web Hooks and the Programmable World of TomorrowWeb Hooks and the Programmable World of Tomorrow
Web Hooks and the Programmable World of Tomorrow
 
Web Hooks
Web HooksWeb Hooks
Web Hooks
 

Último

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
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...Martijn de Jong
 
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 WorkerThousandEyes
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
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 AutomationSafe Software
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
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.pdfUK Journal
 
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 2024The Digital Insurer
 
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 Takeoffsammart93
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 

Último (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
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...
 
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
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
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
 
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
 
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
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 

Superglue: Web Hooks and the Future of the Web

Notas do Editor

  1. me: nasa, hacker dojo, web hooks questions on twitter
  2. perhaps a pretentious title, i’ve called this superglue. the point of webhooks is to really get web app connecting in a way that’s not possible with REST or soap api’s alone
  3. if that wasn’t pretentious enough ... although it’s really about webhooks, then future. webhooks may be the future of the web, but just a small part.
  4. so just to jumpstart things. here’s what they are. i’ll be explaining this and the reason i’m here evangelizing this idea
  5. in reality, webhooks aren’t the glue. they’re the bottle the glue comes in. we’ll come back to this, but think about that... so what are people saying about webhooks? i watch webhooks on twitter search...
  6. lightning bolts of cloud computing.
  7. tim bray just says they’re the next big thing.
  8. i don’t know how this started. it had nothing to do with my talk titles...
  9. this guy’s not so sure.
  10. and then there’s this guy. apparently he’s french.
  11. this is what my talk is going to feel like. i’m going to talk about...
  12. before we get to what they are... what problem do they solve? people haven’t been asking for them, so what’s the point?
  13. like a good engineer i came up with the problems after the solution. like a good programmer i came up with a solution that is very generalized and can be used for lots of stuff. these are the rough problems that webhooks solve, most of which haven’t been done well or much at all on the web.
  14. notifications are the big pull these days. which is cool i suppose. but really just the tip of the iceberg
  15. i use three web applications that have “projects.” i use them all for slightly different things, but none of them share data. twitter to facebook updates is sort of the same thing. both are updates, i like both apps. they should just be about the same data.
  16. this is like the pipes for the web metaphor. this is about composing a system of applications to do more than the parts individually.
  17. there is no open source equivalent for the concept of a SaaS. we don’t have the freedom to change code for things we use in the cloud. think of how many lame projects this would eliminate: “it’s like twitter, but it does INSERT MINOR IMPROVEMENT” what if you could just make it do that? this was brought up during one of the last breakout sessions: what do you do if a service doesn’t do what you want?
  18. the most popular desktop apps we use: office, firefox, itunes, photoshop... even cult favorites like quicksilver, winamp, vlc... they all have plugins. how many web apps do you know with plugins?
  19. to me, these ARE all part of the same problem. the web is not programmable enough. programmable web is a misnomer. programmatic web. and if people do try to solve these problems, they reinvent for each one... just lay proper infrastructure.
  20. aaron fulkerson, web oriented architecture. rest + web said things like “extend” “compose” “bootstrap development”. certainly the dream. mashups aggregate, they don’t integrate.
  21. socialcast, tim young pivotal tracker 2-way integration. could be done without socialcast... could also make socialcast extendable via CODE. programmability...
  22. but obviously... we need webhooks. right?
  23. we know what web apps are... callbacks is a bit curious--wait user defined? like end users?
  24. i think of three classes of users. developers, power users, machines, and average users. so far, web hooks are for developers, but part of all this is about bridging the gap between their power and the average user. for the moment, we mostly talk about the first two here
  25. flow through functions
  26. flow through functions
  27. flow through functions
  28. flow through functions
  29. flow through functions
  30. flow through functions
  31. flow through functions
  32. compelx. use libraries. they have functions, but they’re black boxes
  33. compelx. use libraries. they have functions, but they’re black boxes
  34. we use them like black boxes most of the time
  35. we use them like black boxes most of the time
  36. we use them like black boxes most of the time
  37. we use them like black boxes most of the time
  38. we use them like black boxes most of the time
  39. we use them like black boxes most of the time
  40. unless they have callbacks. here we can modify their behavior! this is also called hooking
  41. unless they have callbacks. here we can modify their behavior! this is also called hooking
  42. unless they have callbacks. here we can modify their behavior! this is also called hooking
  43. unless they have callbacks. here we can modify their behavior! this is also called hooking
  44. unless they have callbacks. here we can modify their behavior! this is also called hooking
  45. unless they have callbacks. here we can modify their behavior! this is also called hooking
  46. unless they have callbacks. here we can modify their behavior! this is also called hooking
  47. unless they have callbacks. here we can modify their behavior! this is also called hooking
  48. unless they have callbacks. here we can modify their behavior! this is also called hooking
  49. unless they have callbacks. here we can modify their behavior! this is also called hooking
  50. devjavu, paypal ... before functional programming even?
  51. look at those extra files in the repo!
  52. code can do anything
  53. all transparent. only see the effects
  54. maybe later this
  55. ipn is a webhook. started as just a real-time ping of a payment, but more events came up...
  56. including events that didn’t involve a user at all. ex: subscription payment failed
  57. simple. register a callback url.
  58. used that to expose svn hooks in devjavu.
  59. simple. too simple? heard disappointment after discovering it was HTTP POST.
  60. came up with this tongue in cheek tagline. but simple isn’t bad. it’s usually great.
  61. simple mechanics, if done right, yield rich, emergent dynamics.
  62. so here’s a regular web app.
  63. so here’s a regular web app.
  64. so here’s a regular web app.
  65. so here’s a regular web app.
  66. so here’s a regular web app.
  67. so here’s a regular web app.
  68. just have the events, stuff your code already does, trigger a callback url using POST. the user will have a callback...
  69. ..registers with you... and now it gets run when events happen
  70. all the app needs to know is its a url. it shouldn’t care about much else.
  71. so what is the callback? it’s just something to handle the post data. cheap php hosting, app engine, appjet, scriptlets... because it’s just a url that runs cgi, it can be any language on any machine...
  72. so what is the callback? it’s just something to handle the post data. cheap php hosting, app engine, appjet, scriptlets... because it’s just a url that runs cgi, it can be any language on any machine...
  73. so what is the callback? it’s just something to handle the post data. cheap php hosting, app engine, appjet, scriptlets... because it’s just a url that runs cgi, it can be any language on any machine...
  74. so what is the callback? it’s just something to handle the post data. cheap php hosting, app engine, appjet, scriptlets... because it’s just a url that runs cgi, it can be any language on any machine...
  75. so what is the callback? it’s just something to handle the post data. cheap php hosting, app engine, appjet, scriptlets... because it’s just a url that runs cgi, it can be any language on any machine...
  76. jon is building a web app. writes code, deploys to server.
  77. jon starts working with a team
  78. jon starts working with a team
  79. jon starts working with a team
  80. jon starts working with a team
  81. jon starts working with a team
  82. jon starts working with a team
  83. jon starts working with a team
  84. jon starts working with a team
  85. gets repetitive
  86. puts a script on his server
  87. registers it as a callback on github for post-recieve
  88. as he pushes, it runs the script
  89. as he pushes, it runs the script
  90. automates his previous manual announcement
  91. and even...
  92. deploys to itself automatically. all he has to do is write code and push. could take it further, he owns the script... maybe testing before deploy?
  93. the issue is that while interacting with amazon, the user picks options that could affect shipping, promotion discounts, and taxes. needs to call out back to you (the store owner) to calculate these.
  94. here’s what they look like. just post params, key value pairs. you can see what i did. they trigger on a lot of events. like login...
  95. verticals: ecommerce
  96. another big vertical
  97. more of a particular use case
  98. more of a particular use case
  99. this is another use case, but varies a lot in details
  100. this is another use case, but varies a lot in details
  101. let users decide how they will be notified
  102. let users manage data from where they want
  103. let users use your app as part of a system
  104. let users tweak your app to their needs
  105. let users build new functionality for your app. user contributed functionality...
  106. This is real value: empowering your users to do more with your app than what you created it for... with one, simple mechanism
  107. observer pattern: subscribe to subjects
  108. getpingd, Fethr
  109. as a user (power user or otherwise), all hookable apps are part of the ecosystem. and part of this new programmable web includes all the existing apis and services
  110. scrobbld is an example of a webhook consumer made specifically for paypal ipn. really quite amazing they extended paypal without using their api... just ipn. this is really more of a mashup and doesn’t necessarily show the power of webhooks
  111. here we get into chaining or piping. runcoderun is a webhook consumer for github. they run your tests automatically when you push to github.
  112. this is more general and infrastructural. it’s a webhook router that was a side project of some awesome guys in the uk. input/output handlers... github style extending...
  113. cloud code hosting/running is a major part of this infrastructure. you say webhooks needs a server? we’re abstracting servers away with the cloud... i envisioned a service like this 3 years ago, but it was more like this...
  114. more like a pastebin. super simple. write web code, hit save, get a url to run it. made for hook scripts, but is good for lots of little tools. looking for a generic form poster tool, so i tweeted it
  115. and an hour later somebody made it for me.... using scriptlets.
  116. like i said, all existing apis are part of this infrastructure. you use these apis from hook scripts ... and you can do almost anything these days. order pizza, make phone calls, ship stuff from a warehouse...
  117. hookah is a tool that tries to abstract away some of the details of implementing webhooks. it’s like the smtp daemon of webhooks.
  118. in code in the cloud environments, you usually are limited to web requests for obvious reasons. protocol droid is going to get around that.
  119. this makes working with email mailboxes way easier in the context of the web
  120. it’s neat to see it in netnewswire. looks like mail.app point is to make more protocols easier to work with from web scripts in fairly limited environments... because there will be more of them as the cloud grows
  121. do my own parsing on tasks... extend natural language, or add special codes
  122. for example, all these apps share data about todos. they each have respective specialized talents, but all work with todos. by putting hooks on todo CRUD, you can use their apis to keep them synced pretty well. magically. real-time.
  123. could use hooks to help with their magic, maybe... but could also use them to let people contribute connectors... reference github
  124. monitoring hooks. run some code to restart your server if the site is down?
  125. one thing i’ve been working on is an extension to integrate these ideas.
  126. by detecting some markup in a page, it discovers hooks. like say for new photos from contacts. you want to do something when that happens, click it
  127. and write some code. hit save, it posts to AppJet (or wherever), registers the handler (assuming a standard protocol), and done. all inline. go back and change the code. SCRIPTLETS API
  128. also “why am i doing this?”
  129. botanicalls, camera with webhooks
  130. Any sufficiently advanced technology is indistinguishable from magic.
  131. the glue is code... programming. it always will be. webhooks make the web more programmable
  132. programmability, webhooks: user-defined callbacks over http, github, amazon, google, paypal, pbworks, big and little... simple implementation with a growing ecosystem of tools to make it easier and more valuable some ideas of creative what-ifs, and why i’m doing this, why i want programmability
  133. comes back to that dream to “extend” “compose” “bootstrap development”. obviously enterprise is a big deal, startups its a big deal. somebody it will be people. end users WILL learn to do amazing things if the infrastructure is there...