Temporal

The making of Temporal trivia

Aug 30, 2023
The making of Temporal trivia
SummaryAI, from the source post

This post details the development of a Temporal Trivia game, a hackathon project. It describes the architecture using two workflows (`GameWorkflow` and `AddPlayerWorkflow`) for managing game state, player joining, and question/answer handling. It highlights the use of Activities for API calls (ChatGPT, moderation), Queries for exposing game state, Signals for player submissions and scoring, and Timers for game progression. The post also discusses frontend development iterations (SMS/SvelteKit to browser/Flask) and key learnings around keeping logic in one place, workflow decomposition, moderation service integration, and iterative MVP development. Future improvements include using JSON for ChatGPT responses and Workflow Updates for more efficient querying/signaling.

More from the Game Development with Temporal trail