logo

⚡ Lightning Talk: Build a Twitter Translation Bot In 5 Minutes With Knative Functions

2022-10-25

Authors:   Lance Ball


Summary

Knative Functions is a programming model and set of tooling that significantly reduces the time to productivity when developing reactive Kubernetes apps. The speaker demonstrates how to build a Twitter bot that translates Tweets into multiple languages using Google's Translate API in under 5 minutes.
  • Knative brings scale to zero and developer happiness through its programming model and client tools
  • Knative Functions reduces the mental overhead and learning curve for developers new to Kubernetes
  • The demo showcases the use of Camel K for an event source and the K-native event broker for Cloud events
  • The demo involves deploying two functions, creating an event broker, creating two triggers, and applying a YAML file for the Twitter search camlet
  • The translate function checks if a Tweet is in English and calls the Google Translate API if it is not
  • The viewer function receives Cloud events and prints them to the screen
  • The Twitter search camlet polls the Twitter search API and converts results into Cloud events
  • The demo illustrates the ease and speed of developing reactive Kubernetes apps with Knative Functions
The speaker shows a screen capture of the last time he did the demo, where scrolling Tweets appear on the screen with the viewer function as he tails the logs. He provides a QR code for those interested in trying the demo themselves.

Abstract

Come see how quickly and easily you can get started developing reactive Kubernetes apps with Knative Functions. In this quick 5 minute demonstration, you will see me develop a Twitter bot that translates Tweets into multiple languages using Google’s Translate API. With only a handful of commands to run and a simple API to learn, getting from zero to powerfully productive takes only minutes. Let me show you how - in only 5 minutes!

Materials:

Post a comment

Related work