Best thing is human AI collaboration in auto research
The big jumps are still suggestions I gave from my intuition
But I was able to get those approaches because Opus gave me so many experiments to analyse
23.
"Not just another" builder/founder/developer from India🇮🇳.
Looking to connect with more builders, indie hackers and founders across the globe.
Let's join hands if this sounds like you.
Python "asyncio": "await" vs "asyncio.create_task()"
They’re not interchangeable.
"await" waits for a coroutine to complete.
"asyncio.create_task()" schedules a coroutine to run concurrently with other tasks.
Here’s the difference:
# Sequential: ~4 seconds
await fetch("A")
await fetch("B")
# Concurrent: ~2 seconds
task_a = asyncio.create_task(fetch("A"))
task_b = asyncio.create_task(fetch("B"))
await task_a
await task_b
Why does this matter?
With sequential "await", B starts only after A finishes.
With "create_task()", both tasks can make progress while waiting for I/O.
Remember:
- "await" → wait for a result.
- "create_task()" → schedule concurrent work.
- "await task" → wait for scheduled work to finish.
When to use what?
Use "await" when the next operation depends on the current result.
Use "create_task()" when independent operations can overlap.
One caveat: "asyncio" provides concurrency, not automatic CPU parallelism.
Writing async code isn't enough. You need to structure it for concurrency.
A common FastAPI misconception: lifespan events run once for the entire application.
Not exactly.
They run once per application instance, typically once per worker process.
For example, if you start FastAPI with 4 Uvicorn workers:
uvicorn main:app --workers 4
And your lifespan looks like this:
@asynccontextmanager
async def lifespan(app: FastAPI):
print("Starting application")
app.state.cache = await create_cache()
yield
await app.state.cache.close()
You should expect the startup code to run in each worker process.
That means:
- 4 workers can create 4 cache instances.
- An ML model may load 4 times into memory.
- Each worker may create its own database connection pool.
- Shutdown cleanup runs separately for each worker.
Why does this matter?
If each worker's database pool allows 20 connections, 4 workers could allow up to 80 connections in total.
The key lesson: use lifespan for resources owned by a worker process. Use dependencies for request-scoped resources, and use external infrastructure when state must be shared across workers.
In FastAPI, understanding the process boundary is just as important as understanding the request lifecycle.
#FastAPI#Python#BackendEngineering
11K Followers 2K Following💎Affiliate Marketing #MMO, Entrepreneur ✍️Build an online business system🎯
🔔Subscribe to my newsletter → https://t.co/mTTWYI9c47
62 Followers 151 Following33 | Building infrastructure-level AI from India | Connecting with builders & indie hackers who care about agents, security, and open source
278 Followers 359 Following🌍 AI Global Growth & Developer Ecosystem
🛠️ Building Global Developer Communities
🤖 LLMs · Agents · AI Infra · Open Source
https://t.co/yKzgqa1Ppj
244 Followers 728 FollowingFormer software engineer, gamer, and YouTube-creator rediscovering coding with Codex - and turning experiments into apps, tools, mods, and game projects.
4K Followers 5K Following🌐 Web3 Builder & Crypto Researcher
📈 Navigating the markets & tracking the next big narrative.
🪂 Sharing vetted, high-potential Airdrop guides before they go
174K Followers 9K FollowingScale your business with https://t.co/S7ETrP7Kn4
$ 180M+ Client Revenue Generated | 64 Awards And Counting | Agile Growth Systems That Move at Cheetah Speed.
8 Followers 33 FollowingStaff Engineer | Mother of 2 🧒🧒| Big Data @GEVernova specializing in large-scale data processing and analytics, Womens Network Leader
62 Followers 151 Following33 | Building infrastructure-level AI from India | Connecting with builders & indie hackers who care about agents, security, and open source
11K Followers 2K Following💎Affiliate Marketing #MMO, Entrepreneur ✍️Build an online business system🎯
🔔Subscribe to my newsletter → https://t.co/mTTWYI9c47
497 Followers 107 FollowingWeb Developer. I help businesses stand out online by building professional websites that are fast, responsive and help convert visitors to customers.
278 Followers 359 Following🌍 AI Global Growth & Developer Ecosystem
🛠️ Building Global Developer Communities
🤖 LLMs · Agents · AI Infra · Open Source
https://t.co/yKzgqa1Ppj
244 Followers 728 FollowingFormer software engineer, gamer, and YouTube-creator rediscovering coding with Codex - and turning experiments into apps, tools, mods, and game projects.
4K Followers 4K Followingwe keep moving because it's an everyday thing
always remember Movement No Be for everybody
#Football//#Relationship vibes//#Daily quotes//#Memes 🤣//
4K Followers 5K Following🌐 Web3 Builder & Crypto Researcher
📈 Navigating the markets & tracking the next big narrative.
🪂 Sharing vetted, high-potential Airdrop guides before they go
23K Followers 25K FollowingBuilding a New App. Subscribe for breaking everything in the world. DM for ads & collab. Respect X policies. 𝗧𝘂𝗿𝗻 𝗢𝗡 🔔😍 in case @TheGreatBreaker