Mukul Pretham

228 posts

Mukul Pretham

Mukul Pretham

@MukulPretham99

CS Undergrad | Backend dev | DevOps | GenAI | System Design | Learning Rust

Hyderabad Katılım Ocak 2025
168 Takip Edilen40 Takipçiler
Mukul Pretham
Mukul Pretham@MukulPretham99·
@SumitM_X Good one, Spring Boot architecture is a very good practical example for LLD
English
0
0
1
335
SumitM
SumitM@SumitM_X·
Explain what design patterns Spring Boot uses internally. Interviewers arent asking if you know the patterns. They are checking if you understand how Spring Boot is architected using them. 1. Singleton Pattern Spring Boot Beans are Singleton by default. When you annotate a class with @ Component, @ Service, or @ Repository, Spring creates only one instance by default. You should say: "All Spring beans are Singleton by default unless specified otherwise with scopes like @ RequestScope, which optimizes memory and ensures a consistent shared object graph." 2. Proxy Pattern Spring AOP (Aspect-Oriented Programming) uses Proxies 3. Observer Pattern Spring Event system = Observer pattern in action. 4. Factory Pattern Spring uses factories everywhere. BeanFactory, ApplicationContext, FactoryBean You define a bean -> Spring decides when and how to instantiate it. 5. Builder Pattern Used in clients like RestTemplateBuilder, WebClient.Builder.
English
5
17
178
9.3K
Mukul Pretham
Mukul Pretham@MukulPretham99·
Almost the whole video was about prompts. LLM are been Fine Tuned enough via SFT phases that we no need to think so must about prompts, rather thinking of how to manage the context window of you session, is the key to AI supposed development. Context Window was always the bottleneck which effect the quality.
English
0
0
0
3.7K
Rahul
Rahul@sairahul1·
Two Anthropic engineers spent 24 minutes exposing every Claude Code feature you didn't know existed. Most people will scroll past this. Don't be most people.
English
141
3.6K
35.8K
10.1M
Mukul Pretham
Mukul Pretham@MukulPretham99·
@SumitM_X T We cannot modify the collection while iterating on it. I recently discovered while solving a dsa problem where i was trying to modify an hashmap while iterating it. It'll cause concurrent modification exception.
English
0
0
0
141
SumitM
SumitM@SumitM_X·
What will be the output? List<String> list = new ArrayList<>(List.of("a", "b", "c")); list.stream().forEach(e -> { if (e.equals("b")) list.remove(e); }); System.out.println(list);
English
11
1
44
7.9K
Mukul Pretham
Mukul Pretham@MukulPretham99·
Both have same idea. The difference is Observer pattern is implemented in our codebase where situations like something should happen when event occurs and we orchestrate using classes. Pub/Sub is same things but used to decouple the systems and facilitate asynchronous communication between them. Simple Observer pattern is doen internally on the codebase, Pub Sub is for 2 system to communicate asynchronously.
English
0
0
0
6
Ojas Sharma
Ojas Sharma@OjasSharma276·
Most people don't know the difference between Observer pattern and Pub/Sub(Publisher/Subscriber). Do you know the difference?
English
9
0
33
1.6K
Prem
Prem@PremChauraisya·
What is more revelant in 2026?? - Learning Ai skills - DSA - Computer Fundamentals
English
56
2
75
4.8K
Mukul Pretham
Mukul Pretham@MukulPretham99·
the async communication between services might get destroyed if the message queues which facilitates the communication crashes. Nothing is perfect there are ways to face it. 1. Using managed distributed service instead on hosting our own instance of a queue, the vendors give us crash recovery out of the box. 2. The Jobs with are pending are marked as pending when the system crashed, Which we can be deal with it once the system is online agian.
English
0
0
0
105
Aanya
Aanya@xoaanya·
Backend Developer interviewer: If message queues decouple your services, why can a single queue become the biggest bottleneck in your system?
English
23
1
49
5.9K
Mukul Pretham
Mukul Pretham@MukulPretham99·
For 2 systems to communicate they need to pass info between them. REST is based on HTTP protocol which is used mostly communication between servers and clients which involves JSON parsing. MCP is based on JSON RPC which is also based on HTTP, and its main objective is to expose the functionalities via executable remote functions. These Functions are nothing but Tools which LLM use. The client like an claude desktop calls these MCP servers from which they get response form the executed fucntions, eg fetching a GitHub repo etc. They both use the same protocols, The difference is their purpose, we can implement our own MCP via simple HTTP and TCP, The particular senario of a LLM using Tools via a client and get response for a server is MCP. And general Web client and server communication is REST.
English
1
0
0
27
Sai Reddy
Sai Reddy@yuj_unite·
Interviewer: Both REST and MCP are used to connect to third-party systems. what’s the difference between them?
English
3
0
11
324
Simran
Simran@debugingwithsim·
Anyone's got a good resource for system design?
English
1
0
2
179
Mukul Pretham
Mukul Pretham@MukulPretham99·
@DINESHVERM578 Rust, it has a very different learning curve than all other languages. Rust is made for people who understand the drawbacks or there previous lang and want to improve performance and productivity. Cpp- manual memory management Java - Runtime Overhead Python - Everything.
English
0
0
1
206
Dinesh Verma
Dinesh Verma@DINESHVERM578·
Name a programming language that’s difficult to learn as a beginner 👇
English
85
3
85
7.4K
Mukul Pretham
Mukul Pretham@MukulPretham99·
@0xPrajwal_ When we read blogs posts of big tech and get hyped up or when we are high.
English
1
0
1
47
Prajwal
Prajwal@0xPrajwal_·
Saturday System Design Question:- When do you move from monolith to microservices?
English
51
5
79
12.5K
Mukul Pretham
Mukul Pretham@MukulPretham99·
@uday_devops AWS does not assign a single IP for your app unless you have a static IP. Usually AWS assign IP dynamically when ever service restarts.
English
0
0
0
5
Uday👨‍💻
Uday👨‍💻@uday_devops·
Interviewer: My EC2 instance IP address changes automatically while the instance stops and starts. What could be the reason for this issue?
English
33
17
240
44.2K
Mukul Pretham
Mukul Pretham@MukulPretham99·
@SidJain_80 Branching in BSTs go way more deeper then of B or B+ Trees usually we can store millions records with a depth of just 4 in B Trees.
English
0
0
0
27
Sid
Sid@SidJain_80·
Interviewer: Why do databases use B-Trees instead of Binary Search Trees?
English
25
5
117
18.3K
Mukul Pretham
Mukul Pretham@MukulPretham99·
The videos are never stored in the AWS, AWS only has the meta data of the shows and all the content. Open Connect, Netflix's own CDN which is in almost in every IPS across the regions, is hit when user press play, each CDN server get traffic form regions near it, Hence the load is distributed. Open Connect is the thing which made Netflix playback latency so low.
English
1
0
1
117
avrl ☘
avrl ☘@avrldotdev·
Applied System Design (Real Scale) 6 Netflix's Zero Buffer Streaming Architecture Problem When a new season of a hit show drops at midnight, 100M people hit 'Play' at the same time. Why doesn't the AWS cloud where Netflix runs crash?
avrl ☘ tweet media
English
10
23
195
5.9K
Mukul Pretham
Mukul Pretham@MukulPretham99·
@SumitM_X When the req goes through the ISP the IP is changed to its own public IP, so when a 2 users are on same ISP then there both IP are same, Even though they are different uses. Ports are assigned by ISP are mapped to original ports but there can be reused very quickly.
English
0
0
2
573
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.5K
Deep
Deep@NehraWorkss·
Striver. Raj Vikramaraj was placed at Amazon from NIT. Good package. Great company. But kept getting messages from juniors. "Bhaiya how do you prepare?" "Bhaiya which resources?" Started making DSA videos to answer them. No fancy setup. Just screen recording and passion. Quit Amazon at peak career. Everyone thought he was crazy. Built TakeUForward. Free DSA sheet used by millions. A2Z DSA course that became the bible for placements. Cracked by students at Google, Microsoft, Amazon. All crediting one free sheet. The Amazon engineer who left to teach for free. Ended up building the most trusted placement resource in India.
English
20
11
123
38K
Mukul Pretham
Mukul Pretham@MukulPretham99·
@Divyansh91565 Same here. going through burnout hoping the fire reignites like before.
Mukul Pretham tweet media
English
0
0
0
29
divyansh
divyansh@Divyansh91565·
this is how my github looks right now… and honestly - it looks like shit - no real projects - no meaningful commits am I cooked guys? I'm a sophomore btw 😭😭..
divyansh tweet media
English
19
1
68
12.1K
Mukul Pretham
Mukul Pretham@MukulPretham99·
JWT is a way we authenticate a user, RAG is a way we provide extra context for an LLM based on natural language queries. New approaches don’t replace the old ones they build on them. For example, we moved from session-based authentication to JWTs, not because sessions “died,” but because JWTs offer advantages in certain scenarios like scalability and stateless systems. Saying “session-based auth is dead” or “web development is dead” is just noise. That kind of thinking lacks perspective. The reality is: technologies evolve, they don’t suddenly become useless. A lot of what you see online is exaggerated takes meant to grab attention not to inform. Don’t fall for that.
English
0
0
2
34
Zerion
Zerion@zerion0·
RAG is dead JWT is Dead what next > Webdev is Dead > devops is Dead > AI/ML is Dead
Zerion tweet media
English
227
18
906
60K
Mukul Pretham
Mukul Pretham@MukulPretham99·
Real production traffic is much bigger than the dev environment. And the lazy loading makes it more slow, where when we fetch users we don't fetch all its info, the info is fetched as we ask for it like getOrder again users db pool and tries to fetch, which usually keep db occupied all the time
English
0
0
0
567
SumitM
SumitM@SumitM_X·
You write: List<User> users = userRepo.findAll(); for (User u : users) { System.out.println(u.getOrders().size()); } Why is this slow in production but fine in dev?
English
23
5
106
26.7K
Mukul Pretham
Mukul Pretham@MukulPretham99·
@SumitM_X may be its cached based on the post ID, with an evection policy combined with Lazy Loading.
English
0
0
0
29
SumitM
SumitM@SumitM_X·
As a developer, have you ever wondered: When Instagram loads comments instantly… Are all comments fetched in one API call? Or lazy loaded with pagination?
SumitM tweet media
English
4
0
30
7.7K