A funny microservice for playing rock-paper-scissors.
The app is written in Go using the Gin framework.
On every git tag push, the GitHub Actions pipeline builds a new Docker image, pushes it to my Registry, which starts a rolling update across the Swarm deployment.
Given Go's easy and light approach on build complexity, no specific environment needed, however I strongly recommend JetBrains GoLand.
Load testing is done with k6.
You can perform the test by running:
cd .k6
k6 run -e URL=<your host url> load_test.js
rps-backend - Rock Paper Scissors backend
Copyright (C) 2024 SunStorm
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.