20. Adapter Design Pattern with Examples, LLD | Low Level Design Interview Question | System Design

  Рет қаралды 37,483

Concept && Coding - by Shrayansh

Concept && Coding - by Shrayansh

Күн бұрын

Пікірлер: 56
@rupeshjha4717
@rupeshjha4717 2 жыл бұрын
Another example could be - There was api which needs pin code to fetch temperaturr, but let's say in your use case u want in with city name, then we can have a adpater in between and get pincode by city then call getTemperatureApi(). Great series! Please keep on doing this.
@pawansinghla2149
@pawansinghla2149 7 ай бұрын
Working in Node, not Java, but liked the way you explained, Thanks for making theses videos
@harikavolam7123
@harikavolam7123 2 жыл бұрын
Hi Shrayansh, Thanks for passing all the knowledge..Please keep going..I have watched all your LLD and HLD videos...They are very easy to understand..Thanks for helping me in increasing my knowledge..!
@ConceptandCoding
@ConceptandCoding 2 жыл бұрын
thanks a lot 😊
@dpynsnyl
@dpynsnyl Жыл бұрын
This is very well explained.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Thanks
@satisfyingwalks4010
@satisfyingwalks4010 2 жыл бұрын
Your explanation with real life examples always make it easier to understand, thank you! Also at 15:00 you say perceptive, I think you meant perspective (not trying to be the grammar police, only pointing it bcoz I use to make the same mistake as well).
@ConceptandCoding
@ConceptandCoding 2 жыл бұрын
thanks a lot for the feedback :)
@harshittrivedi1
@harshittrivedi1 Жыл бұрын
Heavily used Design pattern for integration framework and Id reconciliations.
@NeerajSharma-mz4es
@NeerajSharma-mz4es 4 ай бұрын
Really nice, impressive content.
@abhimanyuchauhan7407
@abhimanyuchauhan7407 2 жыл бұрын
Hi Shrayansh ! Thanks for the video, its really helpful :) I see that there are a lot of design patterns which are present. Can you make a video on what all are important / mostly used design patterns from a SDE2 interviews perspective ?
@mahanirvaantantra
@mahanirvaantantra 11 ай бұрын
Learn from an engineering perspective not from an interview perspective.
@gunjanbhatia8286
@gunjanbhatia8286 2 жыл бұрын
Hi Shrayansh, your videos are really helpful. Can you please make one for low level design of chat application. Thanks for the sharing your knowledge with us.
@ConceptandCoding
@ConceptandCoding 2 жыл бұрын
noted thanks
@NeverGiveUp186
@NeverGiveUp186 Жыл бұрын
Great video as always, Shrayansh!! I had seen an interview question which asked to design a Foreign Currency Exchange System. I had no idea then, but now I think it was an application of Adapter Design Pattern. Please correct me if I am wrong. Thanks!
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Yes Sarvesh
@ErenYaegerPhilosophy
@ErenYaegerPhilosophy 3 ай бұрын
The arrow directions don't seem correct for is-a & has-a relationship.
@abhyastimemahabharat
@abhyastimemahabharat 2 жыл бұрын
Hi shrayansh thanks pls make video on : How Notion Sharded Their Postgres Database
@NehaSingla-re6yv
@NehaSingla-re6yv Жыл бұрын
Hi Shreyansh, Can you make a video on facade design pattern.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Noted
@gyanaranjanmallick9714
@gyanaranjanmallick9714 Жыл бұрын
Hi Shreyansh, quick question - 'converting the weight value from pound to kilos', can we consider it as a post processing phase, and we can also call this design pattern a "proxy design" pattern(you discussed postprocessing in proxy design pattern). Or post processing involve some other type of general work, so it may not be suitable to call it "proxy design" pattern? thanks and appreciate your work.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Sorry did not understand, when you said post processing, you mean Async operation
@ankitpahwa8571
@ankitpahwa8571 Жыл бұрын
Isn't this similar to proxy design pattern
@piyushpathak1186
@piyushpathak1186 10 ай бұрын
I guess the adapter design pattern changes the structure of request and response/ just type change Whereas proxy design patterns can do a lot like verifying req, setting rate limit ,etc Correct me if you found something else
@harshinredzone
@harshinredzone 2 жыл бұрын
Dao returns Database entities. API entry point needs DTOs. So, whatever class we create in middle for this, will that be adaptor?
@ConceptandCoding
@ConceptandCoding 2 жыл бұрын
:) kind of we can say, we fetch data from DB, parse it and fill up in the DTO which client wanted. Good example:)
@harshinredzone
@harshinredzone 2 жыл бұрын
@@ConceptandCoding Thanks, man.
@ConceptandCoding
@ConceptandCoding 2 жыл бұрын
@@harshinredzone welcome
@arnavsatrusal2480
@arnavsatrusal2480 10 ай бұрын
@ConceptandCoding
@ConceptandCoding 10 ай бұрын
thanks
@asktostranger8296
@asktostranger8296 2 жыл бұрын
Please arrange the videos in playlist From lecture no 1 to 20
@ConceptandCoding
@ConceptandCoding 2 жыл бұрын
Hi nikhil, pls start from bottom and move Upward, i have added in the title and description of the playlist, kindly check and let me know pls :)
@asktostranger8296
@asktostranger8296 2 жыл бұрын
@@ConceptandCoding thanks for replying sir One question Is the playlist complete ?can we rely on it for interview for LLD Or some videos are left ?
@ConceptandCoding
@ConceptandCoding 2 жыл бұрын
@@asktostranger8296 Many many LLD interview questions are pending, so i am slowly covering all. But with these 20 you should be able to take care of LLD interviews
@premium3968
@premium3968 Жыл бұрын
can we have proxy adapter for preprocessing in above examples..seems like proxy for preprocessing same as adaptter??
@ConceptandCoding
@ConceptandCoding Жыл бұрын
They are very similar but the purpose which used is different. Like proxy if you see it provide same interface and purpose is to control the access. In Adaptor also it's kind of a mediator but it's not the same interface.and it used to connect 2 different interfaces
@srikantsahoo7084
@srikantsahoo7084 8 ай бұрын
Can anyone explain me how we can have an object "WeightMachine" inside the class "WeightMachineAdapterImpl" as "WeightMachine" is an interface ?? Why did we put (new WeightMachineForBabies()) while creating an object of WeightMachineAdapter in main file ??
@punitrai9338
@punitrai9338 4 ай бұрын
There is a HAS-A relationship between them. In the constructor of WeightMachineAdapterImpl, he has passed the reference of WeightMachne, and WeightMachineForBabies implements the WeightMachine interface, so there is an IS-A relationship between these two. So basically whoever class is implementing the WeightMachine interface we can pass that object and it will make code more flexible and easy to maintain as well. Hope you already got the answer.
@SinghFlex
@SinghFlex 3 ай бұрын
Understand DIP principal and then you will have the answer my brother.
@charan775
@charan775 Ай бұрын
12:20 why do we need interface for adapter?
@harishaseri
@harishaseri Жыл бұрын
This pattern is somewhat same as Proxy Design pattern (at least UML is almost same) . just one edge is missing .adaptee implements adapter then it become proxy pattern. what do you think ?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Proxy class parent is the same interface but in adaptor it has different interface. Also intention is different too. Proxy is more like of controlling the access. And adaptor more of providing the compatibility between 2 interfaces
@animay100
@animay100 Жыл бұрын
@@ConceptandCoding I had the same question. Thanks for clarifying.😄
@wrishavbhattacharyya5216
@wrishavbhattacharyya5216 5 ай бұрын
Is it not the same as Proxy design pattern ?
@satyajeetdas6577
@satyajeetdas6577 2 ай бұрын
Correct me if i am wrong , but i think its not same as proxy design pattern , bcoz in proxy it is always two condition if valid then actually logic is executed or allowed if not then some default error message , but here lets take the same example now we want in kg tmrw lets say some other client wants to see the data in different unit so you can just add the new conversion method in interface and logic in the adapter class but how would you do the same in proxy design pattern ! Hope this helps
@bikrantjajware6062
@bikrantjajware6062 Жыл бұрын
This pattern looks alot similar to proxy pattern. Am i missing something ?
@ConceptandCoding
@ConceptandCoding Жыл бұрын
Hi i have covered Proxy pattern too. There is some difference, kindly have a look once Bikrant
@bikrantjajware6062
@bikrantjajware6062 Жыл бұрын
@@ConceptandCoding i saw it, I guess apart from constructor injection there isn't much
@bhagyabeetrootpatel3722
@bhagyabeetrootpatel3722 Жыл бұрын
@@bikrantjajware6062 hey i have the similar doubt, have you find any difference ?
@dsp525
@dsp525 Жыл бұрын
Hi can we get the Source code Link? please
@ConceptandCoding
@ConceptandCoding Жыл бұрын
gitlab.com/shrayansh8/interviewcodingpractise/-/tree/main/src/LowLevelDesign/DesignPatterns
@sabkabhala5892
@sabkabhala5892 Жыл бұрын
Aren't you using the arrows in wrong direction ? also interface implementaion dotted line and then arrow without filled and when we inherit it will be non-dotted lines with arrow and arrow filled. something that i feel you need to improve on.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
:) yes and in one of the Live LLD session, i already mentioned that, i use very simple arrows to define inheritance and composition, as I find them very confusing. And that's work out to me in almost all LLD interviews. May be I am able to convience the interview by thinking out loud. But yes if you understand the concept, arrows we can correct buddy.
@sabkabhala5892
@sabkabhala5892 Жыл бұрын
@@ConceptandCoding yep your videos are informative grateful for that. But those arrows needs to be shown rightly so that your viewers have right stuff printed in their memory.
@ConceptandCoding
@ConceptandCoding Жыл бұрын
@@sabkabhala5892 sure I will do that buddy
@Vas_vites
@Vas_vites 9 ай бұрын
sir isn't it free?
CRUD Operation in Spring boot with Hibernate | CRUD in Hiberana
1:00:16
Docker Compose Tutorial
33:02
Programming with Mosh
Рет қаралды 464 М.
Confronting Ronaldo
00:21
MrBeast
Рет қаралды 33 МЛН
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 28 МЛН
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
3. Observer Design Pattern Explanation, Walmart Design Interview Question, 2022 | LLD System Design
34:34
Adapter Pattern - Design Patterns (ep 8)
26:36
Christopher Okhravi
Рет қаралды 246 М.
Adapter Design Pattern | Explanation with Code in Easy Way! ✌🏻
19:04
19. Design File System using Composite Design Pattern | Low Level Design Interview Question | LLD
21:30
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 101 М.
The Most Important Design Pattern in React
35:04
Cosden Solutions
Рет қаралды 107 М.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 308 М.
3 Powerful Design Patterns You Should Know
14:26
Amichai Mantinband
Рет қаралды 13 М.
Confronting Ronaldo
00:21
MrBeast
Рет қаралды 33 МЛН