kamau

176 posts

kamau banner
kamau

kamau

@Kamau_codes

building real world solutions one line at a time

Katılım Kasım 2022
21 Takip Edilen22 Takipçiler
kamau
kamau@Kamau_codes·
Your API just got hammered with 10,000 login attempts in 60 seconds What's your next move? Without rate limiting, you're one angry user (or bot) away from: → Crashed databases → Brute-forced passwords → Duplicate payment charges → Complete service outage I just published a deep-dive on implementing rate limiting in Go using the Token Bucket algorithm. No libraries. No magic. Just production-ready code you can understand and customize. Read the full article: medium.com/p/rate-limitin… #Golang #BackendDevelopment #APISecurity #SoftwareEngineering #WebDevelopment
English
0
0
2
71
kamau
kamau@Kamau_codes·
Building a Production-Ready Ticketing Platform with Go: A 3-Month Journey What does it take to build a ticketing system that can handle thousands of concurrent bookings, process payments reliably, and provide real-time analytics? Three months ago, I decided to find out. After three years of building various projects, I wanted to challenge myself with something comprehensive—not just another CRUD app, but a full-featured platform with production-grade infrastructure. I chose Go for its simplicity, performance, and rich ecosystem, and set out to build a complete event ticketing API from scratch. What I've Built Security & Authentication -Two-factor authentication (2FA) for enhanced security -Rate limiting to protect against API abuse -Email verification system with SMTP notifications -Secure password reset flows Payment Processing -IntaSend API integration for M-PESA and card payments -Complete refund system with automated notifications -Payment history tracking and reconciliation Monitoring & Observability -Prometheus metrics collection -Grafana dashboards for business overview, performance monitoring, and ----payment tracking -AlertManager for proactive issue detection Features & Optimization -PDF ticket generation with QR codes -Database optimization: connection pooling and strategic indexing -Multi-level analytics: event-level, organizer dashboards, and admin business intelligence Key Technical Challenges 1. Database Connection Leaks Early on, idle connections were piling up and degrading performance. Implementing proper connection pooling and timeout configurations reduced connection overhead by 60%. 2. Concurrent Payment Processing Handling simultaneous bookings for popular events required careful transaction management and optimistic locking to prevent overselling. 3. Real-Time Metrics Building meaningful Grafana dashboards meant understanding what metrics actually matter—not just collecting everything, but surfacing actionable insights. What's Next I'm actively working on scaling capabilities: Redis for distributed rate limiting and caching AWS S3 for scalable file storage (images, PDFs) ElasticSearch for advanced search functionality Following the Journey I'll be documenting everything along the way: the problems I've encountered, the lessons learned, implementation deep-dives, and how I resolved each challenge. Whether you're building with Go or just curious about production system design, follow along as I take this from prototype to production.
kamau tweet mediakamau tweet media
English
0
0
1
45
kamau
kamau@Kamau_codes·
@jxred1182670000 I will check them out. Realized that breaking features into chunks actually makes the implementation much easier .
English
0
0
0
5
Peter Williams
Peter Williams@jxred1182670000·
@Kamau_codes Building a ticketing platform can feel overwhelming, but tackling it step by step makes it manageable. I used TicketingHub, and it streamlined everything from ticket sales to customer management in one place.
English
1
0
0
36
kamau
kamau@Kamau_codes·
Went down a rabbit hole and decided to build a web ticketing platform using golang and nextjs and this thing will be the end of me.
English
2
0
1
66
kamau
kamau@Kamau_codes·
@AMR_SHAMS07 Decided to create everything from scratch instead of using an already existing api plus I was learning about some tools on the go.
English
1
0
0
15
shams
shams@AMR_SHAMS07·
@Kamau_codes This is not a rabbit hole, this is relatively simple and at least u have similar examples so don’t go back and continue, nothing feel great than a home made software
English
1
0
0
19
kamau retweetledi
Mehak Saluja
Mehak Saluja@salujamehak5·
4 years of computer science degree and still you don't even able to solve a medium array or strings question or you don't even have a single project made 100% by you in your resume, then don't blame the job market- the problem is with you.
English
214
410
6.5K
245.1K
kamau
kamau@Kamau_codes·
@KariukiKawira Honestly this is a very stupid notion, Kenya does not reward merit it rewards connections. Unaeza pata first class but if you don’t know anyone utatembea uchoke. We graduated na first class na upper tukatembea till tukapivot to tech. Know people
English
0
0
0
133
kamau
kamau@Kamau_codes·
Currently learning golang and this language is everything I never knew I needed
kamau tweet media
English
0
0
0
15
kamau retweetledi
manan
manan@builtin2005·
If you think your code is clean, wait until you revisit it 6 months later.
English
21
12
109
6.2K
bri :)
bri :)@bridget_amana·
@Kamau_codes or using “object-fit: cover” or contain to preserve the aspect ratio
English
1
0
0
6
kamau retweetledi
JNS
JNS@_devJNS·
don't know if it's just me, but Indian guys on youtube have saved my life. 😭❤️
JNS tweet media
English
37
45
479
13.8K
kamau
kamau@Kamau_codes·
@r0ktech Sometimes I use PHP, sometimes nodejs and sometimes Rust depending on what I am building and how complex it is
English
0
0
0
3
𝐑.𝐎.𝐊 👑
𝐑.𝐎.𝐊 👑@r0ktech·
what language do you use for backend development?
English
6
0
13
1.7K