Skip to content 2.0

Micro-frontends and the Streams API

Author: Natalia Venditto

Date First Published: Wed Jan 04 2023

What is the Streams API and how is it useful for micro-frontends?

The Web Streams API is a standard Web Platform API, that can access a response body sent over the network via the HTTP protocol, when it has been exposed as a readable stream, so a developer can lock a reader. That would be a readable stream, but the API allows us to create writeable streams, as well.

service workers

These type of standards simplify the process of orchestrating micro-frontend applications, because they allow us to consume data from the network, and then pass it to a component, which can then render it.

This article by Thomas Steiner can help you understand streams in the browser more in-depth, and has information about browser support for the time the article was written.