DEV Community

Cover image for Creating Macro Benefits from Micro Frontends
Alex Patterson for CodingCatDev

Posted on Edited on Originally published at codingcat.dev

Creating Macro Benefits from Micro Frontends

Original: https://codingcat.dev/podcast/1-25-micro-frontends

▶ Watch on YouTube & Subscribe to CodingCat.dev

**Creating Macro Benefits from Micro Frontends **is a CodingCat.dev podcast episode featuring Alex Gogan alongside Alex Patterson focused on Angular, Design, React. We sit down to chat with Alex Gogan about how Sherpa is leveraging Microfrontends. 1.25 - Creating Macro Benefits from Micro Frontends: https://codingcat.dev/podcast/1-25-micro-frontends 00:00 - Intro

00:20 - Meet Alex Gogan

03:37 - Slide Deck

05:54 - Micro Frontend adoption

07:30 - Team Collaboration with Bi-Modal

08:24 - Microservices

11:00 - Team Structure in Micro Frontend

13:00 - Visual representation of Micro Frontend

16:45 - Watch the full video breakdown on YouTube or explore the architectural notes, chapters, and official documentation links below.

Questions

Alex's Slides

  1. What is a Micro Frontend?
    • architecture & design pattern "An architectural style where independently deliverable frontend applications are composed into a greater whole" - Martin Fowler Missing presentation layer of micro services
    • independent
    • small in scope
    • complete
    • designed to work along each other
    • kinda like power rangers
    • mindset
      • often in the shadow of technical topics focused on intricate details of implementation
      • squads/teams/pods can focus on a value add for their customers/users e.g. team Search can focus entirely on "Finding the right product as fast as possible"
      • enables cross functional collaboration (diverse and inclusive teams can excel)
      • reduces friction between backend/frontend/design/product/ux/analytics/qa
  2. Can we talk about Basecamp on how you are using that for project organization?
  3. took a lot of inspiration on ShapeUp for our internal process which we name sherpUp
  4. we run a series of projects for 6 weeks, each project can take 2-6 weeks each with at least 2 team members
  5. each team is, depending on the topic cross-functional and at least a designer + developer
  6. tackle often e2e, if a new feature requires a change in our data model/api/frontend the team will take care of everything
  7. teams are independent and enabled
  8. Do micro frontends speed up development time?
  9. Yes
  10. advocate for incremental development through frequent deployments (~ 10 deployments per week) and close collaboration with partners
  11. feature flagging
  12. remote configuration
  13. keep our tech stack and tooling consistent across all frontends
  14. Can you still utilize a design system?
  15. Yes, it becomes easier if everything is in a mono repo
  16. currently in the process of migrating the various frontends we have into a monorepo using the nx workspace
  17. Adapting Atomic Design (think in atoms, molecules and organisms)
  18. Organisms often remain as part of individual apps but adhere to the design system
  19. shared CSS classes + variables + mixins help quite a lot
  20. How does a typical architecture look for you?
  21. we provide a Javascript SDK that acts as an application shell and turns any website into a host
  22. SDK or shell manages and maintains registered embedded elements (what we call micro frontends) that will be appended to the host DOM via iFrames
  23. inter-application communication is created through a message bus via post messages
  24. hosts are typically not in our control and our embedded elements need to be very flexible and adaptable to various environments e.g. devices/platforms and resolutions but also how much you can interact with each
  25. How does security play into Micro Frontends?
  26. we embrace embeddability through iFrames which provide a strict isolation especially in sandbox mode
  27. important to limit functionality and content security policies
  28. when using post messages to communicate between iFrames, checking for origin/destination and validating payloads is necessary
  29. security teams might bring up concerns around click-jacking and end users not being able to distinguish or understand which part of the experience is part the host and which is ours ⇒ we visually indicate through "powered by sherpa°" and logo placements to provide clarity, nothing technical but very relevant

Links

Video Chapters & Timestamps

Jump directly to any segment of Creating Macro Benefits from Micro Frontends on YouTube using the timestamped chapters below:

Resources, Links & Official Documentation

Related CodingCat.dev Tutorials & Podcast Episodes

  • Creating and Using Kendo UI: We have Alyssa Nicoll and Kathryn Grayson from Progress teach us all about KendoUI and how they maintain this frontend library.
  • Creating Code in Your Browser with StackBlitz: We sit down with Tomek Sulkowski to talk about how he started as an original engineer for StackBlitz. We also talk about Web Containers and how StackBlitz is le...
  • Design Systems with Web Components: How Stencil can build Web Components for any Design System. This is a developers view into how a design system will work in any size organization.

Frequently Asked Questions (FAQ)

What are the main takeaways from Creating Macro Benefits from Micro Frontends?

We sit down to chat with Alex Gogan about how Sherpa is leveraging Microfrontends. 1.25 - Creating Macro Benefits from Micro Frontends: https://codingcat.dev/podcast/1-25-micro-frontends 00:00 - Intro

00:20 - Meet Alex Gogan

03:37 - Slide Deck

05:54 - Micro Frontend adoption

07:30 - Team Collaboration with Bi-Modal

08:24 - Microservices

11:00 - Team Structure in Micro Frontend

13:00 - Visual representation of Micro Frontend

16:45 - Throughout this podcast, Alex Gogan breaks down real-world implementation details for Angular, Design, React so developers can apply these patterns directly in production.

How do you implement Angular best practices in production?

When adopting Angular and Design in a production stack, start by validating your configuration against the Angular Developer Guide (Signals, standalone components, and enterprise Angular workflows). Focus on incremental adoption, automated testing, and observability so your team can measure performance and developer velocity improvements at each stage.

Where can I watch the full Creating Macro Benefits from Micro Frontends walkthrough and find related code resources?

You can watch the complete video session for Creating Macro Benefits from Micro Frontends on the CodingCat.dev YouTube channel. For a deeper dive into Angular, check out our related guide: Creating and Using Kendo UI.

Top comments (0)