Closed mouimet-infinisoft closed 1 week ago
Update on Research Findings:
After conducting thorough research into our current technology stack and compatibility requirements, it's apparent that the proposed solution utilizing Module Federation may not be feasible at this time. Here's a summary of our findings:
Hosting Constraints:
Alternative Solutions:
Next Steps:
Let's discuss further and explore alternative strategies to achieve our goals while ensuring compatibility and feasibility within our current setup.
Let's prioritize a small-scale approach for the initial version of our microapp architecture to avoid over-engineering and complexity. This issue aims to refine our current architecture to support dynamic loading and microapp management within the constraints of Next.js 14 and our hosting environment on Vercel. We'll employ lazy loading techniques and encapsulate each app as an isolated component, with the objective of later refactoring into a full-fledged microapps ecosystem.
Refinement of Current Architecture:
Dynamic Loading Implementation:
Encapsulation of Microapps:
Documentation and Knowledge Sharing:
Title: Prioritizing Simplicity for Initial Microapp Architecture
Comment:
After considering the current state of our project and the complexities involved in implementing a full-fledged microapp ecosystem, we've decided to prioritize simplicity for the first version of our microapp architecture. Our focus will be on encapsulating microapps as much as possible within the codebase to facilitate future refactoring into a more robust ecosystem.
This approach allows us to lay a solid foundation for our microapp architecture while keeping complexity in check. By establishing a standardized structure and developing tooling to streamline microapp creation, we can maintain clarity and efficiency in our development process.
Research and Implementation Approach:
Module Federation:
Custom Registry and Loader System:
Evaluation of Alternatives:
Proof of Concept:
Next Steps: