Striim Real-Time Analytics Quick Start
Go from zero to Streaming Analytics in a matter of clicks
Get Started with Streaming
Learn how to play with real-time streams with simple auto-generated data streams
Explore Striim Dashboards
Use Striim’s SQL dashboard for real-time analytics
Tools you need
Striim’s unified data integration and streaming platform connects clouds, data and applications.
In today’s fast-paced, always-on lifestyle, real-time data is crucial. No one wants to know where their rideshare was ten minutes ago, miss out on the trade of a lifetime, or find out that half the items they ordered from their delivery app were out of stock. However, for many organizations, real-time data is out of reach due to the complexity of the infrastructure and the need to integrate with internal systems. This is where Striim comes in.
Striim provides a simple unified data integration and streaming platform that combines change data capture (CDC), application integration, and Streaming SQL as a fully managed service.
Free Streaming for Developers!
With Striim Developer, you can prototype streaming use cases for production use with no upfront cost, stream up to 10 million events per month with unlimited Streaming SQL queries, and simulate real-time data behavior using Striim’s synthetic continuous data generator.
Want to see how easy it is to use Striim Developer for a real-time analytics use case? This tutorial will show you how to use Striim to process and analyze real-time data streams using continuous queries. You’ll also learn how to use a Striim dashboard for real-time data visualizations and reports. Whether you’re a data engineer or an analyst, this tutorial is the perfect introduction to real-time data insights with Striim Developer.
Core Striim Components
Continuous Generator: A continuous data-generator that can auto generate meaningful data for a given set of fields
Continuous Query: Striim’s continuous queries are continually running SQL queries that act on real-time data and may be used to filter, aggregate, join, enrich, and transform events.
Window: A window bounds real-time data by time, event count or both. A window is required for an application to aggregate or perform calculations on data, populate the dashboard, or send alerts when conditions deviate from normal parameters.
Dashboard: A Striim dashboard gives you a visual representation of data read and written by a Striim application.
Watch this step-by-step video walkthrough or read through all the steps below:
Step 1: Sign upTo sign up for free Striim Developer, you can use either your personal or work email address. Go to https://signup-developer.striim.com/ and use your referral code. If you cannot reach this page, try disabling any ad/cookie blockers or sign up from an incognito page. Fill in all your details and select your choice of source and target from the dropdown list.
Step 2: Create your account and complete signup
After you submit the form in Step 1, check your inbox. You would receive an email from Striim Developer with the next steps. Check your spam folder if you do not get the following email.
Complete your signup by clicking ‘Complete’. That will prompt you to confirm your email address and set your username and password. You can ignore the part about whitelisting the IP address.
Step 3: Sign in using your username and password
Once you submit the form from Step 2, you will be redirected to developer.striim.com sign in page where you can enter your username and password. You will also receive a confirmation email that contains the reset password in case you forget your password.
Create your first real-time analytics app
Step 1: Create and name your Striim App
After you have signed into your developer account, click on ‘Create an App’ on the landing page.
Build your app using flow designer by selecting ‘Start from scratch’.
Next, name your app ‘salesanalytics’ and click ‘save’ on the lower right. Select the namespace that’s automatically set.
Step 2: Build a streaming application
Now you are ready to build your first real-time analytics application on Striim. To add an auto-generating data source, click on the relevant link on your screen as shown below:
You will have an option to choose between ‘Simple Source’ and ‘Advanced Source’. For this use-case, let us create an advanced source with seven fields. This will start generating streaming sample data.
The advanced source comes with a continuous query that processes and analyzes the data stream.
Now a Window component will be added that bounds the streaming data into buckets. Click the ‘+’ button as shown below and select ‘Window’.
We will set the size of the window to ‘1-second’ on the timestamp of the sample data events. Important: name it ‘onesecondwindow’ for this exercise.
Now scroll down on the window editor and populate the following fields:
Time: 1 Second
So it looks exactly like this:
Next we will create a query to analyze this data. A CQ (Continuous Query) will process streaming data in real-time. You can name it ‘getcounts’ or whatever you want (no spaces or special characters). To add a CQ, select ‘+’ and connect next CQ component.
Copy and paste the following Streaming SQL snippet into the ‘CQ’ box:
SELECT count(*) as transactioncount, DNOW() as time FROM
IMPORTANT: name the New Output ‘countstream’.
As you may have noticed, the sample data has an IP address (every computer’s network ID) for each transaction. However, the business wants to know where their customers are coming from and we are missing that data. Luckily, Striim has a way of pulling locations for IP addresses.
Click and drag another ‘Continuous Query’ from the left-side panel on to the flow designer panel (anywhere on the blank/white space)
You can name the component ‘getlocations’ or whatever you want (no special characters or whitespaces)
Now copy and paste the following snippet in to the query box:
SELECT s.Name,s.Product_Name, IP_LAT(s.IP) as latitude, IP_LON(s.IP) as longitude, IP_COUNTRY(s.IP) FROM salesanalytics_PurchasesGDPRStream s;
IMPORTANT: name the New Output ‘locations’
Step 3: Deploy and Run your Striim Application
After you have saved all the components of your streaming app, you may deploy and run the Striim application. Click on the dropdown list next to ‘Created’ and choose ‘Deploy App’.
You can select any available deployment group and click ‘Deploy’.
After your Striim app is deployed, you can run the streaming application by clicking ‘Start App’.
You can monitor the processed data through the ‘eye’ wizard next to any stream component.
Explore Striim Dashboards
A Striim dashboard gives you a visual representation of data read and written by a Striim application. We will create a dashboard for the above data stream to visualize streaming data in real-time. Start by downloading this file.
Click on ‘View All Dashboards’ from the dropdown next to ‘Dashboards’ at the top of screen.
Click on ‘Create Dashboard’ and import the above downloaded file and select ‘Import all queries into this namespace’ using the auto selected namespace.
Here you will see a Striim Dashboard with a map already created. You will create a real-time chart yourself!
We will now create a line chart with our sales data. Click the ‘Line’ chart on the left side, drag it into the panel. Then select ‘Edit Query’ on the ‘<>’ icon on the top left.
Name the query ‘getcounts’ or whatever you want (no whitespace or special characters) and push ‘Enter’ on your keyboard.
Enter the following query into the input
SELECT * FROM countstream;
Click the ‘configure’ button as shown below to add axes details into your line graph. Choose ‘transactioncount’ field for y axis and ‘time’ with datetime format for x axis. For real-time chart, the data retention time is ‘current’.
Now you have a real-time sales dashboard!
Wrapping Up: Start your Free Trial Today
In this recipe, we have walked you through steps for creating a Striim application using test data from Striim’s Continuous Generator adapter. You can query the data stream using continuous queries and partition it using a Window. We have also demonstrated how to create aStriim dashboard for real-time data visualization.You can try adding your own continuous queries to the sales app and build whatever charts you want!
As always, feel free to reach out to our integration experts to schedule a demo, or try Striim developer for free here.