Omar

1.4K posts

Omar banner
Omar

Omar

@faroque_eee

SWE @meta, ex @aws, ex @apple

San Francisco Katılım Nisan 2015
1.6K Takip Edilen212 Takipçiler
Sabitlenmiş Tweet
Omar
Omar@faroque_eee·
Why CPU utilization based Load balancing increase latency and errors? In modern application system, compute runs on VM with many other VM on a host machine. We call other VM that runs with our application antagonist. Now come to an example:
English
1
0
3
1.1K
Ani
Ani@its_ani9·
@0xlelouch_ For 10TB clickstream data, I’d use HyperLogLog instead of HashSet. It estimates distinct user IDs using hashed values with very low memory. Process data as a stream/distributed job (Spark/Hadoop). Time: O(N), memory: very small, scalable for billions of records.
English
1
0
1
750
Abhishek Singh
Abhishek Singh@0xlelouch_·
Interested in Data structures? Count the number of distinct user IDs across a 10TB clickstream. Solve that!
English
6
3
114
14.4K
Omar
Omar@faroque_eee·
@SumitM_X Omar says: it does not makes sense. It can be same user but always true.
English
0
0
0
1K
SumitM
SumitM@SumitM_X·
Tech Lead speaks in the meeting: "If two requests come from same IP and port, they are the same user." Manager says : "Makes sense" What do you say?
English
26
5
182
68.4K
Omar
Omar@faroque_eee·
@nehanagarr Lots of romantic movie by SRK.
English
0
0
0
10
Neha Nagar
Neha Nagar@nehanagarr·
The USA has Technology. China has Manufacturing power. What does India have?
English
4.2K
86
1.3K
287.5K
Omar
Omar@faroque_eee·
I often asked why we should learn in the age of AI. Here is my thought in this article, please read it and share your thoughts.
Omar tweet media
English
1
0
0
29
Omar
Omar@faroque_eee·
Do you remember when you joined X? I do! #MyXAnniversary Wow
Omar tweet media
English
0
0
0
16
Omar
Omar@faroque_eee·
@SumitM_X String is not the right choice here however It can be like: private static final Object lock = new Object();
English
0
0
0
45
SumitM
SumitM@SumitM_X·
Is this code ok ? String lock = "LOCK"; synchronized (lock) { // critical section }
English
14
2
51
14K
Javarevisited
Javarevisited@javarevisited·
Java Stream Interview ☕ What happens here? Stream.of(1,2,3,4) .parallel() .forEach(System.out::print); Is output order guaranteed?
English
7
1
21
3.8K
Arpit Bhayani
Arpit Bhayani@arpit_bhayani·
With agentic slop, we are trading software reliability for shipping velocity and calling it progress. It isn't. Systems are more fragile than ever, and engineers building them no longer trust their code to hold up in real-world edge cases. I am pro-AI, but this will backfire - big time.
English
152
187
2.2K
90.1K
Ashok Sahoo
Ashok Sahoo@ashoKumar89·
@javarevisited They do not load everything. - Only recent chats/messages are fetched first. - Data is paginated and lazy loaded as user scroll - Uses local storage/cache on device - Backend uses indexed queries + shrading So it feels instant because it loads just what you need first
English
1
0
2
247
Javarevisited
Javarevisited@javarevisited·
As a developer, have you wondered: When you open WhatsApp, your entire chat history loads almost immediately. For billions of messages stored… How is this data fetched so quickly?
English
2
0
9
3.4K
Omar
Omar@faroque_eee·
@EOEboh You need frequent read and stale data is acceptable. This is a general case.
English
0
0
0
5
Captain-EO 👨🏾‍💻
Simple question for engineers: How do you decide when to add a cache vs when not to?
English
25
4
90
11.8K
Omar
Omar@faroque_eee·
@javarevisited Also, they might have support from the solution architect to solve the problem. Lol
English
0
0
0
5
Omar
Omar@faroque_eee·
@javarevisited Because they offload everything on the cloud.
English
1
0
0
16
Javarevisited
Javarevisited@javarevisited·
There are engineers who can design systems serving millions… but can’t get hired because they didn’t practice interview puzzles.
English
2
1
15
1.6K
Omar
Omar@faroque_eee·
@LauraLoomer You are not a parent, are you?
English
0
0
0
3
Laura Loomer
Laura Loomer@LauraLoomer·
Is there anything worse than a crying baby on a plane? I wish parents would control their children. It’s so disruptive. I refuse to believe a baby cries for 10 hours. At some point this is just bad parenting, right?
English
24.2K
433
7K
9.7M
Omar
Omar@faroque_eee·
Nice explanation by Claude: Lock = a key to a room (only one key, only the holder can leave and hand it back) Semaphore = a bouncer with N wristbands (anyone leaving can hand their wristband to the next person)
English
0
0
0
40
Omar
Omar@faroque_eee·
@hiarun02 Cache keeps data on dram which is ephemeral, restart just wipe everything out normally unless you use other way to keep it safe. Database is persistent storage.
English
0
0
0
41
Arun
Arun@hiarun02·
Backend Developer interviewer : If cache is faster than a database, why isn’t everything stored in cache ?
English
75
16
508
88.2K
Omar
Omar@faroque_eee·
@SumitM_X People talked about perception, calculation. I want to add: Memory because 500 can be represented as a Boolean flag(>=500 or not), single byte instead of integer 4byte or more. That reduce rpc latency tax and memory requirements.
English
0
0
1
250
SumitM
SumitM@SumitM_X·
As a developer, Have you ever wondered: WHY in LinkedIn… you see "500+ connections" Why not exact number? What trade-off has LinkedIn made?
SumitM tweet media
English
14
0
50
28.6K