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

Поділитися
Вставка
  • Опубліковано 15 лис 2024

КОМЕНТАРІ • 7

  • @rubiadias7677
    @rubiadias7677 7 місяців тому +1

    Muito obrigada!

  • @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