REST vs RPC vs GraphQL API - How do I pick the right API paradigm?

REST vs RPC vs GraphQL API - How do I pick the right API paradigm?

Ambient Coder

3 года назад

138,557 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@jeffreycui9933
@jeffreycui9933 - 24.11.2023 07:34

Thank you for the excellent video. But why use PUT for a search instead of using GET?

Ответить
@darkkuja22
@darkkuja22 - 15.09.2023 23:05

the high hats of the rap music in the background are very distracting

Ответить
@user-oj6dl6jb4n
@user-oj6dl6jb4n - 31.08.2023 16:27

where is soap?

Ответить
@lemannequin7203
@lemannequin7203 - 09.07.2023 16:51

excellent

Ответить
@LarryPeteet
@LarryPeteet - 05.06.2023 00:10

Excellent, Thank you!

Ответить
@dennisk648
@dennisk648 - 02.06.2023 03:45

There are no such a “problems” in Rest CRUDs. It is not a protocol, but an agreement, a pattern

Ответить
@pubdigitalix
@pubdigitalix - 17.05.2023 12:17

What happens to SOAP web services? Many enterprises use it a lot.

Ответить
@TomassoMd
@TomassoMd - 20.03.2023 02:33

Important aspect of RPC that was not mentioned: in general RPC leads to coupling of client and server, that is, implementation of server actions is reflection of what client (or particular implementation of client) needs. This limits flexibility and reusability. It is great for creating APIs that are going to be used closely with a particular product, but that limits potential future exposition of the API to other usages, like launching a public API for the product. Since the server API was designed around product needs (usually more high level actions and lacking granularity), moving to a different use case or opening up the API might be difficult to untangle.

Ответить
@erik1974Fortal
@erik1974Fortal - 16.02.2023 16:16

GRAPHql is always POST.

Ответить
@Gorlung
@Gorlung - 11.02.2023 19:29

Why is for search in your REST example the PUT method being used and not the GET method?

Ответить
@qiksar1329
@qiksar1329 - 18.12.2022 04:23

Swagger and tRPC are worth a mention

Ответить
@soniablanche5672
@soniablanche5672 - 08.12.2022 16:27

There's nothing stopping you from customizing the REST Api to get smaller payloads by using query params to tell the server what fields you want.
/api/user/1?q=name,age for example would return name and age only.

Ответить
@vladasolovei6169
@vladasolovei6169 - 04.11.2022 00:57

cool!

Ответить
@wasd3108
@wasd3108 - 28.10.2022 20:23

deactivate, rest, PATCH /users/user-1 , status: 'deactivated'
there's no need for actions

Ответить
@swainscheps
@swainscheps - 27.09.2022 00:10

really appreciate this. As others have noted...too many go straight to the bits and bytes and skip the practical considerations. Great video. Two thumbs up.

Ответить
@TheHalloween81
@TheHalloween81 - 05.08.2022 10:54

Try to reduce noise of background music, when it's on high nodes you are barely audible, TBH it's not adding any value.

Ответить
@dennycrane2938
@dennycrane2938 - 02.08.2022 01:57

"with rest and rpc the api often returns fields that the client doesn't use" -- this is true, however, modern rpc frameworks like grpc do have things like FieldMask which solves this problem.

Ответить
@keivansf3459
@keivansf3459 - 27.07.2022 10:56

Thanks!

Ответить
@maloxkurambada1129
@maloxkurambada1129 - 22.07.2022 05:04

nice and clean

Ответить
@josevalentinmoralesrobles9429
@josevalentinmoralesrobles9429 - 15.07.2022 16:58

Great video, easy to understand and with a lot of useful information.

Ответить
@bharatjadhav9075
@bharatjadhav9075 - 15.07.2022 15:53

bas na bhau
kiti ata .rest paryant mahit hot ata jara jast hotay

Ответить
@femi9594
@femi9594 - 13.05.2022 13:40

Great video

Ответить
@jinshuenjameslo9647
@jinshuenjameslo9647 - 18.04.2022 13:29

Not enough info on RPC. The pros/cons of rest api and rpc depends on how you implement the apis in the backend. You could have a rest api that does more actions too (search, retrieve, update and return updated resource for example)

Ответить
@ahmadkelany
@ahmadkelany - 22.03.2022 18:14

Thanks very much, that's really helpful.

Ответить
@mahdizarepoor8964
@mahdizarepoor8964 - 21.02.2022 18:41

That was a neat video about them . I really enjoyed you explanation . Thanks

Ответить
@wishniks
@wishniks - 12.02.2022 11:20

Nice session that provides overview of the various types of API. Separate videos detailing each of the types along with examples would be really helpful!

Ответить
@sultanmuammad595
@sultanmuammad595 - 06.02.2022 07:49

Thanks for such a good series. Its quite hard to find such series. Mostly are based on coding only and dont cover the theoretical part.

Ответить
@faiqkhan7545
@faiqkhan7545 - 04.02.2022 10:08

yo sir, why aren't you posting now a days. please post series like this. thankyou

Ответить
@wololo1657
@wololo1657 - 26.01.2022 10:18

Thank you for creating this video. I was a bit confused about the use case for both RPC and GraphQL but now I understand the tradeoffs well enough to know when it's worth using one over the other. One thing I would've liked though, which maybe useful for future videos, is to have an example use case for each, that goes into detail for a simple application, which would illustrate tradeoffs potentially better.

Ответить
@hn031
@hn031 - 06.01.2022 14:39

Can two of these be combined in a single application?

Ответить
@maxxiao5651
@maxxiao5651 - 28.11.2021 21:04

Best IT explanation video watched ever! Clear and Precise! Love it!

Ответить
@aarontheeranitpongtongmuan233
@aarontheeranitpongtongmuan233 - 28.11.2021 13:33

Great explanation. Thank you so much.

Ответить
@C0sm1c_Owl
@C0sm1c_Owl - 28.11.2021 00:54

thanks!

Ответить
@patricktamal6366
@patricktamal6366 - 10.11.2021 14:58

Very helpfull Thanks.

Ответить
@ankk98
@ankk98 - 30.10.2021 23:11

Thank you for this series. Learnt a lot of important stuff that is not so easily available.
Suggestion: please add some examples of each case, maybe you can use a tool like postman

Ответить
@saketmodi6280
@saketmodi6280 - 02.10.2021 12:15

rest api : good for exposing crud operations
rpc : good for exposing several actions
Graphql: Good when need data filtering on client side.(Flexibility)

Ответить
@audreydelgado2198
@audreydelgado2198 - 07.09.2021 00:37

Great information & explanation. Thank you .

Ответить
@aryanrahman3212
@aryanrahman3212 - 09.07.2021 20:37

Just what I was looking for!

Ответить
@chiranjiveesaksham5173
@chiranjiveesaksham5173 - 28.06.2021 23:41

Thanks for explaining in simple and easy way.

Ответить
@nikthough3110
@nikthough3110 - 07.06.2021 02:44

The way you explain is just simply golden. Subscribed and Liked.

Ответить
@rogervezaro
@rogervezaro - 03.06.2021 21:28

Very helpfull video, thank you!

Ответить
@vivarantex
@vivarantex - 02.06.2021 23:17

great

Ответить
@__init__k917
@__init__k917 - 24.05.2021 19:31

Brooo you are awesome 🤘🤘🤘, I am grateful to discover this channel

Ответить