3 ms·
I feel like Microservice idea does not seem to translate well to front end. When thinking of microservices, one can think of collection of well encapsulated fun
by tuan 9y ago
I feel like Microservice idea does not seem to translate well to front end.
When thinking of microservices, one can think of collection of well encapsulated functions that are composed together. The keywords are function & encapsulation.
This is not usually the case for frontend development. UI components in the same app can't be completed sealed off of each other. You can model UI component as functions of state, but those functions usually depend on at least 2 globals: DOM event system and styling. This is where encapsulation is broken and leads to all sort of maintenance issues.
- proc0 9y agoIn other words, UI manages monolithic state by definition. Whenever you're able to completely break off from the monolithic state, then probably that logic can be its own app. Typically this is not the case with widgets on the same screen. Usually you want UIs to display integrated data of some kind, that is intertwined with the rest of the app somehow.