httpx: A Small, Fluent HTTP Client for Go That Stays Close to `net/http`

Go’s standard net/http package is excellent. It’s mature, reliable, performant, and provides almost everything you need to build HTTP clients. But there is one thing I’ve always found myself writing repeatedly: boilerplate. Creating requests, attaching headers, configuring authentication, handling response status codes, decoding JSON, closing response bodies, managing timeouts, and implementing retries — these are common tasks in almost every backend application. I wanted something that would make these operations simpler without introducing another heavy abstraction or a collection of third-party dependencies. ...

November 28, 2026 · 9 min · Saddam H

Event Sourcing in Microservice Architecture: Rebuilding Systems One Event at a Time

Event Sourcing Pattern in Microservice Architecture In the world of distributed systems, consistency and traceability are constant challenges. As microservices scale, ensuring reliable state management and a complete history of changes becomes increasingly complex. Event Sourcing is a powerful architectural pattern that addresses these concerns by rethinking how we store and represent data. Instead of persisting the current state of an entity, Event Sourcing records a sequence of events that describe every state change. These events are immutable facts that, when replayed, can rebuild the system’s current state at any time. ...

November 11, 2025 · 5 min · Saddam H

From Engineer to Tech Lead: What Changes and What Doesn’t

You won’t stop writing code — but you’ll start writing influence. After spending 8 years at Pathao, my journey has taken me from being a hands-on software engineer to a Senior Staff Engineer responsible for system design, technical vision, and mentoring teams across the org. This transition wasn’t overnight — it was built step by step, from writing my first microservice, to designing the backbone of business-critical systems. In this post, I want to share what truly changes when you go from engineer to tech lead (or staff+ level), and what surprisingly doesn’t. ...

June 25, 2025 · 4 min · Saddam H

Scalability Essentials for APIs in High-Traffic Services

When developing APIs for services in a company with a large user base, scalability becomes a critical consideration. Scaling an API in production for such a company requires keeping certain fundamentals in mind. Today, I’ll discuss a few key points that you should also keep in mind when approaching this challenge. Here’s a breakdown of some key techniques and strategies you can use: API Optimizations Reduce Payload Size: Send only the necessary data in responses and avoid including unnecessary properties, as every byte contributes to network overhead, even if it’s just a single byte. Response Compression: Enable compression techniques like Gzip or Brotli to reduce payload size and accelerate data transfer. Pagination and Filtering: For large datasets, implement pagination and filtering mechanisms to limit the amount of data sent in a single request. Stateless Applications: Design application servers to be stateless, processing only request-specific information without storing or persisting data locally. Persist state-related information, such as user authentication or preferences, externally using databases, in-memory caches (e.g., Redis).This approach ensures that application servers can be easily scaled up or down during deployment to handle varying request loads, improving flexibility, fault tolerance, and scalability. Concurrency: Leverage concurrency to optimize performance when handling multiple tasks simultaneously. For instance, if an API request requires data from two or more services, you can make those service calls concurrently instead of sequentially. This reduces the overall response time by executing tasks in parallel, making better use of system resources. Consider using gRPC for inter-service communication, as it provides efficient, low-latency, and strongly-typed communication between services in a microservices architecture. ...

November 22, 2024 · 7 min · Saddam H