I Built a Go Logger That's Faster Than Zap — Zero Allocs, Zero Deps
Why I stopped fighting Go's logging libraries and wrote my own — with zero allocations, beautiful console output, and performance that beats zap and matches zerolog.
Software Development Engineer crafting robust backend systems, security solutions, and scalable microservices. IIT Delhi alumnus with expertise in Go, Java, and distributed systems.
// loghq — zero-allocation structured logger
// 320ns/op · 0 allocs/op · zero dependencies
// github.com/Bhavyyadav25/loghq
var pool = sync.Pool{
New: func() any {
b := make([]byte, 0, 512)
return &b
},
}
func (l *Logger) log(lvl Level, msg string, fields []Field) {
b := pool.Get().(*[]byte)
*b = appendLevel(*b, lvl)
*b = appendFields(*b, msg, fields)
_, _ = l.w.Write(*b)
*b = (*b)[:0]
pool.Put(b)
}
I'm a Software Development Engineer with a passion for building scalable backend systems and security solutions. Currently at Clickpost, I architect systems handling quick commerce deliveries for major e-commerce platforms.
My journey began at IIT Delhi, where I pursued Fiber Science & Nanotechnology while captaining the badminton team. Having represented my state in badminton at the school level, this blend of competitive sports and technical rigor shaped my approach to software engineering.
At WiJungle, I built DDoS protection systems, Web Application Firewalls, and security infrastructure protecting 50+ client websites. I thrive on challenges that require both deep technical expertise and creative problem-solving.
Building scalable microservices, RESTful APIs, and high-performance backend systems using Go, Java, and Python.
Developing WAF, DDoS protection systems, and threat detection solutions that protect enterprise infrastructure.
Designing distributed systems, database schemas, and scalable architectures for high-throughput applications.
Analyzing and optimizing system performance, reducing latency, and improving throughput for critical systems.
Remote, India
Gurugram, India
New Delhi, India
Go-based backend for enterprise DDoS protection with advanced security policies and rule enforcement. Boosted detection speed by 35% and minimized downtime by 60%.
Enterprise WAF protecting 50+ client websites with customized ModSecurity rules and real-time threat monitoring. Reduced security breaches by 25%.
Comprehensive store management backend supporting bulk CRUD operations for 1000+ stores with geolocation validation using Haversine calculations for hyper-local delivery.
C++ GraphQL parser integrated with ModSecurity as an adaptive module. Parses queries and converts to JSON, reducing parsing latency by 40%.
Converts diverse logs to JSON and transmits via Unix sockets to Manticore. Enables detailed graph analysis for system insights with 80% faster processing.
High-performance ICAP server built with Go and Squid, handling 100,000+ HTTP/HTTPS requests daily. Assesses file safety and enforces security policies.
Advanced Persistent Threat detection system that scans requests and detects malicious activities. Reduced APT threats by 65% through proactive monitoring.
Automated router configuration updates using Go and MQTT protocol. Reduced manual intervention by 70% through efficient CRUD operations.
Why I stopped fighting Go's logging libraries and wrote my own — with zero allocations, beautiful console output, and performance that beats zap and matches zerolog.
A step-by-step journey through profiling, bottleneck identification, and incremental improvements that turned a sluggish endpoint into a sub-100ms powerhouse.
A stage-by-stage walkthrough of how a malicious HTTP request passes through the WAF I built at WiJungle — IP reputation, sliding-window rate limiter, header inspection, and a pre-compiled rule engine, all in under 2ms.
I'm always open to discussing new projects, creative ideas, or opportunities to be part of your vision. Let's build something amazing.