Web
-
Web - MVC 패턴Web/Web 2022. 1. 31. 12:07
MVC(Mode View Controller) MVC 패턴이란? ㆍ MVC 패턴은 디자인 패턴 중 하나이다. ㆍ Model, View, Controller의 줄임말로 애플리케이션을 구성할 때 그 구성요소를 세 가지의 역할로 구분한 패턴을 의미한다. ㆍ 사용자 인터페이스와 비즈니스 로직을 분리해서 서로 영향 없이 독립적으로 설계가 가능하다. MVC 패턴의 특징 ㆍ 애플리케이션의 역할을 세 구간으로 나누어 설계함으로써 서로 간의 의존성이 낮아진다. ㆍ 각 영역이 독립적으로 구성되어 개발자 간 분업 및 협업이 원활해진다. ㆍ 한 영역을 업데이트하더라도 다른 영역에 영향을 주지 않는다. MVC의 구성 요소 컨트롤러(Controller) ㆍ 모델(Model)과 뷰(View) 사이에서 중간 다리 역할을 수행한다. ..
-
Web - REST APIWeb/Web 2022. 1. 30. 18:22
REST REST란? REST는 Representational State Transfer의 줄임말이다. 자원을 이름으로 구분 짓고 해당 자원의 상태를 교환하는 것을 의미한다. 좀 더 구체적으로 설명하자면, HTTP URI를 통해 자원을 명시하고, HTTP Method를 통해 자원을 교환하는 것을 말한다. 이러한 REST는 서버와 클라이언트의 통신 방식 중 하나이다. REST의 장단점 장점 ㆍ HTTP 프로토콜의 인프라를 그대로 사용하기 때문에, REST API 사용을 위한 별도의 인프라를 구축할 필요가 없다. ㆍ HTTP 표준 프로토콜을 따르는 모든 플랫폼에서 사용이 가능하다. ㆍ REST API 메시지가 의도하는 바를 명확하게 나타내기 때문에, 의도하는 바를 쉽게 파악할 수 있다. ㆍ 서버와 클라이언트..
-
Web - GET & POSTWeb/Web 2021. 12. 15. 16:25
GET GET이란? ㆍ GET 방식은 클라이언트에서 서버로부터 어떠한 정보를 요청하기 위해 사용이 되는 방식이다. ㆍ 정보 요청에 필요한 데이터를 URL 주소 끝에 파라미터로 포함되어 전송이 되며, 이 부분을 쿼리 스트링(Query String)이라고 부른다. GET 방식의 예 : www.example.com/show?name01=value01&name02=value02 ㆍ 서버에서는 name01과 name02라는 파라미터 명으로 각각 value01과 value02의 값을 전달받을 수 있다. GET의 특징 ㆍ GET 요청은 불필요한 요청을 제한하기 위해 요청이 캐시 될 수 있다. ㆍ 파리미터에 내용이 노출되기 때문에 민감한 데이터를 다룰 때는 GET 요청을 사용해서는 안된다. ㆍ GET 요청은 브라우저 ..
-
Web - Native App & Web App & Hybrid AppWeb/Web 2021. 10. 21. 22:32
Native App Native App이란? ㆍ 흔히 우리가 자주 사용하는 애플리케이션을 의미한다. ㆍ 모바일 기기에 최적화된 언어로 개발된 앱으로 안드로이드 SDK를 이용한 Java 언어나 iOS 기반 SDK를 이용한 Switf 언어로 만든 앱이 Native App에 속한다. 장점 ㆍ 성능이 Web App, Hybrid App에 비해 가장 높다. ㆍ Native API를 호출하여 사용함으로 플랫폼과 밀착되어 있다. ㆍ Java나 Swift에 익숙한 사용자면 쉽게 접근이 가능하다. 단점 ㆍ 플랫폼에 한정적이다. ㆍ 언어에 제약적이다. Mobile Web App Mobile Web App이란? ㆍ Mobile Web App + Native App을 결합한 형태이다. ㆍ Mobile Web의 특징을 가지면서..
-
Web - OAuth란?Web/Web 2021. 10. 20. 20:46
OAuth란? OAuth의 탄생 배경 ㆍ 사용자는 처음 보는 애플리케이션에 아이디와 비밀번호를 제공하고 싶지 않아 한다. ㆍ 또한, 개인정보를 여러 곳에 입력하면서 피싱에 둔감해지고 무엇보다 애플리케이션이 안전하다는 보장이 없기 때문에 보안에 취약하다는 문제가 있다. ㆍ 보안의 문제와 더불어 당시에는 인증과 권한을 부여하는 요구를 만족시킬만한 인증방식이 없었다. ㆍ 위와 같은 배경으로 인해 Twitter의 주도로 OAuth 1.0이 탄생하게 된다. OAuth란? ㆍ OAuth는 인터넷 사용자들이 비밀번호를 제공하지 않고, 다른 웹 사이트 상의 자신들의 정보에 대해 웹 사이트나 애플리케이션의 접근 권한을 부여할 수 있는 개방형 표준 방법이다. ㆍ 이러한 메커니즘은 Google, Facebook, Twitt..
-
Web - Web Server & WASWeb/Web 2021. 10. 20. 19:15
정적 페이지와 동적 페이지 정적 페이지(Static Pages) ㆍ 정적 페이지는 바뀌지 않는 페이지를 의미한다. ㆍ 웹 서버는 파일 경로 이름을 받고, 경로와 일치하는 파일 내용을 반환한다. ㆍ 정적 페이지는 image, html, css, jacascript 파일과 같이 컴퓨터에 저장된 파일들이며, 항상 동일한 페이지를 반환한다. 동적 페이지(Dynamic Pages) ㆍ 동적 페이지는 인자에 따라 바뀌는 페이지를 의미한다. ㆍ 인자의 값에 맞게 동적인 내용을 반환하며, 웹 서버에 의해 실행되는 프로그램을 통해 만들어진 결과물이다. 웹 서버와 WAS의 차이 웹 서버 ㆍ 웹 서버는 HTTP 프로토콜 기반으로, 클라이언트의 요청을 서비스하는 기능을 담당한다. ㆍ 웹 서버는 WAS를 거치지 않고 정적 콘텐..