Sam Khawasé
@samkhawase
Followers
380
Following
3K
Media
318
Statuses
3K
Engineering @Cloudflare 🧸 #GirlDad. Taleb’s Surgeon. Ex-farmboy. 🌾 (Opinions are all mine, not my employer’s) 🇮🇳 ❣️ 🇩🇪
Berlin, DE
Joined April 2009
Flâneuring early in the morning to get a head start for the day. भ्रमणप्राणायाम 🧘♂️
3
0
9
There's a special feeling to get something optimised. I had a similar experience on a side project where going back to my university knowledge of Data Structures helped reduce latency by 10x and cloud bill by 50%.
One of the benefit of being an early riser is I get lots of free hours to work on side projects. This morning I shaved one complex workflow and took it from 2.5s to 400ms. There's a special pleasure in going deep into the system and fixing latency... 1/n
0
1
1
Moral of the story: get up early and get cracking. Big performance gains often come from digging in deep, and sometimes the best profiler is your own curiosity. 🧵🔚
1
0
0
After the fix, the same request now takes ~400ms even with a complex signature validation logic and complex XML parsing. Cloudflare Dev stack's futuristic tooling makes it easy to debug and fine tune such problems. Anyway... a huge win and a great start of the day 5/n
1
0
0
This is where @CloudflareDev stack shines. Workers +KV+Cache = a ridiculously fast, edge-native environment for faster debugging and quick shipping. `npx wrangler tail` and the dashboard offer great debugging support :chefs_kiss: 4/n
1
0
0
Once I had the full visibility and control over the response flow, the fix was obvious. A combination of parallel requests, smart use of caching and some lazy regex to use XML parsing did the trick.... 3/n
1
0
0
The culprit? A weird slowdown deep inside multi-pronged API calls and XML parsing layer. I fleshed out these components individually and even manually ran the XML parsing logic just to isolate where the time was being spent. It was painful but totally worth it... 2/n
1
0
0
One of the benefit of being an early riser is I get lots of free hours to work on side projects. This morning I shaved one complex workflow and took it from 2.5s to 400ms. There's a special pleasure in going deep into the system and fixing latency... 1/n
1
0
8
“The path is the goal” — Chögyam Trungpa 🪷
We fall in love with the certificate, the accomplishment, the attainment but not the pursuit, the path, the essence of the subject. The arrival is never needing to arrive but in the absolute emotional drive in what you're interested in not about some payoff from that attainment
0
1
5
one of my biggest learnings since joining @Cloudflare is how to handle incidents we operate at a mind boggling scale, and working in observability, I've been in the middle of my fair share of incidents internally, it's always about mitigating impact, figuring out how the root
21
23
467
People dishing out free unqualified advice about Rust, DNS etc could benefit from reading:
4
4
19
What’s the best (free) way to create website logos in the postmodern AI world? My cyclist friend’s nephew’s grand uncle wants to know.
1
0
1
One of the biggest outcomes of having kids is that you completely loose the ability to wake up late. I was largely a night person before kids. I could sleep late and wake up late. After kids, it does not matter how late I sleep. I end up waking at 5-6 am. It forces you to sleep
3
1
28
Get up and act. Get shit done. Remember this passage from Sylvia Plath.
0
0
3
Do we get -3 for each extra lang we speak? Penta/hexalinguals like us would like to know.
Evidence for a new, modifiable, independent factor for extending healthspan: multilingualism https://t.co/KCrKx8mjh4
0
0
4