Knfun is a set of Knative micro-services / micro-functions intended to be used
for live demos. The main goal is to illustrate the end-to-end developer
experience of using Knative and its kn
CLI.
The first demo uses three functions in a live demo setting (ideally with an audience participating). The following diagram is a sketch of this demo and these slides can be used for introduction.
-
TwitterFn search function (via Twitter's API)
- in: hashtags or string to search
- in: count (max number of tweets to return)
- out: recent tweets with images
-
WatsonFn visual recognition image classifier function (via IBM's Watson APIs)
- in: image URL
- out: image features (class) with confidence (score)
-
SummaryFn function
- in: search string and TwitterFn and WatsonFn URLs
- in: count (max number of tweets)
- out: HTML page displaying summary
Both the TwitterFn and WatsonFn require credentials to execute. This means that the demoer's secret keys for both the TwitterFn and WatsonFn are also required as input, however, to simplify the discussion, the keys are sometimes ommited in diagrams and other places.