Why your Microservices need GraphQL?

  Рет қаралды 3,842

YourTechBud Codes

YourTechBud Codes

Күн бұрын

Пікірлер: 18
@ngneerin
@ngneerin 3 жыл бұрын
How can you make use of populate functionality of mongoose to improve performance with graphql?
@YourTechBudCodes
@YourTechBudCodes 3 жыл бұрын
Interesting question. We'll I haven't used Mongoose at all, but I guess populate is a feature to manage relationships. If I'm not wrong the same question can be extended for SQL joins. We don't want to GraphQL server to join the data when the driver/db can do it in an optimised manner. There is no easy answer here. The way we handled this problem in SpaceCloud is that we took control of the "Planning" step. Think of it as looking down the entire query tree then firing join queries upfront. In other words, you fire a different query to retrieve the posts when the author field is asked in its selection set vs when it isn't. This way we delegate the responsibility of joining data to the underlying database wherever possible. Hope that answers your question.
@khaled_osman
@khaled_osman 3 жыл бұрын
@@YourTechBudCodes so then when creating items in mutations you still need communication between the microservices to store the id references/relationships across the databases & microservices correct? federation will only handle the querying part and redirect it to to the corresponding microservice, but for mutations you need to handle that yourself
@YourTechBudCodes
@YourTechBudCodes 3 жыл бұрын
Thats right. You need to handle that piece yourself. However, the mode of communication can be event driven or synchronous based on the requirement.
@MeenakshiSekar
@MeenakshiSekar 3 жыл бұрын
Explained in a simple terms which made us to realize why graphql
@YourTechBudCodes
@YourTechBudCodes 3 жыл бұрын
Glad you liked it
@sureshvadapalli8251
@sureshvadapalli8251 2 жыл бұрын
Thank you, Very Nicely explained. One question related to the orchestration pattern you explained... I have two different Microservices Customers and Products and each have a different database. I have a work flow orchestration layer that exposes one API endpoint and aggregates the response and returns it to the front end. If I use GraphQL to implement this use case, I still have to call the two underlying APIs and aggregate the result. correct? How does it help?
@YourTechBudCodes
@YourTechBudCodes 2 жыл бұрын
Glad you liked the video. That is correct. Graphql provides you with the mechanism to join the results of the different endpoints together. All you need to do is write the logic to call each endpoint individually and not worry about stitching at all. This becomes even easier when using tools like SpaceCloud which will let you do all this without writing a single line of code.
@alialsubaie8529
@alialsubaie8529 3 жыл бұрын
Thank you 💗, keep it up buddy 👍
@YourTechBudCodes
@YourTechBudCodes 3 жыл бұрын
Glad you liked it!
@jasonalinton
@jasonalinton 3 жыл бұрын
Incredible video
@YourTechBudCodes
@YourTechBudCodes 3 жыл бұрын
Glad you liked it!
@subrahmanyagurumurthy5083
@subrahmanyagurumurthy5083 3 жыл бұрын
Thank you!
@YourTechBudCodes
@YourTechBudCodes 3 жыл бұрын
Glad you liked it!
@Nilesh_Narkhede
@Nilesh_Narkhede 3 жыл бұрын
Insightful..
@YourTechBudCodes
@YourTechBudCodes 3 жыл бұрын
Thanks buddy
@ayoadeabolaji9339
@ayoadeabolaji9339 3 жыл бұрын
Interesting... "GraphQL is to API Servers what SQL is to Databases"
@YourTechBudCodes
@YourTechBudCodes 3 жыл бұрын
That's how I look at it. Thoughts?
Using GraphQL to make Microservices Communicate!!
12:46
YourTechBud Codes
Рет қаралды 3 М.
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 180 М.
Hilarious FAKE TONGUE Prank by WEDNESDAY😏🖤
0:39
La La Life Shorts
Рет қаралды 44 МЛН
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
The Hidden Cost Of GraphQL And NodeJS
28:35
ThePrimeTime
Рет қаралды 201 М.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 119 М.
Microservices explained - the What, Why and How?
18:30
TechWorld with Nana
Рет қаралды 906 М.
Change Data Capture for Microservices
50:46
InfoQ
Рет қаралды 3,7 М.
GraphQL vs REST: Which is Better for APIs?
7:31
IBM Technology
Рет қаралды 217 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,3 МЛН
What Is GraphQL? REST vs. GraphQL
5:15
ByteByteGo
Рет қаралды 434 М.
НЕ ДАМ ЕЁ В ОБИДУ😡 #shorts
0:24
Паша Осадчий
Рет қаралды 1,6 МЛН
Making of Marble in Factory #shorts #ashortaday #indianstreetfood
0:59
Indian Food Vlogs
Рет қаралды 6 МЛН
Down Spout Catch Basin Installation to French Drain
0:58
Komar Project
Рет қаралды 6 МЛН
Это лютый угар 🤣 | приколы Арсен Симонян
0:14
Арсен Симонян
Рет қаралды 294 М.