Loading video player...
š SUBSCRIBE for more content like this š: https://www.youtube.com/@kcode_tech?sub_confirmation=1 ------- In this tutorial, we implement request Rate Limiter for our Golang server using the Token Bucket algorithm! Learn how to Rate Limit client requests to prevent abuse and ensure fair resource usage across all connected clients. šÆ What You'll Learn: - Implementing the Token Bucket Rate Limiting algorithm - Per-client(IP) Rate Limiting - Time-based concurrency patterns in Go - Testing For Data Race 00:00 Intro 00:41 Rate limiter visual example 02:11 Basic Rate limiter server code 16:10 Per-client Rate limiter 29:40 Data Race Rate limiter test ------- š Previous Videos: Part 1 - WebSocket Server & Broadcast: https://youtu.be/498xxetegRQ Part 2 - Go WebSocket Rooms: https://youtu.be/mXzxpQLNolU Part 3 - Go WebSocket Throttler: https://youtu.be/mMEf7rI9E4M š Useful Links: GitHub Repository: https://github.com/k-code-yt/golang-yt-examples/tree/ratelimiter š± Social media links: - Twitch: https://www.twitch.tv/kcode_tech #kcode #go #golang #websocket #concurrency #channels #programming #ratelimiter #leaky bucket