2.6. Microservice API
HTTP, REST, JSON
BFF, API Gateway
2.6.2. API gateway
Implement an API gateway that is the single entry point for all clients. The API gateway handles requests in one of two ways. Some requests are simply proxied/routed to the appropriate service. It handles other requests by fanning out to multiple services.
Rather than provide a one-size-fits-all style API, the API gateway can expose a different API for each client. For example, the Netflix API gateway runs client-specific adapter code that provides each client with an API that's best suited to it's requirements.
The API gateway might also implement security, e.g. verify that the client is authorized to perform the request
Netflix API gateway, Zuur
2.6.3. BFF Model
przykład stabilności webapi i mobilnych stron
wersjonowanie w nagłówkach HTTP i q=...
POST, PUT, PATCH, GET, DELETE
2.6.6. Further Reading
TDA Corporation. BFF - Backend for frontend. Year: 2020. Retrieved: 2022-03-28. URL: https://blog.tda.company/bff-backend-for-frontend/