Game telemetry and analytics with Amazon Kinesis Data Streams and Amazon Data Firehose from Blueprints and C++: buffered event tracking with an offline spool, batched puts with partial-failure retry, polling shard consumers with checkpoints, built on the official AWS SDK for C++.
Long Description:
KinesisStream sends what happens in your game to AWS in real time and reads it back. Add the KinesisStream Telemetry component, call Track Event with a name, text properties and numbers, and every event becomes one JSON line with an event id, UTC timestamp, session, player, build, platform, map and sequence number. Events are buffered and sent in batches to an Amazon Data Firehose stream (straight into S3 for Athena and your data lake, or to an HTTP endpoint) or to a Kinesis data stream for real-time processing.
The component is built for real players: when the device is offline the queue moves to a size-capped spool on disk and is replayed later, rejected records are retried without resending the accepted ones, sampling is decided per session so sampled sessions stay complete, and Opt Out / Opt In respects the player's privacy choice across restarts. Global properties, session start / end events and statistics are included.
For servers, tools and live-ops dashboards, the KinesisStream Consumer component polls one shard or every shard of a stream on a background thread, follows reshards, renews expired iterators and saves a checkpoint per shard so it resumes where it stopped. Latent nodes cover Put Record, Put Records (500 records / 5 MB per request), shard iterators, Get Records, List Shards, stream summaries, Firehose puts and batches, and administration: creating, resizing and deleting streams, retention, waiting for a stream to become active and creating Firehose streams to S3 or HTTP endpoints.
Players get credentials from an Amazon Cognito identity pool: as guests, or signed in with a token from a Cognito user pool, Google, Apple, Facebook or any OpenID provider through Set Login Token. Static keys and the default AWS credential chain are available for development, dedicated servers and tools. Requests run on background worker threads with automatic retries, so the game thread never blocks, and every result arrives back on the game thread.
KinesisStream is part of the Alpha XP AWS collection for Unreal Engine 4.27 and 5.8. It includes the AWS SDK for C++ prebuilt for Win64, Linux and Android and ships with styled HTML documentation.
Key Features:
- KinesisStream Telemetry component: Track Event, standard fields, newline-delimited JSON, buffering by count / bytes / age
- Offline spool on disk (size cap, replay on next start or when the network is back)
- Per-session sampling, persisted Opt Out / Opt In, global properties, session start / end events, statistics
- Kinesis Data Streams: Put Record, Put Records with retry of only the failed entries, Get Shard Iterator, Get Records, Read Records, List Shards, Describe Stream Summary, List Streams
- KinesisStream Consumer component: polling consumer, all shards or one, reshard handling, checkpoints saved to disk, lag
- Amazon Data Firehose: Put Firehose Record, Put Firehose Record Batch with partial-failure retry, Describe / List Delivery Streams
- Administration: Create / Delete Stream (on-demand or provisioned), retention, Update Shard Count, Wait For Stream Active, Create Delivery Stream To S3 / To HTTP Endpoint, Delete Delivery Stream
- Helpers: partition-key hashing and shard lookup, record builders, UTF-8 conversion, JSON line parsing, ARNs, Struct To JSON / JSON To Struct / Get JSON Field
- Amazon Cognito identity pools, static keys or the default AWS credential chain
- 88 Blueprint nodes, cancellable latent nodes, C++ API with native callbacks
Full documentation: https://demo.alphaxp.net/FabStore/AWS/KinesisStream/
Support: https://alphaxp.net/