Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Backends for Frontends Pattern

Pragya Keshap answered on March 1, 2023 Popularity 7/10 Helpfulness 5/10

Contents


More Related Answers

  • can i learn backend before frontend
  • front end and back end
  • is javascript front end or backend
  • front end and back end meaning
  • understand frontend
  • java front end back end
  • Backends for Frontends pattern BFF
  • What is Backends for Frontends Pattern - BFF ?
  • Design Backends for Frontends pattern BFF — Microservices Communications Design Patterns
  • Backends For Frontends
  • backend to frontend api
  • is javascript a front end or backend language

  • Backends for Frontends Pattern

    1

    Backends for Frontends pattern basically separate API Gateways as per the specific frontend applications. So we have several backend services which’s are consumed by frontend applications and between them we put API Gateway for handling to routing and aggregate operations.

    But this makes a single-point-of failure. So In order to solve this problem BFF offers to create several API Gateways and grouping the client applications according to their boundaries and split them different API Gateways.

    A single and complex API Gateway ca be risky and becoming a bottleneck into your architecture. Larger systems often expose multiple API Gateways by grouping client type like mobile, web and desktop functionality. BFF pattern is useful when you want to avoid customizing a single backend for multiple interfaces.

    So we should create several API Gateways as per user interfaces. These API Gateways provide to best match the needs of the frontend environment, without worrying about affecting other frontend applications. The Backend for Frontends Pattern provides direction for implementing multiple gateways.

    Look at the image. There are 3 API Gateways, one for the Web, one for the Mobile, another for the Desktop applications.

    So with following “Backend for Frontend” (BFF) pattern, we have created 3 API gateways that can provide a different APIs tailored for each client application type.

    For example, in this image, mobile client needs different API requirements and can be developed specific APIs into API Gateway Mobile services. In example of different requirements, you can think product listing page, and think that listing products, paging, sorting can be differentiate some specific cases.

    As you can see that we have understand the Backends for Frontends pattern, so now we can apply this pattern in our e-commerce architecture.

    Popularity 7/10 Helpfulness 5/10 Language javascript
    Source: Grepper
    Tags: javascript
    Link to this answer
    Share Copy Link
    Contributed on Mar 01 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.