Comment on page
Userflows
Userflows shows how Grainite can be used to analyze user session (cookie) data in real-time and provide the latest state of the user sessions to applications that end-users interact with so that users get a seamless experience even when switching between devices.

Userflows Application
If you haven't already, follow the environment setup guide to setup the gx CLI, get the sample apps, and compile them. After doing so, you will be able to access Userflows under
samples/userflows
.gx
reads the application YAML file to parse what tables and topics are needed, and where the app jar is located. This information is then sent to the Grainite server to deploy the application.gx load -H <server host>
By default, gx will look for a YAML configuration file in the current directory. If one is not found or is not valid, gx will throw an exception for most commands. To specify a particular YAML configuration file, you can use
gx <sub command(s)> -c <path to config file>
.Run a script to send 1000 events at a rate of 100 events/second to the Grainite server.
./load.sh <server host> 1000 100
To see what happened, you can look at a couple of things:
- 1.App log
- 2.Events in a Topic
- 3.Grains in a Table
The following command will print the application logs.
gx log --follow
Run the below command.
gx
will then ask you to select a topic in the application and will print the events in that topic.gx topic dump
Run the below command.
gx
will then ask you to select a table in the application and will print the grains in that table.gx table dump
Last modified 5mo ago