Implementing islands composition with Qwik
In order to implement islands composition, we can either start from scratch or on top of an existing framework. As there are many frameworks that enable islands architecture already, it makes sense to sketch an approach that starts with an existing monolithic approach, ultimately extending this with micro frontend capabilities.
One of the frameworks that starts as monolithic but has everything that it needs to be adjusted and used as a basis for a distributed web application is Qwik. Qwik is a modern web framework that is based on a novel approach referred to as resumability. Using resumability, the framework is capable of instantly making any part of the page interactive if needed. As developers, we mostly don’t need to care which parts need to be made interactive or when. All these decisions are made by the compiler, which is capable of making bundle splitting on the functional level.
Extracting parts of individual functions...