Share
Embed
apidays Helsinki & North 2023 - Interface Contracts in Event-driven Microfrontend Architectures, Alexander Günsche, Amazon Web Services
apidays Helsinki & North 2023
API Ecosystems - Connecting Physical and Digital
June 5 & 6, 2023
Interface Contracts in Event-driven Microfrontend Architectures
Alexander Günsche, Senior Solutions Architect at Amazon Web Services
------
Check out our conferences at https://www.apidays.global/
Do you want to sponsor or talk at one of our conferences?
https://apidays.typeform.com/to/ILJeAaV8
Learn more on APIscene, the global media made by the community for the community:
https://www.apiscene.io
Explore the API ecosystem with the API Landscape:
https://apilandscape.apiscene.io/
FOST, powered by apidays PRO
June 29, 2023
Transcript
56 slides
-
UPDATE THIS PRESENTATION HEADER IN SLIDE MASTER © 2022, Amazon
Web Services, Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. Interface Contracts in Event-driven Microfrontend Architectures Alexander Günsche Senior Solutions Architect [email protected] -
UPDATE THIS PRESENTATION HEADER IN SLIDE MASTER © 2022, Amazon
Web Services, Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. Microfrontend Architecture -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Traditional Microservices Architecture API Gateway / GraphQL Frontend Monolith µSvc µSvc µSvc µSvc µSvc Server Client -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Traditional Microservices Architecture API Gateway / GraphQL Frontend Monolith µSvc µSvc µSvc µSvc µSvc Server Client Domain Boundary -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Microfrontends “with” Microservices API Gateway / GraphQL µSvc µSvc µSvc µSvc µSvc Server Client Integration Layer / Shell µFE µFE µFE µFE µFE -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Microfrontends “with” Microservices API Gateway / GraphQL µSvc µSvc µSvc µSvc µSvc Server Client Domain Boundary Integration Layer / Shell µFE µFE µFE µFE µFE -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Microfrontends “as” Microservices Server Client Integration Layer / Shell µFE µFE µFE µFE µFE -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Microfrontends “as” Microservices Server Client Domain Boundary Integration Layer / Shell µFE µFE µFE µFE µFE -
UPDATE THIS PRESENTATION HEADER IN SLIDE MASTER © 2022, Amazon
Web Services, Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. Stand-alone Infrastructure -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Stand-alone Infrastructure Server Client Microfrontend Stack -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Stand-alone Infrastructure Server Client Content Delivery Network Object Storage Microfrontend Stack -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Stand-alone Infrastructure Server Client Content Delivery Network Object Storage API Gateway Function(s) as a Service Serverless Database Microfrontend Stack -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Stand-alone Infrastructure Server Client -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Stand-alone Infrastructure Server Client -
UPDATE THIS PRESENTATION HEADER IN SLIDE MASTER © 2022, Amazon
Web Services, Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. Microfrontends Composition -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. HAJ, CGN TFA 05/07/2022 23/06/2022 SEARCH FLIGHTS 2 adults, 3 children FILTERS RESULTS https://www.example.com HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 Microfrontends Composition -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. HAJ, CGN TFA 05/07/2022 23/06/2022 SEARCH FLIGHTS 2 adults, 3 children FILTERS RESULTS https://www.example.com HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 Microfrontends Composition The Million Dollar Question: Where are the context boundaries? -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. HAJ, CGN TFA 05/07/2022 23/06/2022 SEARCH FLIGHTS 2 adults, 3 children FILTERS RESULTS https://www.example.com HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 Microfrontends Composition The Million Dollar Question: Where are the context boundaries? -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. HAJ, CGN TFA 05/07/2022 23/06/2022 SEARCH FLIGHTS 2 adults, 3 children FILTERS RESULTS https://www.example.com HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 Microfrontends Composition The Million Dollar Question: Where are the context boundaries? -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. HAJ, CGN TFA 05/07/2022 23/06/2022 SEARCH FLIGHTS 2 adults, 3 children FILTERS RESULTS https://www.example.com HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 HAJ BUY TFS 14:33 10:16 498,00 € TFS HAJ 17:57 13:21 Microfrontends Composition The Million Dollar Question: Where are the context boundaries? -
UPDATE THIS PRESENTATION HEADER IN SLIDE MASTER © 2022, Amazon
Web Services, Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. APIs in Distributed Frontend Services -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Web page Web Page -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. MFE 1 Search Form MFE 2 Results List Web page Web Page -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Initial Config Initial Config MFE 1 Search Form MFE 2 Results List Web page Web Page -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. MFE 1 Search Form MFE 2 Results List Integration Layer Web page Web Page -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. MFE 1 Search Form MFE 2 Results List Integration Layer Web page Web Page Events -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. MFE 1 Search Form MFE 2 Results List Integration Layer Web page Web Page New Config -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. MFE 1 Search Form MFE 2 Results List Integration Layer Web page Web Page New Config -
UPDATE THIS PRESENTATION HEADER IN SLIDE MASTER © 2022, Amazon
Web Services, Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. The OpenMFE Standard -
UPDATE THIS PRESENTATION HEADER IN SLIDE MASTER © 2022, Amazon
Web Services, Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. The OpenMFE Standard* * not affiliated with, or endorsed by, Amazon/AWS -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Interface Contracts An interface contract extends the technical capabilities of an API with a formalised commitment between an API provider and one or more consumers to interact under agreed rules. -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. The OpenMFE Standard OpenMFE Specification Runtime Governance Interface Contracts Manifest Structure https://openmfe.lxg.de/architecture/specification Tooling https://github.com/openmfe Best Practices https://openmfe.lxg.de/development -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Runtime Governance Microfrontend Integration Layer Web page Web Page “Side Channel” Interaction: Using browser context for bypassing defined interfaces. For example inject HTML into the host page to load CSS. -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Runtime Governance Microfrontend Integration Layer Web page Web Page “Side Channel” interaction: Using browser context for bypassing defined interfaces. For example inject HTML into the host page to load CSS. “Side Channel” interaction must be avoided. It breaks encapsulation and will have unintended side effects. -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. https://json-schema.org/ -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Documentation and Tooling -
UPDATE THIS PRESENTATION HEADER IN SLIDE MASTER © 2022, Amazon
Web Services, Inc. or its affiliates. © 2023, Amazon Web Services, Inc. or its affiliates. Incremental Modernisation -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Incremental Modernisation Legacy Website -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Incremental Modernisation Legacy Website New Website ??? -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Incremental Modernisation Legacy Website MFE 1 MFE 2 -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Incremental Modernisation Legacy Website New Website MFE 1 MFE 2 MFE 3 -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Incremental Modernisation Legacy Website MFE MFE MFE New Website MFE MFE MFE MFE 1 MFE 2 MFE 3 -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Incremental Modernisation Legacy Website MFE MFE MFE New Website MFE MFE UI Library with themes for different environments strongly recommended. MFE -
INTERFACE CONTRACTS IN EVENT-DRIVEN MICROFRONTEND ARCHITECTURES © 2023, Amazon Web
Services, Inc. or its affiliates. Incremental Modernisation -
UPDATE THIS PRESENTATION HEADER IN SLIDE MASTER © 2022, Amazon
Web Services, Inc. or its affiliates. Thank you! © 2023, Amazon Web Services, Inc. or its affiliates. Alexander Günsche [email protected]