API Composition Pattern in Microservices

preview_player
Показать описание

Build Your Own Redis / DNS / BitTorrent / SQLite - with CodeCrafters.

In the video, I explained the concept of API composition for querying multiple microservices efficiently. By utilizing an API gateway as a middleman, we can streamline requests to various services, improving system performance and user experience. The advantages of API composition include simplicity, a centralized interaction point for users, abstraction of implementation complexity, enhanced security measures, and the ability to mask poor design decisions. Additionally, API composition is valuable for transitioning from a monolithic to microservices architecture. Despite its benefits, considerations like resource consumption and potential latency issues should be noted.

# Recommended videos and playlists

If you liked this video, you will find the following videos and playlists helpful

# Things you will find amusing

# Other socials

I keep writing and sharing my practical experience and learnings every day, so if you resonate then follow along. I keep it no fluff.

Thank you for watching and supporting! it means a ton.

I am on a mission to bring out the best engineering stories from around the world and make you all fall in
love with engineering. If you resonate with this then follow along, I always keep it no-fluff.
Рекомендации по теме
Комментарии
Автор

Very clean, summed up everything in one place. Tho i know about composition and API gateway but I have not seen anyone covering these many challenges with API Gateway. 👏

AlgorithmDecoded
Автор

Thanks again! I am learning new things just by seeing your videos.

SudhanshuShekhar
Автор

Thank you Arpit, can you also talk about design patterns in coming videos ?

Bluesky-rnmc
Автор

Though we have distributed system but looking at the disadv. of API gateway(composer), can I say that it's making my system a single point of failure ? Also isn't it going to make our system very very complex if we add mutiple API gateways to remove this single point of failure ?

Aditya-usgj
Автор

From what I understand, Python has parallelism (can use multiple cores) but it does not have support for true concurrency like Go (due to global interpreter lock) so only 1 thread gets executed per core.

matrixtoogood
Автор

An amazing video, by an amazing teacher.
have some questions though : -
1. Why the composer isn't a Single point of failure, and just a bottleneck, cannot get it, as per me, it should had been a SPoF
2. If we use a composer or doesnt use it, the number of network calls remains same right?.. only thing is the complexity is transferred from client to the composer, but, the number of network calls, thus, the latency should remain same right ?
3. there would be may clients which are calling the same composer, so as to keep a track of all the responses of different microservices, then filtering them, and finally concatinating the one which are from a same user, will increase the latency right ?... then composer makes system slow...or anything which i am missing ?

DurgaShiva
Автор

why not have a sperate components that fills the reasonability of aggregation of a read model from an infrastructure that stores the events from 3 services [order, payment, logistic ]

ebrahimmansur
Автор

The best videos on internet. Couplebof questions. Should it always be api gateway or can it just be another microservice taking the ownership of only those APIs that needs compositions. 2). This is most common use case as we split microservices and when gui needs to show something in an particular way that needs composition. This leads to latency in gui display, is there any pattern or anything to handle such cases to avoid latency. 3) since its api gateway do these gateways have extentions capability where we can write our composition in them ?

kgck
Автор

Can we say it's facade pattern applied at service level instead of class/obj level?

ravividap
Автор

Thanks Arpit for sharing and making things easy to understand for us. What all resources or books do you follow to learn things in such detail. Please share.

theSDE
Автор

One of the service down would be the first line as soon as you talk about multiple services not after half an hour

chessmaster
Автор

where do i learn about the prereqrusites for your course ?

mutasimahmed