๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๋ฐ˜์‘ํ˜•

Back-end

Introduction to Big Data ์ด ๊ธ€์€ ์ „๊ณต "๋น…๋ฐ์ดํ„ฐ์‹œ์Šคํ…œ" ๊ฐ•์˜ ๋‚ด์šฉ์„ ์ •๋ฆฌํ•œ ๊ธ€์ž…๋‹ˆ๋‹ค. ๋ฐ์ดํ„ฐ์˜ ์œ ํ˜•(Types of data) Structured Data Unstructured Data Can be displayed in rows, columns and relational databases Can not be displayed in rows, columns and relational databases Numbers, dates, and strings Images, audio, video, word processing files, e-mails, spreadsheets Requires less storage Requires more storage Estimated 20% of enterprise data Estimated 80.. ๋”๋ณด๊ธฐ
[HTTP] ์‘๋‹ต ์ƒํƒœ ์ฝ”๋“œ ์ •๋ฆฌ HTTP ์ƒํƒœ ์ฝ”๋“œ HTTP ์‘๋‹ต ์ƒํƒœ ์ฝ”๋“œ๋Š” ํŠน์ • HTTP ์š”์ฒญ์ด ์„ฑ๊ณต์ ์œผ๋กœ ์™„๋ฃŒ๋˜์—ˆ๋Š”์ง€ ์•Œ๋ ค์ค€๋‹ค. ์‘๋‹ต์€ 5๊ฐœ์˜ ๊ทธ๋ฃน์œผ๋กœ ๋‚˜๋ˆŒ ์ˆ˜ ์žˆ๋‹ค. 1XX : ์ •๋ณด๋ฅผ ์ œ๊ณตํ•˜๋Š” ์‘๋‹ต 2XX : ์„ฑ๊ณต์ ์ธ ์‘๋‹ต 3XX : ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ 4XX : ํด๋ผ์ด์–ดํŠผ ์—๋Ÿฌ 5XX : ์„œ๋ฒ„์—๋Ÿฌ ์ด ์ƒํƒœ ์ฝ”๋“œ๋งŒ ํ™•์ธํ•˜๋”๋ผ๋„ ํด๋ผ์ด์–ธํŠธ๊ฐ€ ์„œ๋ฒ„๋กœ ๋ณด๋‚ธ ์š”์ฒญ์— ๋Œ€ํ•œ ์‘๋‹ต์ด ์„ฑ๊ณต์ธ์ง€ ์‹คํŒจ์ธ์ง€ ๋˜, ๊ตฌ์ฒด์ ์œผ๋กœ ์–ด๋–ค ์„ฑ๊ณต์ธ์ง€ ์–ด๋–ค ์‹คํŒจ์ธ์ง€๋ฅผ ์ž์„ธํžˆ ์•Œ ์ˆ˜ ์žˆ๋‹ค. 1XX: ์กฐ๊ฑด๋ถ€ ์‘๋‹ต ์ „์†ก ํ”„๋กœํ† ์ฝœ ์ˆ˜์ค€์˜ ์ •๋ณด ๊ตํ™˜ 100 Continue(๊ณ„์†) ์ด ์‘๋‹ต์€ ์ง€๊ธˆ๊นŒ์ง€ ์ƒํƒœ๊ฐ€ ๊ดœ์ฐฎ์œผ๋ฉฐ ํด๋ผ์ด์–ธํŠธ๊ฐ€ ๊ณ„์† ํ•ด์„œ ์š”์ฒญ์„ ํ•˜๊ฑฐ๋‚˜ ์ด๋ฏธ ์š”์ฒญ์„ ์™„๋ฃŒํ•œ ๊ฒฝ์šฐ์—๋Š” ๋ฌด์‹œํ•ด๋„ ๋˜๋Š”๊ฒƒ์„ ์•Œ๋ ค์ค€๋‹ค. 101 Switching Protocol(ํ”„๋กœํ† ์ฝœ ์ „ํ™˜) ํด๋ผ์ด์–ธํŠธ๊ฐ€ ๋ณด.. ๋”๋ณด๊ธฐ
[REST API]REST API๋ž€? API๋ž€? Application Programming Interface API๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ์†Œํ”„ํŠธ์›จ์–ด๋ฅผ ๊ตฌ์ถ•ํ•˜๊ณ  ํ†ตํ•ฉํ•˜๊ธฐ ์œ„ํ•œ ์ •์˜ ๋ฐ ํ”„๋กœํ† ์ฝœ ์„ธํŠธ์ด๋‹ค. ๋‚ด๋ถ€์˜ ๊ตฌํ˜„ ์‚ฌํ•ญ์„ ๋ชจ๋‘ ๋“œ๋Ÿฌ๋‚ด์ง€์•Š๊ณ  ์‚ฌ์šฉ์ž๊ฐ€ ํ•„์š”ํ•œ ๋ถ€๋ถ„๋งŒ ๋…ธ์ถœํ•ด์ฃผ๋Š” ๊ฒƒ์„ ๋งํ•œ๋‹ค. API๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๊ตฌํ˜„ ๋ฐฉ์‹์„ ์•Œ์ง€ ๋ชปํ•ด๋„ ์ œํ’ˆ ๋˜๋Š” ์„œ๋น„์Šค๊ฐ€ ์„œ๋กœ ์ปค๋ฎคํ‹ฐ์ผ€์ด์…˜ํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ฐœ๋ฐœ์„ ๊ฐ„์†Œํ™”ํ•˜์—ฌ ์‹œ๊ฐ„๊ณผ ๋น„์šฉ์„ ์ ˆ์•ฝํ•  ์ˆ˜ ์žˆ๋‹ค. REST๋ž€? Reqresentational State Transfer REST๋Š” HTTP์—์„œ ํ•„์š”ํ•œ ์ž์›์— ์ ‘๊ทผํ•  ๋•Œ ์›น์˜ ์žฅ์ ์„ ์ตœ๋Œ€ํ•œ ํ™œ์šฉํ•˜๊ธฐ ์œ„ํ•œ ์•„ํ‚คํ…์ฒ˜์ด๋‹ค. REST ์•„ํ‚คํ…์ฒ˜์— ์ ์šฉ๋˜๋Š” ๊ฐ€์ง€ ์ œํ•œ ์กฐ๊ฑด ์ธํ„ฐํŽ˜์ด์Šค ์ผ๊ด€์„ฑ : ์ผ๊ด€์ ์ธ ์ธํ„ฐํŽ˜์ด์Šค๋กœ ๋ถ„๋ฆฌ๋˜์–ด์•ผ ํ•œ๋‹ค. ๋ฌด์ƒํƒœ : ๊ฐ ์š”์ฒญ ๊ฐ„ ํด๋ผ์ด์–ธํŠธ์˜ con.. ๋”๋ณด๊ธฐ
[WEB] HTTPS์™€ SSL์ธ์ฆ์„œ HTTPS & SSL ์ธ์ฆ์„œ HTTP VS HTTPS HTTP๋Š” Hypertext Transfer Protocol์˜ ์•ฝ์ž๋‹ค. ์ฆ‰ Hypertext์ธ HTML์„ ์ „์†กํ•˜๊ธฐ ์œ„ํ•œ ํ†ต์‹ ๊ทœ์•ฝ์„ ์˜๋ฏธํ•œ๋‹ค. HTTPS์˜ ๋งˆ์ง€๋ง‰ S๋Š” OverSecure Socket Layer์˜ ์•ฝ์ž๋กœ ๋ณด์•ˆ์ด ๊ฐ•ํ™”๋œ HTTP๋ผ๊ณ  ํ•  ์ˆ˜ ์žˆ๋‹ค. HTTP๋Š” ์•”ํ˜ธํ™”๋˜์ง€ ์•Š์€ ๋ฐฉ๋ฒ•์œผ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ์ „์†กํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์„œ๋ฒ„์™€ ํด๋ผ์ด์–ธํŠธ๊ฐ€ ์ฃผ๊ณ  ๋ฐ›๋Š” ๋ฉ”์„ธ์ง€๋ฅผ ๊ฐ์ฒญํ•˜๋Š”๊ฒƒ์ด ๋งค์šฐ ์‰ฌ์›Œ์„œ ์•…์˜์ ์ธ ๊ฐ์ฒญ์ด๋‚˜ ๋ฐ์ดํ„ฐ ๋ณ€์กฐ๊ฐ€ ์ผ์–ด๋‚  ์ˆ˜ ์žˆ๋‹ค. ์ด๋ฅผ ๋ณด์•ˆํ•œ๊ฒƒ์ด HTTPS์ด๋‹ค. HTTPS & SSL HTTP๋Š” SSL/TLS ์œ„์—์„œ ์ž‘๋™ํ•˜๋Š” ๊ฒƒ์ด๊ณ , HTTP๊ฐ€ SSL์„ ์ด์šฉํ•œ๋‹ค๋ฉด HTTPS๊ฐ€ ๋˜๋Š”๊ฒƒ์ด๋‹ค. SSL & TLS SSL์€ ๋„ค์Šค์ผ€์ดํ”„์— ์˜ํ•ด์„œ ๋ฐœ๋ช… ๋˜์—ˆ๊ณ , ์ ์ฐจ.. ๋”๋ณด๊ธฐ
[WEB] HTTP ์ •๋ฆฌ HTTP๋ž€? HTTP = Hyper Text Transfer Protocol ํด๋ผ์ด์–ธํŠธ๊ฐ€ ์„œ๋ฒ„์—๊ฒŒ HTML์„ ๋‹ฌ๋ผ๊ณ  ์š”์ฒญ์„ ํ•œ๋‹ค = Request ์„œ๋ฒ„๊ฐ€ ํด๋ผ์ด์–ธํŠธ์—๊ฒŒ HTML์„ ์ œ๊ณตํ•œ๋‹ค = Response ์„œ๋ฒ„์™€ ํด๋ผ์ด์–ธํŠธ๊ฐ€ Request์™€ Response๋ฅผ ํ•˜๊ธฐ ์œ„ํ•ด์„œ ์„œ๋กœ ์•Œ์•„๋“ค์„์ˆ˜ ์žˆ๋Š” ๋ฉ”์„ธ์ง€(๊ณตํ†ต์˜ ์•ฝ์†)๋ฅผ HTTP๋ผ๊ณ  ํ•œ๋‹ค. ์›น์„œ๋ฒ„๋Š” Rquest๋ฅผ ๋ฐ›์•„์„œ ์ ์ ˆํ•œ Response๋ฅผ ๋ณด๋‚ด์ฃผ๋Š” ์—ญํ• ์ด๋‹ค. ์›น๋ธŒ๋ผ์šฐ์ €๋Š” ์›น์„œ๋ฒ„์—๊ฒŒ ๋ฐ›์€ Response๋ฅผ ํ™”๋ฉด์— ์ ์ ˆํ•˜๊ฒŒ ํ‘œํ˜„ํ•ด์ฃผ๋Š” ์—ญํ• ์ด๋‹ค. Requset Request Header ๊ตฌ์„ฑ GET = Method = ์›น๋ธŒ๋ผ์šฐ์ €์™€ ์›น์„œ๋ฒ„๊ฐ€ ์–ด๋–ค ๋ฐฉ์‹์œผ๋กœ ํ†ต์‹ ํ•  ๊ฒƒ์ธ๊ฐ€๋ฅผ ๋‚˜ํƒ€๋‚ธ๋‹ค. GET์€ ์›น์„œ๋ฒ„๋กœ๋ถ€ํ„ฐ ๋ฐ์ดํ„ฐ๋ฅผ ๊ฐ€์ ธ์˜ฌ ๋•Œ ์‚ฌ์šฉํ•˜๊ณ  POST๋Š” ์›น์„œ๋ฒ„๋กœ ์ „์†กํ•  ๋•Œ.. ๋”๋ณด๊ธฐ
Android Studio + Node.js + MySQL ํ”„๋กœ์ ํŠธ ํŒŒ์ผ ๊ตฌ์กฐ ํŒŒ์ผ๊ตฌ์กฐ & Backend ์‹œ์ž‘ ํ”„๋กœ์ ํŠธ ์†Œ๊ฐœ ๊ณต๋ถ€๋ชฉ์ ์œผ๋กœ ๊ธธ ๊ณ ์–‘์ด๋“ค์˜ ์‚ฌ์ง„์„ ์ฐ์–ด์„œ ์œ„์น˜์™€ ์‚ฌ์ง„์„ ๊ณต์œ ํ•  ์ˆ˜ ์žˆ๋Š” ์•ฑ์„ ๋งŒ๋“ค๊ณ  ์žˆ๋‹ค. UI๋Š” ์–ด๋Š์ •๋„ ๋งŒ๋“ค์—ˆ๊ณ  ์ด์ œ DB์™€ ์„œ๋ฒ„๋ฅผ ์—ฐ๊ฒฐ์‹œํ‚ค๋Š” ์ž‘์—…์„ ์‹œ์ž‘ํ•˜๊ฒŒ ๋˜์–ด์„œ ๊ณต๋ถ€ํ•œ ๊ฒƒ์„ ์ •๋ฆฌํ•˜๋ ค๊ณ  ํ•œ๋‹ค. ์•ž์œผ๋กœ ํ”„๋กœ์ ํŠธ๋ฅผ ์ง„ํ–‰ํ•˜๋ฉด์„œ ๊ณต๋ถ€ํ•˜๋Š”๊ฒƒ๋“ค์„ ๊ธฐ๋กํ•˜๋ ค๊ณ  ํ•œ๋‹ค. ์ „๋ถ€๋Š” ์•„๋‹ˆ์ง€๋งŒ ํ•˜๋ฉด์„œ ์–ด๋ ค์› ๋˜ ๊ฒƒ(๋ชจ๋“ˆ ์‚ฌ์šฉ๋ฒ•, ๊ฐœ๋… ๋“ฑ)์„ ์œ„์ฃผ๋กœ ์ •๋ฆฌํ•˜๋ ค๊ณ  ํ•œ๋‹ค. Node js ์ฝ”๋”ฉ ํŒจํ„ด ์šฐ์„  ์•„๋ž˜ ๋ธ”๋กœ๊ทธ๋ฅผ ์ฐธ๊ณ ํ•ด์„œ Routes-Controllers-Services ๊ตฌ์กฐ๋ฅผ ์ด์šฉํ•ด์„œ Node๋ฅผ ๊ตฌ์„ฑํ•˜๋ ค๊ณ  ํ•œ๋‹ค. Node.js ์ฝ”๋”ฉ ํŒจํ„ด (Routes-Controllers-Services ๊ตฌ์กฐ) ์œ„ ํŒŒ์ผ ๊ตฌ์กฐ๋Š” ๋ธ”๋กœ๊ทธ๋ฅผ ์ฐธ๊ณ ํ•ด์„œ ๋งŒ๋“ค์–ด๋ณธ ํŒŒ์ผ ๊ตฌ์กฐ์ด๋‹ค. ํ•˜๋‚˜์”ฉ ๊ตฌ์„ฑ์„ ๋ณด๋ฉด, se.. ๋”๋ณด๊ธฐ