Menu
Gaming Analytics Pipeline
Gaming Analytics Pipeline

Appendix D: Sample Batch File

The solution batches gameplay telemetry in memory, periodically compresses those batches using GZIP, and writes the them to Amazon Simple Storage Service (Amazon S3). The following is an excerpt from a sample batch file. Events are JSON-formatted written one event per line.

{"event_version":"1.0","position_x":309,"app_name":"SampleGame","client_id":"af2c3064-84b9-4aa1-8efc-6b1945097fc6","position_y":532,"event_id":"05649c58-bf97-45c4-9973-0991698bb1c0","level_id":"test_level","app_version":"1.0.0","event_timestamp":1508915444283,"event_type":"test_event","server_timestamp":1508915445303} {"event_version":"1.0","position_x":562,"app_name":"SampleGame","client_id":"d7680359-a820-4611-a72a-d4e9fe856248","position_y":826,"event_id":"325e2d7f-a7a7-471c-86ce-7361bcdd6ede","level_id":"test_level","app_version":"1.0.0","event_timestamp":1508915444283,"event_type":"test_event","server_timestamp":1508915445305} {"event_version":"1.0","position_x":383,"app_name":"SampleGame","client_id":"cd8ceac7-2ca6-48eb-b329-2336f8df1633","position_y":895,"event_id":"50ad0a1e-0018-48a0-82c7-7a5c73f558c1","level_id":"test_level","app_version":"1.0.0","event_timestamp":1508915444283,"event_type":"test_event","server_timestamp":1508915445305} {"event_version":"1.0","position_x":404,"app_name":"SampleGame","client_id":"a15d3804-52b6-4860-8a83-bd31d045b422","position_y":719,"event_id":"be2bcc18-e9a5-4909-8f5a-2eddfcfc867d","level_id":"test_level","app_version":"1.0.0","event_timestamp":1508915444283,"event_type":"test_event","server_timestamp":1508915445305}

Figure 3: Sample batch telemetry file excerpt