Introduction to Streams Designer
Streams Designer is a web based IDE for quickly creating streaming analytics applications. The applications are created in the browser and run on the IBM Cloud. This post is collection of short videos and articles to introduce you to the the canvas and show you how to create and monitor an application.
Table of Contents
- Streams Designer overview – your first look at the canvas
- Set up the IBM Cloud services
- Run an example flow
- Monitor a running flow
- Creating your own application
Streams Designer overview
Why should you use Streams Designer? This video provides an overview as well as an introduction to the Streams Designer canvas.
Sign up for a free trial
Streams Designer is part of the IBM Watson Studio, so you’ll first need to log in/create an account. Watch this short video to see how to sign up for a free trial of IBM Watson Studio.
Set up the IBM Cloud Services
Applications created with Streams Designer run on the Streaming Analytics service in the IBM Cloud, so after creating an account, follow along in this video to set up the needed services.
Now that your setup is complete, a great way to try out Streams Designer is by running a example application.
Create a Data Historian Example Flow
Applications created in Streams Designer are called flows.
In this video, you will learn how you can deploy the Data Historian example flow that is available in Streams Designer. This flow ingests data from simulated weather stations and uses the Aggregation operator in Streams designer to compute statistics like average temperature and humidity.
Create a Geofence Example Flow
In this video, you will learn how you can deploy the Geofence example flow that is available in Streams Designer. This flow ingests data from simulated weather stations and uses the Aggregation operator in Streams designer to compute statistics like average temperature and humidity.
Monitor the Running Flow
The next video in the series demonstrates how you can monitor a running application using the metrics page. You can observe the application’s performance, see the data as it moves between operators and download application logs.
Create Your Own Application
Create a Streams Flow with the Canvas
Extend the Data Historian Example to Use Message Hub as a Data Source
You’ve succesfully run a flow in Streams Designer. Now, you probably want to start creating your own applications. Logically, the first step in creating your own flow is connecting to a data source. Right now, supported data sources are the Watson IoT Platform or Message Hub. So now you need to learn how to send data to one of those services.
Follow along in this notebook to see how to modify the Data Historian flow to use data from Message Hub, IBM’s Apache Kafka offering. You will learn how to 1) Send data to Message Hub using Python, 2) Ingest and analyze that data in a Streams flow, and 3) Send results from the flow back to Message Hub.
Open the notebook on the Watson Studio (formerly Data Science Experience), and after logging in, click copy to import the notebook into a project for use.
Use data from IoT devices with the WatsonIoT operator
Another common data source is data from Internet of Things (IoT) devices. These are ingested in Streams Designer using the WatsonIoT operator.
Watch this video to learn how to use it.
Computing moving averages and running totals with the Aggregation operator
You may have noticed in the example flow that the Aggregation operator was used to compute general statistics like averages, max/min, totals, and so on. Learn more about the Aggregation operator and how to use it in this post.
Add custom code using the Python operator
Your application might require customized logic for tuple processing, or you might want to connect to a different database that isn’t currently supported as a source or target operator, such as Cassandra.
You could do so using the Python code operator, and this video shows how to do that.
We are still working on more content, so stay tuned!