JSFoo: round the year submissions

Submit talks on JavaScript and full stack engineering round the year

Micro-frontends using stencil.js: Scaling internal frontend products

Submitted by rajat vijay (@rajatvijay) on Tuesday, 4 September 2018

videocam_off

Technical level

Intermediate

Section

Full talk

Status

Submitted

Vote on this proposal

Login to vote

Total votes:  +1

Abstract

Have you ever have to extend a legacy monolith? Have you ever wondered why you can’t make a new module in the technology of your choice? Have you ever envied backend devs for having this great architectural pattern called microservices? This talk will help you extend the microservices pattern to the frontend. Starting from the reasoning for why this pattern make sense for frontend to what are the frontend specific challenges in its implementation.

Outline

  1. Problem Statement
    Most companies nowadays have a single frontend admin app for all business concerns, since they dont want to educate their internal users(which are huge by the way) to use different apps. Aren’t we increasing code matainence and thus destroying developer productivity and happiness by not following the “Single responsibility” and “Separation of concerns” principles? Can we do this without affecting user experience and developer experience(Yes! that is a thing and a pretty important one).

  2. All the possible solutions and the problems with them.

  3. Enter micro frontends. What is it? How does it solves the problem?

  4. What are the frontend specific problems that comes with it and their solutions:

  5. Maintaining same design aesthetics across different apps

  6. Synchronized deployments and health tracking

  7. Performance issues when fetching multiple builds

  8. Session management issues

  9. How to implement this pattern using stencil.js?

  10. A quick introduction to stencil.js

  11. A quick refersher on native web components and shadow DOM

  12. How to create a single application using all three component web frameworks: React, Angular and Vue? How do we practically acheive this? (The high level architecture)

  13. Live Demo! (Showing live how different frameworks work together and how do we inspect them?)

  14. Perks that this pattern comes with:

  15. BYOS => Bring your own stack (Dev happiness).

  16. Different teams responsible for different business concerns => “Separation of concerns”.

  17. Your deployments doesnt break others’ code.

  18. Could be a good technique to migrate your legacy code to a newer technology stack.

  19. Separate repos => More security.

  20. Key takeaways

  21. Single responsibility and Separation of concerns => No need to maintain single frontend codebase for different buisiness concerns

  22. Don’t break others code when deploying yours

  23. Free yourself from some legacy global level settings which doesn’t hold true for your particular use case.

  24. When migrating to a newer technology, no need to do it for the whole codebase in a single pass.

  25. When making a new module, feel free to choose your own technology stack and make your own architectural choices and improve upon the older ones.

Speaker bio

Rajat is a software engineer and an avid open source contributor. He likes to test and play with the latest in technology and has a love for vanilla JavaScript as a language.

After working at various places ranging from a startup where you build products from scratch to a mid level organisation where you are supposed to extend the legacy projects, there is one important thing that he has learnt:
Compose small projects to build a big one, avoid monoliths.

He proposed the micro frontends architecture at his organisation and since then they have been migrating their frontend step by step.

Links

Slides

https://docs.google.com/presentation/d/1L08aja9gefw3Gj8GqQXXyGAxRluB-bY6KsZFMEd8HVY/edit?usp=sharing

Comments

Login with Twitter or Google to leave a comment