-
Notifications
You must be signed in to change notification settings - Fork 10
Openwhisk package rss blog
#Welcome to the openwhisk-package-rss repo.
In this simple blog, we will briefly introduce the Openwhisk package rss.
The package rss creates a simple solution, which helps customers subscribe to RSS/ATOM feeds, and receive events when there are any updates regarding the subscribed RSS/ATOM feeds.
The package is mainly composed of those components. Feed, rssEventProvider, install/uninstall scripts, and travis/CI test scripts. Let’s go through them one by one. The install/uninstall script will help create the rss package, and install the feed, by invoking the openwhisk client.
The feed.js is in fact an action which helps to create/delete the trigger, it will accept the parameters we defined for the trigger, such as rss polling interval, and the rss url etc.
The rssEventProvider will persist the feed created triggers in a couch db instance, and iterate all the triggers to check if there are any updates of of the rss during the interval. It also supports delete the corresponding triggers according to the feed.
The other scrips are travis ci and test scripts which could be integrated to our openwhisk platform. Like the README mentioned, to save time, we could use some simulated RSS/ATOM sources, the updates interval and amount of updates items could be controlled, which is very easy and convenient for demo purposes.
So that’s it, pretty simple, isn’t it? Let’s get your hand dirty and try with it by yourself.