---
title: "What is the BFF Pattern?"
url: https://daily.dev/posts/what-is-the-bff-pattern--mn4cmqrxj
source_url: https://newsletter.systemdesigncodex.com/p/what-is-the-bff-pattern
type: article
source: "System Design Codex"
published: 2026-04-07T08:49:10.165Z
updated: 2026-04-07T08:49:34.031Z
tags: ["career", "backend", "microservices", "api-gateway"]
reading_time: 3
upvotes: 63
comments: 2
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# What is the BFF Pattern?

**[System Design Codex](https://daily.dev/sources/systemdesigncodex)** · 3 min read · 63 upvotes · 2 comments

## Summary

The Backends-for-Frontends (BFF) pattern involves creating dedicated API gateways for each client type (web, mobile, partner APIs). Each BFF acts as a specialized intermediary that handles client-specific concerns like rate limiting, authentication, caching, and header sanitization. Key advantages include improved resiliency through isolation, client-specific optimization, and faster development velocity. Drawbacks include potential code duplication, growing complexity, and BFF proliferation. Best practices recommend clearly defining client requirements, extracting shared logic into libraries, maintaining clear boundaries, and monitoring performance.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://newsletter.systemdesigncodex.com/p/what-is-the-bff-pattern>

## Community discussion

Top comments from developers on daily.dev.

**@ghost** · 7 upvotes

> Yeah. This is a good thing. But do it only when number of your users will be bigger than number of your microservices

**@fab978** · 0 upvotes

> Nice article

## Similar posts on daily.dev

- [Do you need a Backend For Frontend?](https://daily.dev/posts/do-you-need-a-backend-for-frontend--bdoywmip4) · marmelab · 34 upvotes · 0 comments

---

Tags: [#career](https://daily.dev/tags/career), [#backend](https://daily.dev/tags/backend), [#microservices](https://daily.dev/tags/microservices), [#api-gateway](https://daily.dev/tags/api-gateway)

[View this post on daily.dev](https://daily.dev/posts/what-is-the-bff-pattern--mn4cmqrxj)
