프로그래밍
-
CSR과 SSR프로그래밍 2023. 6. 6. 15:14
SPA와 MPA를 먼저 알고가자면 SPA(Single Page Application) 단일 웹 페이지로 돌아가는 애플리케이션 즉, 클라이언트 측에서 한 장의 페이지로 작동하는 기능 정도로 소개할 수 있다. 웹 어플리케이션에 필요한 정적 리소스(html, css, javascript)를 한 번에 모두 다운로드 하고, 그 이후에 모든 일들을 클라이언트 측에서 브라우저가 비동기로 처리하게 된다. 예를 들어, 유저가 어떤 버튼을 클릭하였을 때, 원격 API를 호출해서 데이터를 가져온 후 HTML 문서로 렌더링 하는 일련의 과정이 모두 자바스크립트를 통해 브라우저에서 일어난다. CSR 렌더링 방식이라고도 부르며 react, vue, angular 등이 사용된다. MPA(Multiple Page Applicatio..