Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
I Built a Trading Leaderboard in Golang
2 points by pratikdaigavane on Oct 2, 2024 | hide | past | favorite | 3 comments
Efficient and scalable program that dynamically updates the leader-board with the latest ranking every minute, ensuring accuracy and performance even under high trading activity.

Repo: https://github.com/pratikdaigavane/trading-leaderboard

Hosted at: https://leaderboard.pratikd.in



1. When you reply from in memory data, how do you ensure when multiple servers are running the value isn't stale. 2. Have you considered using redis stream or client side caching where redis would send updates to all running servers to invalidate?


Really liked how in-memory buffer is being used with redis


Nice work bro :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: