Ashok Sahoo

3K posts

Ashok Sahoo banner
Ashok Sahoo

Ashok Sahoo

@ashoKumar89

Software Engineer | Building real systems at scale. Backend • Node.js • Go • PostgreSQL | Sharing lessons, bugs & fixes

Katılım Ekim 2009
839 Takip Edilen1.7K Takipçiler
Sabitlenmiş Tweet
Ashok Sahoo
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.
English
5
7
63
13.4K
Ali
Ali@aliByteCode·
everyone says "just launch it" but once you launch you get 3 visitors 2 are your friends 1 is you checking analytics now what
English
252
9
542
33.3K
Abhishek Singh
Abhishek Singh@0xlelouch_·
HR: "We value transparency here." Engineer: "Why was the entire infra team laid off in a Zoom call last Friday?" HR: "We value strategic transparency."
English
2
0
9
1.1K
Ashok Sahoo
Ashok Sahoo@ashoKumar89·
@DATDESIDUDE @EOEboh Not really satellites 😄 Google mainly uses phone location data from users. Parked cars confusion usually happens due to GPS inaccuracy or weak signals (trees, buildings), not satellites detecting cars directly.
English
1
0
3
1.3K
Simran
Simran@DATDESIDUDE·
@ashoKumar89 @EOEboh It’s gotta be satellite. Because it sometimes mistakes parked cars on sides of the road as traffic. Has happened in urban and residential area and I’ve notched it with cars parked with heavy tree canopy as well
English
2
0
5
3.5K
Captain-EO 👨🏾‍💻
As a developer, have you ever wondered: Google Maps tells you there's traffic ahead in real time There are no sensors on the road So how does it know?
English
254
38
2.2K
986.7K
Ashok Sahoo
Ashok Sahoo@ashoKumar89·
@jhunea339358032 @EOEboh Not a dumb question 😄 If many users are on airplane mode, real-time data drops. But Maps still uses historical data + other active users, so it can still estimate traffic.
English
0
0
0
848
Ashok Sahoo
Ashok Sahoo@ashoKumar89·
Simple way to think: Electronic (RAM, SSD) No moving parts. Data is stored and accessed using circuits and signals. Very fast. Mechanical (HDD) Has moving parts (spinning disk + read/write head). It physically moves to find data. Slower.
English
1
0
2
40
Eagletech
Eagletech@krimahtech·
@ashoKumar89 @SumitM_X I am confused in differentiate between electronic and mechanics of memory? how we find its electronics or mechnicals things
English
1
0
1
63
SumitM
SumitM@SumitM_X·
As a developer, Have you ever thought : WHY disk access is so slow compared to memory access?
English
15
0
50
7.4K
Ashok Sahoo
Ashok Sahoo@ashoKumar89·
PostgreSQL has a built-in function that most people ignore: AGE() It is not just for subtracting dates. It gives you a human-readable interval. Example: SELECT AGE('2026-03-19', '1998-07-12'); Output: 27 years 8 mons 7 days Why this matters: - Perfect for user age, experience, tenure - No manual date math - Handles months and leap years correctly
English
1
0
19
872
Ashok Sahoo
Ashok Sahoo@ashoKumar89·
@0xlelouch_ Yes, they likely get it. Total downtime = 50 minutes SLA allows = 43 minutes It breached the SLA, so per most contracts, refund or service credits apply.
English
0
0
1
702
Abhishek Singh
Abhishek Singh@0xlelouch_·
An interesting question if you are into tech infra and observability! Your service has 99.9% uptime SLA (43 minutes downtime/month). You had 2 outages: 20 minutes and 30 minutes. Customer demands refund. Do they get it?
English
16
0
29
9.9K
Ashok Sahoo
Ashok Sahoo@ashoKumar89·
@SumitM_X First thought: this is a full scan waiting to happen. - Add index on date column (range index) - Avoid large range- force pagination / limits - Use partitioning by date - Precompute with aggregations / materialized views - Add caching for frequent reports
English
0
0
3
2.9K
SumitM
SumitM@SumitM_X·
As a backend dev, You see: GET /api/v1/reports?from=2020-01-01&to=2026-01-01 Table size: 70M rows What are your next steps?
English
47
6
356
71.4K
Ashok Sahoo
Ashok Sahoo@ashoKumar89·
It is more than just a simple token. - TV shows a temporary session ID (QR) - Phone scans it and authenticates with your account - Backend links that session ID to your user - TV keeps polling or gets notified- login completes So it is a short-lived, one-time session binding, not a reusable token.
English
0
1
4
814
SumitM
SumitM@SumitM_X·
You open YouTube on your TV and scan a QR code from your phone… You are logged in instantly. No password. As a developer , do you think that QR code is just a short-lived token or something else ?
SumitM tweet media
English
9
3
57
10.5K
Jake | Coding and Tech
Jake | Coding and Tech@JakeATech·
Thanks everyone! Hit 250 followers today 🚀🎉 If you're into: - Saas - Coding - Tech - AI - Design Drop a reply below and let's #connect!
Jake | Coding and Tech tweet media
English
229
7
214
7.6K
Ashok Sahoo
Ashok Sahoo@ashoKumar89·
@0xlelouch_ I will use conflict-resolution algorithms, not last-write-wins. - OT (Operational Transform) or CRDTs - Transform/merge concurrent edits instead of overwriting - Keep operations synced via real-time channel (WebSocket) So both users’ changes are merged, not lost.
English
1
0
5
285
Abhishek Singh
Abhishek Singh@0xlelouch_·
You're building a collaborative doc editor like Google Docs. When two users edit the same paragraph simultaneously, one user's changes disappear. How do you handle concurrent editing?
English
9
1
30
4.2K
Ashok Sahoo
Ashok Sahoo@ashoKumar89·
I will use strong concurrency control at database level. - Put a unique constraint / seat lock - Use transaction + row-level lock (SELECT FOR UPDATE) - First transaction succeeds, second fails Optional: - Add idempotency key - Use retry with failure handling Core idea is to let database enforce single winner, not app logic
English
0
1
4
1.6K
SumitM
SumitM@SumitM_X·
Two users hit "Book Now" at the exact same millisecond on Booking and Expedia. Only 1 seat left. Both requests reach your system. How do you make sure ONLY ONE ticket gets booked?
SumitM tweet media
English
25
3
88
20.9K
Indian Tech & Infra
Indian Tech & Infra@IndianTechGuide·
🚨 India is working on a proposal to allow government ministries to issue blocking orders to social media platforms for fake or harmful content. Good decision?
Indian Tech & Infra tweet media
English
172
105
1.4K
36.8K
Ashok Sahoo
Ashok Sahoo@ashoKumar89·
Output: Yes all([]) -> True any([]) -> False So condition becomes: True or False -> True
English
0
0
1
112
Inamul
Inamul@xInamul03·
Hey @X, I'm looking to #connect with people interested in : - DSA - Frontend - Backend - Full Stack - DevOps - LeetCode - AI/ML - Data Science - Freelancing - Startups - Tech - System Design - Web3 - Building in Public Follow and Say hi & let's grow together 👋
English
81
2
56
2.3K
Ashok Sahoo
Ashok Sahoo@ashoKumar89·
A developer open-sourced Arnis- a Rust-based tool that converts OpenStreetMap data into fully playable Minecraft worlds. Cities. Roads. Terrain. All generated from OpenStreetMap. This is crazy. Supports large-scale generation with detailed structures.
English
1
0
7
371
Ashok Sahoo
Ashok Sahoo@ashoKumar89·
@IndianTechGuide A good feature to have. Real-time noise cancellation improves call clarity a lot, especially in noisy environments.
English
0
0
1
298
Indian Tech & Infra
Indian Tech & Infra@IndianTechGuide·
🚨 WhatsApp is working on noise cancelation for voice and video calls.
Indian Tech & Infra tweet media
English
41
81
1.8K
35.8K