Slide 15
Slide 15 text
PROBLEMS AND PITFALLS
➤ Code duplication
➤ As with micro services, a certain share of code duplication is present -
that’s acceptable
➤ If needed, duplicated code can be refactored into libraries or services, but
this increases coupling
➤ Adding business logic into the BFF
➤ Business logic belongs in the downstream services (can be then reused by
different BFFs)
➤ It might be acceptable to address cross-cutting concerns in the BFF, such
as, authorization or logging
➤ Returning unnecessary information
➤ To minimize network traffic, the BFF must only return information that is
required by the client