Ashok Sahoo (@ashoKumar89) header
Ashok Sahoo (@ashoKumar89) profile picture

Full-Stack Engineer | Building real-world systems across the stack | Sharing real-world lessons on performance, failures, and trade-offs

Joined October 2009
Photo by Ashok Sahoo (@ashoKumar89)Photo by Ashok Sahoo (@ashoKumar89)Photo by Ashok Sahoo (@ashoKumar89)Photo by Ashok Sahoo (@ashoKumar89)Photo by Ashok Sahoo (@ashoKumar89)Photo by Ashok Sahoo (@ashoKumar89)Photo by Ashok Sahoo (@ashoKumar89)Photo by Ashok Sahoo (@ashoKumar89)Photo by Ashok Sahoo (@ashoKumar89)Photo by Ashok Sahoo (@ashoKumar89)
An API Gateway is not just a reverse proxy. It’s the control plane in front of your services. If you’re building microservices and don’t have one, your architecture will eventually get messy. Here’s what it actually does 👇 What is an API Gateway? It’s a single entry point that sits between clients and your backend services. Instead of: Client → Service A Client → Service B Client → Service C You have: Client → API Gateway → Internal Services The gateway handles cross-cutting concerns so your services don’t have to. What does it do? An API Gateway typically handles authentication, authorization, rate limiting, request routing, response aggregation, logging, monitoring, and sometimes caching. It can: - Validate JWT tokens - Enforce rate limits - Route /users to User Service - Route /payments to Payment Service - Combine multiple service responses into one Your microservices stay focused on business logic. When do you need it? You likely need an API Gateway when: - You have multiple microservices - You want centralized authentication - You need rate limiting at the edge - You want to hide internal service structure - You are exposing public APIs If you have a simple monolith, you probably don’t need one yet. Common real-world examples: Netflix, Amazon, and most SaaS platforms use API gateways to manage traffic at scale. Popular solutions include: - NGINX - Kong - AWS API Gateway - Envoy Without an API Gateway: Every service reimplements auth, logging, and rate limiting. With an API Gateway: Infrastructure concerns are centralized and standardized. It’s not just traffic routing. It’s architecture discipline. Building microservices? Repost. Follow. Bookmark this.
10
15
2
190
32,766
Your API is receiving 10,000 requests per minute from one user. Would you block the user, slow down requests, or return an error?
12
1
34
5,602
Which is better for a production application? One powerful server or multiple smaller servers?
1
4
870
What happens if Redis goes down while your application is running? Should your application stop working or fall back to the database?
3
9
1,610
Your server restarts unexpectedly. How do you make sure no background jobs or scheduled tasks are lost?
8
1
23
3,156
You are building a SaaS from scratch. What would you implement first? Authentication, billing, permissions, audit logs, or the core product?
4
6
1,438
Which database would you choose for a real-time GPS tracking application? PostgreSQL + PostGIS, MongoDB, or something else?
8
5
3,842
Which is more important for a SaaS product? Fast page loading or fast API responses?
1
787
What is your preferred way to handle file uploads in a SaaS application? Direct to S3, through the backend, or another approach?
5
9
2,185
What is your preferred solution for real-time updates? WebSockets, Server-Sent Events, or polling?
2
1
1,206
What is one thing you always check before choosing a third-party API?
7
4
1,774
Which is more difficult to scale? A read-heavy application or a write-heavy application?
7
15
2,505
Your system does not need to handle a million requests per second. It needs to handle its expected traffic, survive unexpected traffic, and recover when dependencies fail. Which of these three do teams neglect most?
6
638
What is one thing you would never store in localStorage?
6
6
3,332
What is one feature every SaaS should have from day one, but most developers ignore?
2
6
1,093
What is your preferred way to handle API rate limiting? Redis, API gateway, application middleware, or something else?
4
1
37
7,070
Which backend task do you think AI still struggles with the most?
7
1
1
21
7,247
Which is more important for a junior developer? Writing clean code or solving problems quickly?
5
3
2,058
With AI writing more code than ever, what is one technical skill that has actually become more valuable?
1
1,232
10 hidden costs of AI-generated code 1. Reviewing larger diffs 2. Debugging unfamiliar logic 3. Maintaining duplicate abstractions 4. Fixing subtle edge cases 5. Discovering security flaws 6. Understanding generated SQL 7. Updating outdated assumptions 8. Managing unnecessary dependencies 9. Testing unexpected interactions 10. Owning the code in production
1
10
1,022
Your database has a unique constraint. Two requests try to insert the same record at the same time. Which request wins? And more importantly: What happens to the other one?
1
1
7
1,316