> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/feature-management-experimentation/new-to-fme/sdks-and-customer-deployed-components/examples/sdk-factory-instance.md). Agents can also search and read this documentation through its [MCP server](https://developer.harness.io/~gitbook/mcp).

# Manage Multiple Web Components with a Single SDK Factory Instance

Learn how to share a single SDK factory instance across multiple micro frontend web components.

This [code example](https://github.com/kleinjoshuaa/Multiple-Web-Components), contributed by Joshua Klein, shows how to employ a shared SDK module injected into each of multiple micro frontend JS files. This approach allows for independent development and tooling without having multiple SDK factory instances running in the same browser.

## Micro frontends

Micro Frontends are a relatively new architectural style that involves extending the concept of microservices to the front end of an application.

Essentially, in a micro frontend architecture, each UI module is developed, deployed, and maintained independently. This allows independent teams to move faster and have more control over their individual components. Similarly to microservices this requires well-defined interfaces and APIs to ensure that intercommunication between micro frontends scales and is maintainable.

In this [example](https://github.com/kleinjoshuaa/Multiple-Web-Components), we demonstrate how to use Harness FME as a shared utility that is in scope for each micro frontend.

## Next steps

* Go to [JavaScript SDK](https://developer.harness.io/feature-management-experimentation/new-to-fme/sdks-and-customer-deployed-components/client-side-sdks/client-side-standard-sdks/javascript-sdk.md) to review the JavaScript SDK factory and client methods.
* Go to [Browser SDK](https://developer.harness.io/feature-management-experimentation/new-to-fme/sdks-and-customer-deployed-components/client-side-sdks/client-side-standard-sdks/browser-sdk.md) to review the lightweight Browser SDK.

{% @harness-feedback/feedback %}
