Replying to @aryanlabde
On a lot of things, side hustles, gym, study.
That second hour is where the most progress is.
Replying to @RahulKrishnaa28
Great point, a lot of people skip this because you actually have to try other peoples products. But it’s important.
3 questions to answer before writing a line of code.
1. Who actually has this problem specifically?
2. How will they find out it exists?
3. What's the smallest version that proves your idea works?
C retweeted
Rate limiting when developing with LLMs isn't optional.
Redis handles this at scale. But you don't need it yet.
Instead, add a rate limit table to Supabase. Track user ID, timestamp, request count.
Fixed window is simplest, query on each request, increment if under the limit, block if over.
There is one issue with this - concurrent requests.
If two requests come in simultaneously for the same user, both can read the count before either increments it, and both pass through.
At low traffic this rarely matters, but it's a real tradeoff worth knowing.
A fix to this is to increment atomically.
Instead of read → check → increment as separate steps, you do it in a single database operation.
In Postgres you can use UPDATE ... RETURNING.
So when do you actually migrate to Redis?
When your atomic Postgres updates become the bottleneck under concurrent load.
Or when you're seeing latency on the rate limit check itself.
Or when you need distributed rate limiting across multiple servers.
Until then, the Supabase table is enough.
Build simple. Migrate when the problem is real, not imagined.
Replying to @csaba_kissi
I use claude desktop chat. I don't feel the need to move to an AI IDE.
Replying to @fidexcode
Best is having 1 main AI model, then other free versions for smaller / less relevant questions.
Replying to @corbin_braun
If i had a time machine I'd invest in good domains instead of bitcoin
Rate limiting when developing with LLMs isn't optional.
Redis handles this at scale. But you don't need it yet.
Instead, add a rate limit table to Supabase. Track user ID, timestamp, request count.
Fixed window is simplest, query on each request, increment if under the limit, block if over.
There is one issue with this - concurrent requests.
If two requests come in simultaneously for the same user, both can read the count before either increments it, and both pass through.
At low traffic this rarely matters, but it's a real tradeoff worth knowing.
A fix to this is to increment atomically.
Instead of read → check → increment as separate steps, you do it in a single database operation.
In Postgres you can use UPDATE ... RETURNING.
So when do you actually migrate to Redis?
When your atomic Postgres updates become the bottleneck under concurrent load.
Or when you're seeing latency on the rate limit check itself.
Or when you need distributed rate limiting across multiple servers.
Until then, the Supabase table is enough.
Build simple. Migrate when the problem is real, not imagined.
