Back

Manmit Tiwade

Software Developer |... • 3m

Offering APIs with caching + rate limiting. Problem: When users send the same payload multiple times within milliseconds, credits get deducted for each. Why? The first request is still processing, so the cache isn’t ready — the rest hit backend as new. How to avoid this? Any clean solution?

2 Replies
8
Replies (2)

More like this

Recommendations from Medial

Chandu Naidu

SSV Group • 2m

🚀 Early stage startup - we are focused on interpolating the 20-40 milliseconds of processing time between photons hitting the retina and conscious visual perception. This untapped real estate is the new frontier. We're targeting the marketing and de

See More
Reply
1
3
Image Description

Himanshu Singh

Help you to build yo... • 7m

As a backend engineer. You should learn: - System Design (scalability, microservices) -APIs (REST, GraphQL, gRPC) -Database Systems (SQL, NoSQL) -Distributed Systems (consistency, replication) -Caching (Redis, Memcached) -Security (OAuth2, JWT

See More
1 Reply
1
4

Shanu Chhetri

CS student | Tech En... • 3m

🍔 Backend dev = building a burger! Start with a base: Java, Python, or Node.js Add frameworks: Django, Express, etc. Then layer: 🔸 Git/GitHub 🔸 CI/CD (Jenkins, Azure) 🔸 Docker 🔸 APIs (REST, JSON) 🔸 DBs (MySQL, MongoDB) 🔸 Caching (Redis, CDN)

See More
Reply
1
3

Naman Rathi

Student of Computer ... • 16d

“Imagine if your brain could instantly recall everything you learned without ever forgetting. That’s what LM Cache does for AI.” That is what LM Cache makes possible. Normally, an AI has to reprocess everything from the beginning each time you ask a

See More
Reply
2

Gigaversity

Gigaversity.in • 3m

What is an API? Have you ever ordered food at a restaurant? The internet works in a similar way! An API (Application Programming Interface) is like a waiter - it takes your request, delivers it to the kitchen (backend), and brings back the response.

See More
Reply
7
Image Description
Image Description

Kumod Yadav

Building Voltko, Kri... • 1m

Dear Medial, Let suppose I am a trial user and forget to cancel auto pay and next month money deducted automatically so if I request you that I don't want to continue with a subscription (on the same day of deduction) will you refund? if not then wh

See More
5 Replies
7

Arnav Aggarwal

Love to Code | React... • 5m

Ever had a friend join your trip after you’ve booked seats? 🎟️ You’d call support 📞 or tweak the booking. Without a system, it’d be chaos—miscommunication galore! In tech, APIs (Application Programming Interfaces) save us 🦸. They’re the internet’

See More
Reply
2
11
Image Description
Image Description

Abdul Shaikh

Every Dream is Worth... • 5m

Founder: The app is slow. Can we just increase the server size? Backend Dev: So you want to pay more instead of fixing the problem? Founder: ...What's the problem? Backend Dev: Too many database queries, no caching, and inefficient API calls. Fo

See More
4 Replies
9
25
Image Description

Arnav Aggarwal

Love to Code | React... • 5m

Hit an unexpected 'rate limit' message while creating Studio Ghibli-style images on ChatGPT? You weren't alone.This is a great example of API traffic management techniques like Rate Limiting and Throttling. ➡️Rate Limiting - Sets a hard cap; reque

See More
1 Reply
2
11

Mohammed Zaid

Shitposter of Medial • 2m

OpenAI has begun using Google's tensor processing units (TPUs) to power ChatGPT and other products, marking a significant shift away from its reliance on Nvidia chips and Microsoft's data centers. This strategic move aims to reduce the high costs ass

See More
Reply
1
2

Download the medial app to read full posts, comements and news.