August 2023 Summaries
3 posts from Wundergraph
Filter
Month:
Year:
Post Summaries
Back to Blog
The text discusses the refactoring of monolithic APIs to microservices using the Backend for Frontend (BFF) and Strangler patterns. The BFF pattern involves creating separate backend services for different frontend clients, encapsulating client-specific logic, and optimizing data aggregation, performance, and security. This allows for independent development and scaling of each service. The Strangler pattern is used to migrate monolithic APIs to microservices incrementally, without a full rewrite. It involves throwing an intermediary interface/proxy in front of the old monolith, routing all its functionality to new microservices as they are implemented, and gradually decommissioning the older architecture. The BFF layer acts as a proxy for the Strangler, shielding the frontend from changes to downstream services or data dependencies. WunderGraph is a BFF framework used to consolidate data dependencies into an unified API that can be queried and mutated using GraphQL or TypeScript operations. By combining the BFF and Strangler patterns, developers can migrate monolithic APIs to microservices architecture while minimizing risks and maximizing flexibility.
Aug 18, 2023
2,035 words in the original blog post.
The text discusses the Backends-for-Frontends (BFF) pattern, a way to decouple frontend and backend services. The BFF pattern creates an additional layer of abstraction between the frontend and the core business logic, allowing for more flexible and maintainable codebases. The article highlights five best practices for implementing the BFF pattern: creating one BFF per user experience, not reinventing the wheel by using a framework like WunderGraph, watching out for the fan-out antipattern, handling errors consistently on the BFF, and using a Node-based server to leverage TypeScript. By following these guidelines, developers can build scalable and maintainable BFFs that provide a better experience for both users and developers.
Aug 07, 2023
2,132 words in the original blog post.
A Backend-for-Frontend (BFF) pattern is a specialized server-side API that serves as an intermediary between the frontend and various downstream APIs, aggregating and transforming data as needed before delivering it to the client. BFFs are not just simple proxies; they're purpose-built for one client/user experience, with each being smaller and less complex than an API gateway. They can relieve some of the burden on both your client and backend services, making their codebase more focused and maintainable. Building production-ready BFFs requires understanding the importance of caching, authentication, logging, normalizing errors, integration testing, embracing duplication, and maintaining documentation. Adopting a BFF framework like WunderGraph can simplify the process and provide a better developer experience.
Aug 03, 2023
2,842 words in the original blog post.