Build GraphQL Microservices With Nest.js & Apollo Federation 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

ความคิดเห็น • 31

  • @husinsajjadi5331
    @husinsajjadi5331 ปีที่แล้ว +1

    Thank you Michael. I had a big project and I had to do with microservices and your tutorial helped me a lot!
    God bless you man!

  • @mguay
    @mguay  ปีที่แล้ว

    Get my highly-rated Udemy courses at a discount here: michaelguay.dev/udemy/

  • @monawwarabdullah7438
    @monawwarabdullah7438 ปีที่แล้ว +5

    i started learning about microservices through your videos, now i am able to setup nestjs microservices with kubernetes and docker, can you make a video on best practices of building microservices with kubernetes ?

    • @mguay
      @mguay  ปีที่แล้ว +3

      My new Ultimate Nest.js Microservices course will cover this! Stay tuned for its release in May.

  • @Betelgeuse009
    @Betelgeuse009 8 หลายเดือนก่อน

    Очень хороший туториал по GraphQL , спасибо большое)

  • @qishqish3123
    @qishqish3123 ปีที่แล้ว +2

    Thanks, Great video keep it up

  • @muratasarslan2359
    @muratasarslan2359 ปีที่แล้ว +4

    Hey Michael, thanks for this video 🙂 Apollo Federation 2 is what I'm working on too. We can achieve sync communication between subgraphs. But, what about async communication? subscriptions are not supported AFAIK. The only thing I found on apollo docs is federation-subscription-tools. However, it's far from being a reliable solution & over complicating the scenario.
    Any idea for async communication? would be wonderful if we can do it in Nestjs environment.
    Cheers

  • @gigakvachakhia4777
    @gigakvachakhia4777 ปีที่แล้ว +2

    thank you. good one.

  • @gumayuzi939
    @gumayuzi939 ปีที่แล้ว

    Great video, well explained
    Thanks for sharing

  • @AhmadSalmanKhan-j9t
    @AhmadSalmanKhan-j9t 19 วันที่ผ่านมา

    Hi Michael,
    Is there a way for the subgraph to tell the supergraph to whitelist a query, I was trying to add a custom Directive (public) in the subgraph resolver on a query and wanted to check for that in the gateway and skip token auth for that query. But that is not working in Nestjs.
    Also on the apollo docs, It is mentioned that Introspect and query should never be used in production. So I'll appreciate if you can guide the public on the production setup of this too. Maybe adding other features on the gateway like dynamic configuration control, rate-limiting, Auth etc.

  • @jonhjaider1000
    @jonhjaider1000 5 หลายเดือนก่อน

    Excellent! thank you very much for this!

  • @ricardoalmira6005
    @ricardoalmira6005 ปีที่แล้ว

    Great explanation, thank you

  • @enesgurbuz8652
    @enesgurbuz8652 ปีที่แล้ว +1

    What should I do if I want to use MYSQL ???

  • @g-luu
    @g-luu ปีที่แล้ว

    Thanks. Would like to see how nestjs plays with tRPC

    • @mguay
      @mguay  ปีที่แล้ว +1

      Good video idea. Thanks!

  • @MG-wx8yx
    @MG-wx8yx 4 หลายเดือนก่อน

    Hello Michael, or anyone who can help. My question is, can I replace the url with any public graphql api url that is accessible through graphql playground? Does the name of the service in the subgraphs array matter? Cause I keep getting this error message when I use a public graphql api url: Error: Couldn't load service definitions for "institutions" at (api url), what I'm doing wrong?

  • @ahmedmazendessouky1551
    @ahmedmazendessouky1551 ปีที่แล้ว

    thank you for this great video, I have a question how to exclude some routes that have @isPublic decorator in the auth context?

  • @mahendranath2504
    @mahendranath2504 ปีที่แล้ว

    Thank you so much ✌✌👍👍👌👌🙌🙌🙏🙏😍😍

  • @saadmeddah6914
    @saadmeddah6914 5 หลายเดือนก่อน

    how to inject a laravel service into this gateway ?

  • @mykhailopronin7350
    @mykhailopronin7350 ปีที่แล้ว

    Man, it's amazing

  • @user-zn6yt6kw3f
    @user-zn6yt6kw3f 7 หลายเดือนก่อน

    Hi, how to prevent graphql gateway fail if one of our subgraphs is down? how you handle this? This behavior(actually bug) is completely against the microservices architecture concept and seems apollo doesnt care about it!!

  • @kamiar3001
    @kamiar3001 7 หลายเดือนก่อน

    Is possible to have many-to-many relations in this video you were talking about one user having many posts, so one post belongs to one user, just imagine how it would be possible to have one post belong to many users, how GraphQL can handle it?

  • @codingwithnipu
    @codingwithnipu ปีที่แล้ว

    can you solved the federation with subscription problem in code first?

  • @adriandrozman3404
    @adriandrozman3404 ปีที่แล้ว

    Hello, any updates regarding your Udemy course? thanks!

    • @mguay
      @mguay  ปีที่แล้ว

      Stay tuned for its release in May!

    • @adriandrozman3404
      @adriandrozman3404 ปีที่แล้ว

      @@mguay thank you,instant buy for sure!

  • @enesgurbuz8652
    @enesgurbuz8652 ปีที่แล้ว

    @Module({
    imports: [
    GraphQLModule.forRoot({
    driver: ApolloGatewayDriver,
    server: {
    cors: true,
    "cors:true is redline"
    "Type '{ cors: true; }' is not assignable to type 'Omit'.
    Object literal may only specify known properties, and 'cors' does not exist in type 'Omit'."
    what could be the cause of the error

    • @hinogi
      @hinogi ปีที่แล้ว

      NestJs updated apollo to server v4 so you have to use the express server cors option.

    • @pronixpriv
      @pronixpriv 7 หลายเดือนก่อน

      How did you resolve this issue?

  • @user-fs8ms2dz4p
    @user-fs8ms2dz4p 11 หลายเดือนก่อน

    Hi Sir, I've encountered an error throw Error( ^ Error: A valid schema couldn't be composed. The following composition errors were found: Non-shareable field "User.id" is resolved from multiple subgraphs: it is resolved from subgraphs "posts" and "users" and defined as non-shareable in subgraph "users" at IntrospectAndCompose.createSupergraphFromSubgraphList