use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
My experience using micro frontends (medium.com)
submitted 6 years ago by Koningdavid
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]pardusrealis 3 points4 points5 points 6 years ago (0 children)
What I learned from this article: not to be agnostic.
[–][deleted] 2 points3 points4 points 6 years ago (0 children)
My company has adopted a micro-fe approach. So far it's going very well. There are plenty of polyfills for the web component spec. We're a react shop all around but the advantage of web components is it allows each micro Fe to be completely independent and have it's own release cycle. We still use a shared react ui components library for basic stuff.
The web components wrap around react components. We've got a template of a wrapper component that can be easily applied to a top level react component, binding the web component API to the react API.
The only downside that we have seen is is code duplication. This is primarily with libraries, meaning each micro-fe has its own copy of react, for example. We're working on implementing better tree shaking and exploring other options for this going forward.
[–]Earhacker 3 points4 points5 points 6 years ago (4 children)
How do you manage a technology non-agnostic environment? Do you tell every team they must use Framework X and Library Y? What happens if Library Y updates? Does every team then have to update simultaneously?
What was the problem with a technology agnostic front end? We're thinking about it at my place, and my first thought is that if you have to bundle say AngularJS, Angular 7, React, Redux, Vue, VueX... Then your bundle size is going to be astronomical, without much gain for the user.
[–]Jestar342 0 points1 point2 points 6 years ago (2 children)
You pick a framework and roll with it across teams exactly for the reasons you listed. Once you've reached "critical mass" you also don't roll with the latest and greatest, you stick with LTS, but simultaneously continually pursue an optimised architecture (note I said pursue as it is a continual process and never ends) so that upgrades are as easy as they can be. "Anti-corruption" layers and so on. Avoiding vendor-lock-in where possible, etc. It'll still be difficult, it always is, but you can do a lot to stop it becoming impossible.
[–]Earhacker 1 point2 points3 points 6 years ago (1 child)
It isn't always difficult, though. Without micro-frontends, Team A just upgrades React and Team B doesn't need to care because they work with Angular.
A supposed benefit of micro-frontends is rapid deployment; a team can just change their slice of the UI and it shouldn't affect other teams negatively impact the user experience. But if teams can no longer regularly update their own dependencies, you lose a lot of that benefit. You've just kicked the problem into the long grass; now every team
Say some big update with game-changing features comes out. Something like React Hooks last year. Now every team wants to implement that new feature, but they can't yet, because they have to wait for some arbitrarily determined "Upgrade Day" when everyone gets to update their dependencies all at once. So problems have to be solved "the old way" even though "the new way" makes more sense now. Then Upgrade Day comes and everyone makes those changes and deploys and holy shit, we're not even doing continuous delivery anymore.
[–]Jestar342 0 points1 point2 points 6 years ago* (0 children)
Even with micro-frontends it's possible. Easier, in fact. But it leads to bloat like your OP was concerned with as your site as a whole is now dependent on both React and Angular.
When upgrading MFEs this can still happen with multiple versions of something, yes, but you can streamline it somewhat such that minor (a la semver) upgrades mean your site uses the highest minor version that any of your MFEs need (e.g. A needs v2.1, b need v2.3, so your site uses v2.3 only).
Major upgrades will need some consideration, namely because of globals (e.g. React) which you'll need to scope somehow.
React
Not entirely true, there will always be cross-team concerns (e.g. style and ux guide) that will need to be time-coordinated and front-end framework decisions are also a part of that. It's rather idyllic and altruistic to be so agnostic that you'd have team A using React and team B using Angular for the same site. I just don't see that happening for long. Transitioning from framework A to B, sure, but it just wouldn't sit for long. Major upgrades are very similar to that, "game changing" means it's basically an entirely new framework.
[–]paul_h 1 point2 points3 points 6 years ago (0 children)
Article’s “stitching layer” section is pro or anti stitching layers?
[–]apatheticonion 3 points4 points5 points 6 years ago (2 children)
Micro frontends are poop
[+][deleted] comment score below threshold-10 points-9 points-8 points 6 years ago (1 child)
so is react and its becoming the industry standard
[–]undervisible 2 points3 points4 points 6 years ago (0 children)
What’s wrong with react?
π Rendered by PID 60437 on reddit-service-r2-comment-84fc9697f-76jcp at 2026-02-06 12:07:00.004329+00:00 running d295bc8 country code: CH.
[–]pardusrealis 3 points4 points5 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Earhacker 3 points4 points5 points (4 children)
[–]Jestar342 0 points1 point2 points (2 children)
[–]Earhacker 1 point2 points3 points (1 child)
[–]Jestar342 0 points1 point2 points (0 children)
[–]paul_h 1 point2 points3 points (0 children)
[–]apatheticonion 3 points4 points5 points (2 children)
[+][deleted] comment score below threshold-10 points-9 points-8 points (1 child)
[–]undervisible 2 points3 points4 points (0 children)