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

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
主站蜘蛛池模板: 高密市| 毕节市| 江永县| 灵武市| 青州市| 合肥市| 南陵县| 建平县| 鄂托克旗| 星子县| 上杭县| 安福县| 安仁县| 电白县| 莒南县| 延寿县| 霍林郭勒市| 山西省| 屯昌县| 乐平市| 静宁县| 龙门县| 元阳县| 临西县| 左贡县| 宝清县| 山西省| 潜山县| 高尔夫| 海安县| 洪湖市| 安宁市| 图木舒克市| 长顺县| 锡林浩特市| 宜宾县| 冀州市| 鹤峰县| 宝应县| 嘉定区| 保康县|