News for hackers. Stuff that matters.

I Built a Trading Leaderboard in Golang

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

( 3 comments | 2 points | on HN )
Re:I Built a Trading Leaderboard in Golang by pg_2023 on Wednesday October 02, 2024 @03:19PM (#41724137)
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?
Re:I Built a Trading Leaderboard in Golang by AVC0706 on Wednesday October 02, 2024 @01:35PM (#41723048)
Really liked how in-memory buffer is being used with redis
Re:I Built a Trading Leaderboard in Golang by pg_2023 on Wednesday October 02, 2024 @03:13PM (#41724079)
Nice work bro :)