Hosting Fullstack Trainer / Consultant / Coach at Angular Architects Founder of fancy Development - your partner for direct project support Project Support Coach/Consultant Implementation Helping customers on their very individual challenges with knowledge and hands on support.
of technical layers DDD and Decomposition into Microservices UI Business Logic Data Access Data UI BL Feature 1 Data Classic Layered Architecture Feature 1 Feature 2 Feature 1 Feature 2 DA Feature 1 Microservice 1 BL Feature 2 Data DA Feature 2 Microservice 2 BL Feature n Data DA Feature n Microservice n ? Backend for Frontend
UI Feature 1 Data Data Data Feature 2 Feature n UI UI Shell Microservice 1 Microservice 2 Microservice n How to… ▪ do authentication and authorization? ▪ handle CORS? ▪ aggregate data if needed? ▪ make the Microservice API universal? ▪ optimize the Microservice API for the UI? Backend for Frontend
Frontend API Gateway/BFF Microservice 1 Microservice 3 Microservice 2 Frontend Implement an API Gateway as a single entry point for your frontend. Advantages ▪ Loose Coupling ▪ Enhanced Performance ▪ Improved Security Data Center / Kubernetes / etc.
Frontend API Gateway UI Authentication Authorization API Microservice API Microservice API Microservice API 3rd Party System View Based API General Purpose API UI UI Shell
for Frontend What is a Backend for Frontend (BFF)? If the API Gateway knows about the individual needs of an individual frontend, fulfills this needs and work with this frontend hand in hand – we call it a Backend for Frontend.
Frontend Features of a good API Gateway ▪ Reverse Proxy – pass through Data to specific Destinations ▪ Data Aggregation – optimized Responses / one request per view ▪ Data Caching – saving requests and I/O load ▪ Authentication – handling OAuth flow and Tokens