SlideShare a Scribd company logo
1 of 188
webhooks
    jeff lindsay
WEBHOOKS
 AND   THE


FUTURE
OF THE WEB
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
‣ modification    another app do
‣ plugins        something when I use
                 this app.”
‣ notifications
‣ data syncing
‣ chaining
‣ modification    “I wish I could make
‣ plugins        this app work just
                 slightly differently.”
‣ notifications
‣ data syncing
‣ chaining
‣ modification
‣ plugins        “I wish I could let my
                 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|
call•back |ˈkôlˌbak|
     Program
                        ƒ(x)
       ƒ(x)
               ƒ(x)

      ƒ(x)            ƒ(x)

         ƒ(x)
                        ƒ(x)

                 ƒ(x)
       ƒ(x)
                        ƒ(x)
call•back |ˈkôlˌbak|
     Program
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
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
                     validation
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
problem
 solution
  examples
    implementation
         inspiration
               future
use webhooks!

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




  QUESTIONS?

More Related Content

What's hot

Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Ne...
Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Ne...Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Ne...
Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Ne...Tin Linn Soe
 
From Monolithic to Microservices
From Monolithic to Microservices From Monolithic to Microservices
From Monolithic to Microservices Amazon Web Services
 
Async API and Solace: Enabling the Event-Driven Future
Async API and Solace: Enabling the Event-Driven FutureAsync API and Solace: Enabling the Event-Driven Future
Async API and Solace: Enabling the Event-Driven FutureSolace
 
Kafka error handling patterns and best practices | Hemant Desale and Aruna Ka...
Kafka error handling patterns and best practices | Hemant Desale and Aruna Ka...Kafka error handling patterns and best practices | Hemant Desale and Aruna Ka...
Kafka error handling patterns and best practices | Hemant Desale and Aruna Ka...HostedbyConfluent
 
Cloud transformation and Evolution of Integration Patterns
Cloud transformation and Evolution of Integration PatternsCloud transformation and Evolution of Integration Patterns
Cloud transformation and Evolution of Integration PatternsSrikanth Prathipati
 
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...Angel Alberici
 
Event Driven Microservices architecture
Event Driven Microservices architectureEvent Driven Microservices architecture
Event Driven Microservices architectureNikhilBarthwal4
 
Introduction to Event-Driven Architecture
Introduction to Event-Driven Architecture Introduction to Event-Driven Architecture
Introduction to Event-Driven Architecture Solace
 
Understanding MicroSERVICE Architecture with Java & Spring Boot
Understanding MicroSERVICE Architecture with Java & Spring BootUnderstanding MicroSERVICE Architecture with Java & Spring Boot
Understanding MicroSERVICE Architecture with Java & Spring BootKashif Ali Siddiqui
 
Logic Apps and Azure Functions
Logic Apps and Azure FunctionsLogic Apps and Azure Functions
Logic Apps and Azure FunctionsDaniel Toomey
 
Confluent Operator as Cloud-Native Kafka Operator for Kubernetes
Confluent Operator as Cloud-Native Kafka Operator for KubernetesConfluent Operator as Cloud-Native Kafka Operator for Kubernetes
Confluent Operator as Cloud-Native Kafka Operator for KubernetesKai Wähner
 
Meetup - Automate your project lifecycle using MuleSoft and Azure DevOps
Meetup - Automate your project lifecycle using MuleSoft and Azure DevOpsMeetup - Automate your project lifecycle using MuleSoft and Azure DevOps
Meetup - Automate your project lifecycle using MuleSoft and Azure DevOpsRenato de Oliveira
 
0-60: Tesla's Streaming Data Platform ( Jesse Yates, Tesla) Kafka Summit SF 2019
0-60: Tesla's Streaming Data Platform ( Jesse Yates, Tesla) Kafka Summit SF 20190-60: Tesla's Streaming Data Platform ( Jesse Yates, Tesla) Kafka Summit SF 2019
0-60: Tesla's Streaming Data Platform ( Jesse Yates, Tesla) Kafka Summit SF 2019confluent
 
Service Mesh - Observability
Service Mesh - ObservabilityService Mesh - Observability
Service Mesh - ObservabilityAraf Karsh Hamid
 
Event Driven Architecture
Event Driven ArchitectureEvent Driven Architecture
Event Driven ArchitectureStefan Norberg
 
Reactive Applications with Apache Pulsar and Spring Boot
Reactive Applications with Apache Pulsar and Spring BootReactive Applications with Apache Pulsar and Spring Boot
Reactive Applications with Apache Pulsar and Spring BootVMware Tanzu
 

What's hot (20)

Prometheus monitoring
Prometheus monitoringPrometheus monitoring
Prometheus monitoring
 
AWS Cloud Assessment
AWS Cloud AssessmentAWS Cloud Assessment
AWS Cloud Assessment
 
Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Ne...
Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Ne...Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Ne...
Microservices Platform with Spring Boot, Spring Cloud Config, Spring Cloud Ne...
 
From Monolithic to Microservices
From Monolithic to Microservices From Monolithic to Microservices
From Monolithic to Microservices
 
Async API and Solace: Enabling the Event-Driven Future
Async API and Solace: Enabling the Event-Driven FutureAsync API and Solace: Enabling the Event-Driven Future
Async API and Solace: Enabling the Event-Driven Future
 
Kafka error handling patterns and best practices | Hemant Desale and Aruna Ka...
Kafka error handling patterns and best practices | Hemant Desale and Aruna Ka...Kafka error handling patterns and best practices | Hemant Desale and Aruna Ka...
Kafka error handling patterns and best practices | Hemant Desale and Aruna Ka...
 
Cloud transformation and Evolution of Integration Patterns
Cloud transformation and Evolution of Integration PatternsCloud transformation and Evolution of Integration Patterns
Cloud transformation and Evolution of Integration Patterns
 
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...
Operationalizing your C4E VirtualMuleys & Deployment Considerations: Cloudhub...
 
Event Driven Microservices architecture
Event Driven Microservices architectureEvent Driven Microservices architecture
Event Driven Microservices architecture
 
Introduction to Event-Driven Architecture
Introduction to Event-Driven Architecture Introduction to Event-Driven Architecture
Introduction to Event-Driven Architecture
 
Understanding MicroSERVICE Architecture with Java & Spring Boot
Understanding MicroSERVICE Architecture with Java & Spring BootUnderstanding MicroSERVICE Architecture with Java & Spring Boot
Understanding MicroSERVICE Architecture with Java & Spring Boot
 
DevOps Architecture Design
DevOps Architecture DesignDevOps Architecture Design
DevOps Architecture Design
 
Logic Apps and Azure Functions
Logic Apps and Azure FunctionsLogic Apps and Azure Functions
Logic Apps and Azure Functions
 
Api observability
Api observability Api observability
Api observability
 
Confluent Operator as Cloud-Native Kafka Operator for Kubernetes
Confluent Operator as Cloud-Native Kafka Operator for KubernetesConfluent Operator as Cloud-Native Kafka Operator for Kubernetes
Confluent Operator as Cloud-Native Kafka Operator for Kubernetes
 
Meetup - Automate your project lifecycle using MuleSoft and Azure DevOps
Meetup - Automate your project lifecycle using MuleSoft and Azure DevOpsMeetup - Automate your project lifecycle using MuleSoft and Azure DevOps
Meetup - Automate your project lifecycle using MuleSoft and Azure DevOps
 
0-60: Tesla's Streaming Data Platform ( Jesse Yates, Tesla) Kafka Summit SF 2019
0-60: Tesla's Streaming Data Platform ( Jesse Yates, Tesla) Kafka Summit SF 20190-60: Tesla's Streaming Data Platform ( Jesse Yates, Tesla) Kafka Summit SF 2019
0-60: Tesla's Streaming Data Platform ( Jesse Yates, Tesla) Kafka Summit SF 2019
 
Service Mesh - Observability
Service Mesh - ObservabilityService Mesh - Observability
Service Mesh - Observability
 
Event Driven Architecture
Event Driven ArchitectureEvent Driven Architecture
Event Driven Architecture
 
Reactive Applications with Apache Pulsar and Spring Boot
Reactive Applications with Apache Pulsar and Spring BootReactive Applications with Apache Pulsar and Spring Boot
Reactive Applications with Apache Pulsar and Spring Boot
 

More from Jeff Lindsay

Hack Party SHDH Lightning Talk
Hack Party SHDH Lightning TalkHack Party SHDH Lightning Talk
Hack Party SHDH Lightning TalkJeff Lindsay
 
Building an Event-driven Web @ Impact
Building an Event-driven Web @ ImpactBuilding an Event-driven Web @ Impact
Building an Event-driven Web @ ImpactJeff Lindsay
 
Evented Web @ Ignite
Evented Web @ IgniteEvented Web @ Ignite
Evented Web @ IgniteJeff 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
 
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
 
Superglue: Web Hooks and the Future of the Web
Superglue: Web Hooks and the Future of the WebSuperglue: Web Hooks and the Future of the Web
Superglue: Web Hooks and the Future of the WebJeff 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
 

More from Jeff Lindsay (18)

Hack Party SHDH Lightning Talk
Hack Party SHDH Lightning TalkHack Party SHDH Lightning Talk
Hack Party SHDH Lightning Talk
 
NullMQ @ PDX
NullMQ @ PDXNullMQ @ PDX
NullMQ @ PDX
 
Building an Event-driven Web @ Impact
Building an Event-driven Web @ ImpactBuilding an Event-driven Web @ Impact
Building an Event-driven Web @ Impact
 
Evented Web @ Ignite
Evented Web @ IgniteEvented Web @ Ignite
Evented Web @ Ignite
 
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
 
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
 
Superglue: Web Hooks and the Future of the Web
Superglue: Web Hooks and the Future of the WebSuperglue: Web Hooks and the Future of the Web
Superglue: Web Hooks and the Future of the Web
 
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
 

Recently uploaded

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 

Using Web Hooks

Editor's Notes

  1. me: nasa, startups, shdh, web hooks “using webhooks”
  2. more appropriately pretentious. although it’s really about webhooks, then future. webhooks may be the future of the web, but just a small part. who has heard of webhooks? i watch search.twitter for webhooks...
  3. lightning bolts of cloud computing.
  4. i don’t know how this started. it had nothing to do with my talk titles...
  5. tim bray just says they’re the next big thing.
  6. this guy’s not so sure.
  7. it’s great to see people love an idea. i wish i could sell it.
  8. and then there’s this guy. apparently he’s french.
  9. this is what my talk is going to feel like. i’m going to talk about...
  10. before we get to what they are... what problem do they solve? people haven’t been asking for them, so what’s the point? \"If I had asked people what they wanted, they would have said faster horses.\"
  11. 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.
  12. notifications are the big pull these days. which is cool i suppose. but really just the tip of the iceberg
  13. 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.
  14. this is like the pipes for the web metaphor. this is about composing a system of applications to do more than the parts individually.
  15. 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?
  16. 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?
  17. 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. really this is about code in the cloud ... hooks are just a vehicle for code, but we’ll get to this later.
  18. but obviously... we need webhooks. right?
  19. we know what web apps are... callbacks is a bit curious--wait user defined? like end users?
  20. 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
  21. callbacks! you know what callbacks are? well here’s a quick summary, excuse the crude program diagram
  22. programs start and stop, usually have input/output
  23. flow through functions
  24. flow through functions
  25. flow through functions
  26. flow through functions
  27. flow through functions
  28. flow through functions
  29. flow through functions
  30. compelx. use libraries. they have functions, but they’re black boxes
  31. compelx. use libraries. they have functions, but they’re black boxes
  32. we use them like black boxes most of the time
  33. we use them like black boxes most of the time
  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. unless they have callbacks. here we can modify their behavior! this is also called hooking
  39. unless they have callbacks. here we can modify their behavior! this is also called hooking
  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. devjavu, paypal ... before functional programming even?
  49. look at those extra files in the repo!
  50. code can do anything
  51. all transparent. only see the effects
  52. maybe later this
  53. ipn is a webhook. started as just a real-time ping of a payment, but more events came up...
  54. including events that didn’t involve a user at all. ex: subscription payment failed
  55. simple. register a callback url.
  56. used that to expose svn hooks in devjavu.
  57. simple. too simple? heard disappointment after discovering it was HTTP POST.
  58. came up with this tongue in cheek tagline. but simple isn’t bad. it’s usually great.
  59. simple mechanics, if done right, yield rich, emergent dynamics.
  60. so here’s a regular web app.
  61. so here’s a regular web app.
  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. just have the events, stuff your code already does, trigger a callback url using POST. the user will have a callback...
  67. ..registers with you... and now it gets run when events happen
  68. all the app needs to know is its a url. it shouldn’t care about much else.
  69. 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...
  70. 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...
  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. jon is building a web app. writes code, deploys to server.
  75. jon starts working with a team
  76. jon starts working with a team
  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. gets repetitive
  84. puts a script on his server
  85. registers it as a callback on github for post-recieve
  86. as he pushes, it runs the script
  87. as he pushes, it runs the script
  88. automates his previous manual announcement
  89. and even...
  90. 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?
  91. 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.
  92. 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...
  93. verticals: ecommerce
  94. another big vertical
  95. more of a particular use case
  96. this is another use case, but varies a lot in details
  97. let users decide how they will be notified
  98. let users manage data from where they want
  99. let users use your app as part of a system
  100. let users tweak your app to their needs
  101. let users build new functionality for your app. user contributed functionality...
  102. This is real value: empowering your users to do more with your app than what you created it for... with one, simple solution
  103. observer pattern: subscribe to subjects
  104. getpingd, Fethr
  105. getpingd, Fethr
  106. as a user (power user or otherwise), all hookable apps are part of the ecosystem. like web apps with apis.
  107. made to help making callback urls for common things easy
  108. in code in the cloud environments, you usually are limited to web requests for obvious reasons. protocol droid is going to get around that.
  109. this makes working with email mailboxes way easier in the context of the web
  110. 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
  111. do my own parsing on tasks... extend natural language, or add special codes
  112. 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.
  113. could use hooks to help with their magic, maybe... but could also use them to let people contribute connectors... reference github
  114. monitoring hooks. run some code to restart your server if the site is down?
  115. one thing i’ve been working on is an extension to integrate these ideas.
  116. 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
  117. 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.
  118. botanicalls, camera with webhooks
  119. Any sufficiently advanced technology is indistinguishable from magic.
  120. Web is not programmable/composable enough ... As the web integrates with the world, as it becomes more programmable, so does the world