官术网_书友最值得收藏!

Introduction to Server-Side Rendering and Next.js

For quite some time, client-server architecture was one of the most widespread patterns in large-scale software development. Even systems that run purely on one computer are often designed this way. This allows us to clearly separate concerns: the server takes care of heavy business logic, persistent storage, accessing data from third-party services, and so on, and the client is responsible solely for presentation to end users.

This architecture also allows us to have multiple clients connected to one backend: mobile apps, IoT devices, third-party REST API consumers (for example, external developers), and the web, for example.

In the early days of web development, it was not that way though. Servers were responsible for everything. Usually, it was a combination of DB, app itself, template engine, a bunch of static assets (images, CSS, and so on) all baked together into a monolithic app. Later on, it became obvious that this kind of architecture does not scale well.

Nowadays, the modern web is moving back to client-server architecture with a clean separation of concerns and concrete responsibilities for each component. Server-side apps deal with data and client-side apps deal with presentation of that data.

We will cover the following topics in this chapter:

  • What is a single-page app?
  • Introduction to React
  • Single-page app performance issues
  • Server-side rendering with React
主站蜘蛛池模板: 荣昌县| 乐清市| 三河市| 武平县| 沈丘县| 平陆县| 云龙县| 大英县| 色达县| 洪雅县| 拉萨市| 新闻| 青州市| 阿鲁科尔沁旗| 永福县| 兴化市| 萍乡市| 普宁市| 浦县| 南昌县| 始兴县| 中山市| 灵山县| 南华县| 大港区| 广河县| 广丰县| 新蔡县| 南平市| 门源| 潜山县| 德州市| 大新县| 奇台县| 星座| 福州市| 连南| 武夷山市| 阿坝县| 东乡县| 德保县|