Feeding Drupal   * Now in Real Time
Overview•   What is Feeds module all about?•   How does Feeds module work?•   DEMO: Importing Flickr photos•   Real-time f...
What is Feeds Module?•   Import and aggregation framework•   Creates nodes, users, taxonomy, flat data...•   From RSS / Ato...
But, what about... Periodic       One-off Imports        ImportsAggregator      Migrate Feed API     Node Import           ...
How does it work?Fetcher    Parser   Processor
How does Feeds work?Fetcher   Parser   ProcessorHTTP       RSS       NODEHTTPS     ATOM        USER FILE     FLICKR   TAXO...
How does it work?          Feeds Importer {FetcherHTTPHTTPS FILE  ...              Parser              RSS             ATO...
Let’s import some stuff          Feeds Importer {FetcherHTTPHTTPS FILE  ...              Parser              RSS           ...
DEMO•   Importing photos from Flickr into Drupal    nodes•   Using location data from GeoRSS feed to    display them on a ...
What’s wrong with that?                     Are we there yet?                     Are we there yet?  Publisher            ...
Solution?Publisher               Subscriber
Problem                      Subscriber                      Subscriber                      SubscriberPublisher          ...
Enter PubSubHubbub   •   A publish / subscribe protocol   •   Turns Atom and RSS feeds into real-time       streamsPublish...
What does it look like?
Step 1 of 2: Subscribe               I want to subscribe to               feed X, send updates                       to me...
Step 2 of 2: Publish                       Hey subscribers,                     here’s new content forI have new content  ...
Let’s import some more         stuff...•   Now in real-time with PuSH•   Check into Gowalla from mobile phone•   See locati...
What just happened?Publisher    Hub      Subscriber
Step 1 of 2: Subscribe   •   When we created the Gowalla Feed node,       we asked the hub to send us updates.            ...
Step 2 of 2: Publish                •   No polling                •   No cron runs                •   Real-time update    ...
Any Questions?
ReferencesFeeds Module - http://drupal.org/project/feedsFlickr Parser - http://drupal.org/project/feeds_flickrPubsubhubbub ...
Credits•   PubSubHubbub diagrams inspired by Alex    Barth’s presentation at Drupalcon CPH.•   Walled social network image...
Feeding Drupal in Real-Time
Upcoming SlideShare
Loading in...5
×

Feeding Drupal in Real-Time

4,880
-1

Published on

I gave this talk at the Guardian in London on Tuesday 14th Dec 2010, for the Drupal Drop-In event.

In addition to the slides, I also did two live demonstrations:

1. importing Flickr photos with location data and showing them on a Google map.

2. Importing Gowalla checkins and using pubsubhubbub to show my location update in real-time on a Drupal gmap as i checked in to the Guardian HQ.

More details on my blog:
http://atchai.com/blog/feeding-drupal-real-time-presentation

Published in: Technology
2 Comments
6 Likes
Statistics
Notes
  • Thanks, I find it takes a lot longer to work out the best structure and what to include / not to include, than it does to create the slides. Always best to make a start early, so you have lots of time to chew it over, iterate lots and get plenty of feedback!
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • This is Nice! How long does it take to create a presentation like this?
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
4,880
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1
Comments
2
Likes
6
Embeds 0
No embeds

No notes for slide

Feeding Drupal in Real-Time

  1. 1. Feeding Drupal * Now in Real Time
  2. 2. Overview• What is Feeds module all about?• How does Feeds module work?• DEMO: Importing Flickr photos• Real-time feeds with PubSubHubbub• Very Exciting Demonstration with Gowalla!
  3. 3. What is Feeds Module?• Import and aggregation framework• Creates nodes, users, taxonomy, flat data...• From RSS / Atom / SOAP / CSV / ...• Mapping of input to Drupal elements• It’s easily extensible and supports PubSubHubbub as a subscriber
  4. 4. But, what about... Periodic One-off Imports ImportsAggregator Migrate Feed API Node Import User Import
  5. 5. How does it work?Fetcher Parser Processor
  6. 6. How does Feeds work?Fetcher Parser ProcessorHTTP RSS NODEHTTPS ATOM USER FILE FLICKR TAXONOMY ... ... ...
  7. 7. How does it work? Feeds Importer {FetcherHTTPHTTPS FILE ... Parser RSS ATOM FLICKR ... Processor NODE USER TAXONOMY ...
  8. 8. Let’s import some stuff Feeds Importer {FetcherHTTPHTTPS FILE ... Parser RSS ATOM FLICKR ... Processor NODE USER TAXONOMY ...
  9. 9. DEMO• Importing photos from Flickr into Drupal nodes• Using location data from GeoRSS feed to display them on a Google map• Import set to run on cron every 30 mins.
  10. 10. What’s wrong with that? Are we there yet? Are we there yet? Publisher SubscriberYes! Here you are. Are we there yet?
  11. 11. Solution?Publisher Subscriber
  12. 12. Problem Subscriber Subscriber SubscriberPublisher Subscriber Subscriber Subscriber Subscriber
  13. 13. Enter PubSubHubbub • A publish / subscribe protocol • Turns Atom and RSS feeds into real-time streamsPublisher Hub Subscriber
  14. 14. What does it look like?
  15. 15. Step 1 of 2: Subscribe I want to subscribe to feed X, send updates to me.Publisher Hub Subscriber Are you for real?
  16. 16. Step 2 of 2: Publish Hey subscribers, here’s new content forI have new content feed X for feed X Subscriber SubscriberPublisher Hub Subscriber Subscriber
  17. 17. Let’s import some more stuff...• Now in real-time with PuSH• Check into Gowalla from mobile phone• See location update on Google map in Drupal
  18. 18. What just happened?Publisher Hub Subscriber
  19. 19. Step 1 of 2: Subscribe • When we created the Gowalla Feed node, we asked the hub to send us updates. I want to subscribe to John’s Gowalla Feed SuperPublisherGowalla Drupal Site Feedr
  20. 20. Step 2 of 2: Publish • No polling • No cron runs • Real-time update SuperPublisherGowalla Drupal Site Feedr
  21. 21. Any Questions?
  22. 22. ReferencesFeeds Module - http://drupal.org/project/feedsFlickr Parser - http://drupal.org/project/feeds_flickrPubsubhubbub spec - http://pubsubhubbub.googlecode.com/svn/trunk/pubsubhubbub-core-0.3.htmlSuperfeedr - http://superfeedr.com/Federated Social Web Google Group - http://groups.google.com/group/federated-social-web
  23. 23. Credits• PubSubHubbub diagrams inspired by Alex Barth’s presentation at Drupalcon CPH.• Walled social network image - David Simonds (The Economist)

×