user-img
Serializable 1
thumbnail
JAVA์—์„œ์˜ ๊ฐ์ฒด ์ง๋ ฌํ™” ๋น„๊ต (Byte Stream ์ง๋ ฌํ™” vs JSON ์ง๋ ฌํ™”)
0. ์•Œ์•„๋ณผ ๋‚ด์šฉJava์˜ ๊ฐ์ฒด ์ง๋ ฌํ™”์—๋Š” ๋‘ ๊ฐ€์ง€ ์ข…๋ฅ˜๊ฐ€ ์žˆ๋‹ค.์ฒซ ๋ฒˆ์งธ๋กœ, Serializable ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ๊ตฌํ˜„ํ•œ ํด๋ž˜์Šค์˜ ๊ฐ์ฒด๋ฅผ Byte Stream ์ง๋ ฌํ™”ํ•˜๋Š” ๊ฒƒ ์ด๋‹ค.๋‘ ๋ฒˆ์งธ๋กœ, RESTful API Sever๋ฅผ ๊ตฌํ˜„ํ•  ๋•Œ, ๋ฐ์ดํ„ฐ ๊ตํ™˜์„ ์œ„ํ•ด ๊ฐ์ฒด๋ฅผ JSON ์ง๋ ฌํ™”ํ•˜๋Š” ๊ฒƒ ์ด๋‹ค.๋‘ ๊ฐ€์ง€์˜ ์ฐจ์ด์ ์€ ์–ด๋ ดํ’‹์ด ์•Œ์ง€๋งŒ, ์ œ๋Œ€๋กœ ๊ตฌ๋ถ„ํ•˜์—ฌ ๊ธฐ์–ตํ•˜์ง€ ์•Š์•˜๋”๋‹ˆ, ๋‘ ๋ฐฉ๋ฒ•์˜ ๊ตฌํ˜„ ๋ฐฉ์‹๊ณผ ํ™œ์šฉ๋ฒ•์ด ์„œ๋กœ ๋’ค์ฃฝ๋ฐ•์ฃฝ ์„ž์—ฌ ์žˆ์—ˆ๋‹ค. ์ด๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด ๋‘ ๊ฐ€์ง€ ํ˜•ํƒœ์˜ ์ง๋ ฌํ™”์— ๋Œ€ํ•ด ์ •ํ™•ํžˆ ์•Œ์•„๋ณด๊ณ , ๊ทธ ์ฐจ์ด์ ์„ ๊ตฌ๋ถ„ํ•˜๋ ค ํ•œ๋‹ค.์—ฌ๊ธฐ์„œ๋Š” ๋จผ์ € ๋‘ ์ง๋ ฌํ™”์˜ ์˜๋ฏธ๋งŒ ๊ฐ„๋žตํžˆ ์•Œ์•„๋ณด๊ณ  ์ฐจ์ด์  ์„ค๋ช…์— ๋” ์ง‘์ค‘ํ•˜๊ฒ ๋‹ค.๋งŒ์•ฝ ๋” ์ž์„ธํžˆ ์•Œ๊ณ  ์‹ถ์€ ๋ถ„์€ ๊ฐ ํ•ญ๋ชฉ ๋ณ„ ๋” ์•Œ์•„๋ณด๊ธฐ๋งํฌ๋ฅผ ํ†ตํ•ด ํ™•์ธํ•˜๊ธฐ ๋ฐ”๋ž€๋‹ค.๋‹ค์Œ๊ณผ ๊ฐ™์€ ํด๋ž˜์Šค์˜ ๊ฐ์ฒด๋ฅผ ..
2024.11.04
Language/Java