What is a BFF microservice? | Why do we NEED it?

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ต.ค. 2024

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

  • @rubiadias7677
    @rubiadias7677 6 หลายเดือนก่อน +1

    Muito obrigada!

    • @MarcoLenzo
      @MarcoLenzo  6 หลายเดือนก่อน

      Obrigado 🙏

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

    What do you think about authorization logic on BFF,authentication is performed by IDP and client gets a token with roles in a scope, and permissions are implemented in bff vs gateway.

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

      I think that is perfectly fine, especially if you don't have the gateway. At times a BFF could also be used to maintain a session. There is a nice blog post written by Okta auth0.com/blog/backend-for-frontend-pattern-with-auth0-and-dotnet/ (ignore the fact it refers to ASP.net and have a look at the sequence diagram).
      I'd personally also impose authorization in the downstream microservices. I generally do that by relaying a JWT so each microservice knows exactly who or what is generating the request and what are its allowed scopes.

  • @kamalkamals
    @kamalkamals 5 หลายเดือนก่อน +1

    a lot of theory video for BFF there is no practice videos ?

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

      What aspect of the BFF would you like to be put into practice? If I can help, I'll be happy to do a video about it.

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

      @@MarcoLenzo just a simple example using js tools