Hamid Afghan (@NanoNulla) header
Hamid Afghan (@NanoNulla) profile picture

∞

Earth, Solar System
Joined May 2017
Recently, I was responsible for engineering of a microservice to generate dynamic legal PDF documents in huge volume. By design the interconnected platforms send requests along the data to generate the requested document, store it in S3 like buckets, and return the download link.
1
198
Considering the number of pages it will grow quickly. Since the legal PDF document are not longer than 5 pages (in our case) so the risk of the memory overhead is acceptable.
1
8
The solution of having page views will make maintaining, developing, and testing the PDF documents much faster. At the moment the PDF engine is not released to production but will post if the solution didn't work.
8
“The road to success is always under construction.” — Lily Tomlin
1
78
The real business happens in years not in months.
1
90
Any best practice for: You’ve got 10K+ (id, name) records in PostgreSQL, and need real-time autocomplete in a Laravel + Vue app. User types 3+ characters, and you must return fast, approximate-matching suggestions (10–15 results). #code 🧵
1
220
First, I exposed the @typesense as a sub domain sth search.domain.com but the DNS, TLS ... resulted to increase the latency. While it was in the same server, removed the those extra stuff and backed directly connected to search search. Amazing so far.
1
1
188
The next milestone would be to test it with 260K records and monitor the usage of memory. Also I'm the search duration will be more longer than current one.
1
1
161
Any best practice for: You’ve got 10K+ (id, name) records in PostgreSQL, and need real-time autocomplete in a Laravel + Vue app. User types 3+ characters, and you must return fast, approximate-matching suggestions (10–15 results). #code 🧵
103
If you're building a support team: Always send an automatic “Successfully received” mail the moment a customer contacts you via email. #customer #trust
1
66
Onboarding a new teammate? First, ask them to follow existing patterns — don’t try to change things right away. Once they understand the flow, then they can suggest improvements. Stability first, innovation second. #DevWisdom #Teamwork
2
122
Communication is a kind of respect.
111