

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 9
click for more info
Not enough gems
Cost: 6 gems
1: Data Serialization
incomplete
2: Game Logs
incomplete
3: Consume Logs
incomplete
4: Schema
incomplete
This lesson's interactive features are locked, please to keep using them
Now let's consume the logs and save them to disk.
*.log
I created a generic function to share duplicate code between subscribeJSON and subscribeMsgPack. If you're curious this is the function signature:
export async function subscribe<T>(
conn: amqp.ChannelModel,
exchange: string,
queueName: string,
routingKey: string,
simpleQueueType: SimpleQueueType,
handler: (data: T) => Promise<AckType> | AckType,
deserializer: (data: Buffer) => T,
): Promise<void>;
game.log file contains the logs you expect.game_logs queue are consumed using the Rabbit UI.Run and submit the CLI tests.