Member-only story
Profiling React
The Case Of A Serverless Single-Page React App
There’s a lot of information in the term “Serverless Single-Page React App”. Let’s look at what it tells us first.
In our context, an “app“ is short for web-application. It specifies the category of our software. A web-application interacts with the user dynamically. It avoids interruptions of the user experience between successive pages. This way, it distinguishes from web-sites. It rather appears to be a desktop application.
“React.js” is the technology we use. React is a JavaScript library that creates and manipulates an HTML5-compatible Document Object Model (DOM). React allows the developer to write code in a declarative way as if the whole page is rendered on each change. Technically, React renders only the sub-components that actually change. It uses a virtual DOM. That is an in-memory data-structure cache. React computes the differences to the real DOM and updates it efficiently.
“Single-Page” is the architecture of our app. It implies that our whole app consists of a single HTML page. Rather than loading entire new pages from a server, it rewrites the current page.
“Serverless” computing is a cloud-computing execution model. In this model, the cloud provider does not provide dedicated (real or virtual) servers. But the provider manages the allocation of resources dynamically.
When required, your code runs on myriads of servers concurrently. If not required, your code runs on a single one server…