Company
Date Published
Author
Rosemary Wang
Word count
1250
Language
English
Hacker News points
None

Summary

HashiCorp's open source tools were used to build Dance Dance Automation, a game that demonstrates the use of Nomad, Terraform, and Consul. The game consists of a server hosted on a Nomad cluster, connected with Consul Service Mesh, and provisioned by Terraform, where players tap blocks to stop allocations and earn points. The architecture includes a PostgreSQL database for persistence, Consul 1.6 Mesh Gateway for networking, and Terraform Cloud for deployment. The game client is built using Godot, an open source game engine, and interacts with the server through API calls. The hardware used initially was Raspberry Pi, but due to performance issues, alternative solutions were found, such as mapping GPIO inputs to HTTP requests. Despite initial challenges, the game successfully debuted at HashiConf 2019, and further improvements are planned, including integrating Vault for database credential rotation and optimizing the game for the Raspberry Pi.