profile
ํ™”์ดํŒ… ๐Ÿฅน
post-thumbnail

01 ์™œ ๋ฆฌ์•กํ‹ฐ๋ธŒ ์Šคํ”„๋ง์ธ๊ฐ€?

๋„์„œ : ์‹ค์ „! ์Šคํ”„๋ง5๋ฅผ ์ด์šฉํ•œ ๋ฆฌ์•กํ‹ฐ๋ธŒ ํ”„๋กœ๊ทธ๋ž˜๋ฐ์ˆ˜์š”(๋ถ€ํ•˜)์˜ ๋ณ€ํ™” ๋ฐ ์™ธ๋ถ€์„œ๋น„์Šค์˜ ๊ฐ€์šฉ์„ฑ ๋ณ€ํ™”์— ๋Œ€ํ•ด ์–ด๋–ป๊ฒŒ ๋Œ€์‘ํ•  ๊ฒƒ์ธ๊ฐ€?ํƒ„๋ ฅ์„ฑ(slasticity)๋‹ค์–‘ํ•œ ์ž‘์—… ๋ถ€ํ•˜์—์„œ ์‘๋‹ต์„ฑ์„ ์œ ์ง€ํ•˜๋Š” ๋Šฅ๋ ฅ์‚ฌ์šฉ์ž๊ฐ€ ๋งŽ์œผ๋ฉด ์ฒ˜๋ฆฌ๋Ÿ‰์ด ์ž๋™์œผ๋กœ ์ฆ๊ฐ€, ์ˆ˜์š”๊ฐ€ ๊ฐ์†Œํ•˜๋ฉด ์ž๋™์œผ๋กœ ๊ฐ์†Œ

2022๋…„ 6์›” 20์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

Spring Cloud Discovery ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ

ํ•ด๋‹น ๋‚ด์šฉ์€ ์ธํ”„๋Ÿฐ ๊ฐ•์˜๋ฅผ ๋“ฃ๊ณ  ์ •๋ฆฌํ•œ ๋‚ด์šฉ์ž…๋‹ˆ๋‹ค.์ถœ์ฒ˜: Spring Cloud๋กœ ๊ฐœ๋ฐœํ•˜๋Š” ๋งˆ์ดํฌ๋กœ์„œ๋น„์Šค ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜(MSA)Service Discovery์„œ๋น„์Šค๋ฅผ ๋“ฑ๋กํ•˜๊ณ  ๊ฒ€์ƒ‰ํ•œ๋‹ค.key์™€ value ํ˜•ํƒœ๋กœ ์ €์žฅ๋˜๋ฉฐ, ์–ด๋–ค ์„œ๋น„์Šค๊ฐ€ ์–ด๋–ค ์œ„์น˜์— ์žˆ๋Š”์ง€ ์ €์žฅํ•œ๋‹ค.htt

2022๋…„ 2์›” 20์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

Monolithic๊ณผ Microservice

ํ•ด๋‹น ๋‚ด์šฉ์€ ์ธํ”„๋Ÿฐ ๊ฐ•์˜๋ฅผ ๋“ฃ๊ณ  ์ •๋ฆฌํ•œ ๋‚ด์šฉ์ž…๋‹ˆ๋‹ค.์ถœ์ฒ˜: Spring Cloud๋กœ ๊ฐœ๋ฐœํ•˜๋Š” ๋งˆ์ดํฌ๋กœ์„œ๋น„์Šค ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜(MSA)์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ฐœ๋ฐœํ•˜๋Š”๋ฐ ์žˆ์–ด ํ•„์š”ํ•œ ์š”์†Œ๋ฅผ ํ•˜๋‚˜์˜ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ํ˜•ํƒœ๋กœ ํŒจํ‚ค์ง€๋˜์–ด ์„œ๋น„์Šคํ•˜๋‚˜์˜ ๊ณต๊ฐ„์— ์ฝ”๋“œ๊ฐ€ ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ํ•˜๋‚˜๋งŒ ์‹คํ–‰

2022๋…„ 2์›” 19์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

Spring Boot multi module project ๋งŒ๋“ค๊ธฐ

์Šคํ”„๋ง ๊ณต์‹ ๋ฌธ์„œ๋ฅผ ๊ธฐ์ค€์œผ๋กœ ์ž‘์„ฑํ•˜์˜€์Šต๋‹ˆ๋‹ค.1\. ๊ณตํ†ต ์ฝ”๋“œ ๊ด€๋ฆฌ. ์ค‘๋ณต ์ฝ”๋“œ๋ฅผ ์ค„์ผ ์ˆ˜ ์žˆ๋‹ค.2\. ๋งŒ์•ฝ admin ๋ชจ๋“ˆ๊ณผ core ๋ชจ๋“ˆ์ด ์žˆ๊ณ  ์—ฌ๋Ÿฌ ํŒ€์ด ์„œ๋กœ ๋‹ค๋ฅธ ๋ชจ๋“ˆ๋กœ ์ž‘์—…ํ•˜๊ณ  ์žˆ๋‹ค๋ฉด๋‹ค๋ฅธ ํŒ€์˜ ์ž‘์—…์„ ๊ฑฑ์ •ํ•  ํ•„์š”๊ฐ€ ์—†๊ณ  ํ•˜์œ„ ๋ชจ๋“ˆ์„ importํ•ด์„œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ

2022๋…„ 2์›” 17์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

AWS root ๊ณ„์ • MFA ๋ถ„์‹คํ–ˆ์„ ๊ฒฝ์šฐ ํ•ด๊ฒฐ

์‚ฌ๊ฑด์˜ ์‹œ์ž‘ ๋‚˜๋Š” Google Authentication์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์—ˆ๋‹ค. ๊ฐ‘์ž๊ธฐ ๊ณ„์ •์ด 2๊ฐœ์”ฉ ์ค‘๋ณต๋˜์„œ ์ด 6๊ฐœ๊ฐ€ ๋ณด์ด๊ธธ๋ž˜ ์ค‘๋ณต๋˜๋Š” 3๊ฐœ๋ฅผ ์ง€์šฐ๊ณ  3๊ฐœ๋ฅผ ๋‚จ๊ธฐ๊ณ  ๋ฃฐ๋ฃจ๋ž„๋ผ ๋‹ค์‹œ ์ผ์„ ํ•˜๋˜ ๋„์ค‘, AWS ๊ณ„์ •์ด ํŒ…๊ฒผ๊ณ .. ๋‹ค์‹œ ๋กœ๊ทธ์ธ์„ ํ•˜๋ ค๊ณ  ์•ฑ์„ ์—ด์—ˆ๋Š”๋ฐ ์—ฅ..?

2021๋…„ 10์›” 14์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

HTTP ๊ธฐ๋ณธ

1. ํด๋ผ์ด์–ธํŠธ ์„œ๋ฒ„ ๊ตฌ์กฐ 2. Stateful, Stateless 3. ๋น„ ์—ฐ๊ฒฐ์„ฑ(connectionless) 4. HTTP ๋ฉ”์‹œ์ง€

2021๋…„ 5์›” 2์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

URI์™€ ์›น ๋ธŒ๋ผ์šฐ์ € ์š”์ฒญ ํ๋ฆ„

URI, ์›น ๋ธŒ๋ผ์šฐ์ € ์š”์ฒญ ํ๋ฆ„

2021๋…„ 4์›” 28์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

์ธํ„ฐ๋„ท ๋„คํŠธ์›Œํฌ

DNS

2021๋…„ 4์›” 26์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

[ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค] ๋‘ ๊ฐœ ๋ฝ‘์•„์„œ ๋”ํ•˜๊ธฐ

์ •์ˆ˜ ๋ฐฐ์—ด numbers๊ฐ€ ์ฃผ์–ด์ง‘๋‹ˆ๋‹ค. numbers์—์„œ ์„œ๋กœ ๋‹ค๋ฅธ ์ธ๋ฑ์Šค์— ์žˆ๋Š” ๋‘ ๊ฐœ์˜ ์ˆ˜๋ฅผ ๋ฝ‘์•„ ๋”ํ•ด์„œ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋Š” ๋ชจ๋“  ์ˆ˜๋ฅผ ๋ฐฐ์—ด์— ์˜ค๋ฆ„์ฐจ์ˆœ์œผ๋กœ ๋‹ด์•„ return ํ•˜๋„๋ก solution ํ•จ์ˆ˜๋ฅผ ์™„์„ฑํ•ด์ฃผ์„ธ์š”.์ œํ•œ์‚ฌํ•ญnumbers์˜ ๊ธธ์ด๋Š” 2 ์ด์ƒ 100 ์ดํ•˜์ž…๋‹ˆ

2021๋…„ 3์›” 29์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

LeetCode 66. Plus One

https://leetcode.com/problems/plus-one/Given a non-empty array of decimal digits representing a non-negative integer, increment one to the intege

2021๋…„ 3์›” 8์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

[์•Œ๊ณ ๋ฆฌ์ฆ˜] ์„ ํƒ ์ •๋ ฌ (selection sort)

๋ฐฐ์—ด์˜ ์ตœ์†Ÿ๊ฐ’์„ ๊ต์ฒดํ•œ๋‹ค.์ฒซ๋ฒˆ์งธ ๊ฐ’๊ณผ ์ตœ์†Ÿ๊ฐ’์„ ๋ณ€๊ฒฝํ•œ๋‹ค.๊ทธ ๋‹ค์Œ ์œ„์น˜๋กœ ๋„˜์–ด๊ฐ€ ๋ฐฐ์—ด์˜ ๋๊นŒ์ง€ 1~3๋ฒˆ์„ ๋ฐ˜๋ณตํ•œ๋‹ค.O(n^2)

2021๋…„ 2์›” 22์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

[์•Œ๊ณ ๋ฆฌ์ฆ˜] ์‚ฝ์ž… ์ •๋ ฌ (insertion sort)

์„ค๋ช… ๋ฐฐ์—ด์˜ ๋ชจ๋“  ์š”์†Œ๋ฅผ ์•ž์—์„œ๋ถ€ํ„ฐ ๋น„๊ตํ•˜๋ฉฐ, ์ž์‹ ์ด ๋“ค์–ด๊ฐˆ ์œ„์น˜๋ฅผ ์ฐพ์•„ ์‚ฝ์ž…ํ•˜์—ฌ ์ •๋ ฌํ•œ๋‹ค. ์ด๋ฏธ์ง€ ์ถœ์ฒ˜ ์‹œ๊ฐ„๋ณต์žก๋„ O(n^2) ๊ณต๊ฐ„๋ณต์žก๋„ ..? ์ฝ”๋“œ

2021๋…„ 2์›” 21์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

[์•Œ๊ณ ๋ฆฌ์ฆ˜] ๋ฒ„๋ธ” ์ •๋ ฌ(bubble sort)

O(nยฒ)input ๋ฐฐ์—ด์„ ์ œ์™ธํ•˜๊ณ  ์ถ”๊ฐ€๋กœ ํ• ๋‹นํ•œ ๋ฉ”๋ชจ๋ฆฌ๋Š” O(1)์ด๋‹ค.1\. ๋ฐฐ์—ด์˜ ์ฒซ๋ฒˆ์งธ ์ˆซ์ž๋ถ€ํ„ฐ ์‹œ์ž‘ํ•œ๋‹ค.2\. ํ˜„์žฌ ์œ„์น˜์˜ ๊ฐ’์ด ๋‹ค์Œ ์œ„์น˜์˜ ๊ฐ’๋ณด๋‹ค ํฌ๋ฉด, ์„œ๋กœ ์œ„์น˜๋ฅผ ๋ฐ”๊พผ๋‹ค.3\. ํ˜„์žฌ ์œ„์น˜๋ฅผ 1 ์ฆ๊ฐ€ํ•˜๋ฉด์„œ ๋งˆ์ง€๋ง‰ ์œ„์น˜๊นŒ์ง€ 1~2๋ฒˆ์„ ๋ฐ˜๋ณตํ•œ๋‹ค.4\. 1~3๋ฒˆ์„

2021๋…„ 2์›” 21์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

LeetCode 387. First Unique Character in a String

387\. First Unique Character in a StringGiven a string, find the first non-repeating character in it and return its index. If it doesn't exist, return

2021๋…„ 2์›” 21์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

LeetCode 13. Roman to Integer

๐Ÿ‘‰ 13. Roman to IntegerExample 1:Example 2:Example 3:Example 4:Example 5:๊ฐ ๋ฌธ์ž์— ํ•ด๋‹นํ•˜๋Š” ๊ฐ’์„ T๋ผ๋Š” Map์— ์ €์žฅํ•œ๋‹ค.๋ฌธ์ œ๋Š” 'CM' , 'XC' ์™€ ๊ฐ™์ด ๋ฌธ์ž ๋‘ ๊ฐœ๊ฐ€ ๋ถ™๋Š” ๋ฌธ์ž์˜ ๊ฐ’์„ ๊ณ„์‚ฐํ•ด์•ผํ•˜๋Š”๋ฐs1๋ฒˆ

2021๋…„ 2์›” 18์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

LeetCode 217. Contains Duplicate

217\. Contains DuplicateGiven an array of integers, find if the array contains any duplicates.Your function should return true if any value appears at

2021๋…„ 2์›” 17์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

๋ฐฑ์ค€(BOJ) 1012 ์œ ๊ธฐ๋† ๋ฐฐ์ถ”

๋ฌธ์ œ ๐Ÿ‘‰ 1012 ์œ ๊ธฐ๋† ๋ฐฐ์ถ” ์ฐจ์„ธ๋Œ€ ์˜๋†์ธ ํ•œ๋‚˜๋Š” ๊ฐ•์›๋„ ๊ณ ๋žญ์ง€์—์„œ ์œ ๊ธฐ๋† ๋ฐฐ์ถ”๋ฅผ ์žฌ๋ฐฐํ•˜๊ธฐ๋กœ ํ•˜์˜€๋‹ค. ๋†์•ฝ์„ ์“ฐ์ง€ ์•Š๊ณ  ๋ฐฐ์ถ”๋ฅผ ์žฌ๋ฐฐํ•˜๋ ค๋ฉด ๋ฐฐ์ถ”๋ฅผ ํ•ด์ถฉ์œผ๋กœ๋ถ€ํ„ฐ ๋ณดํ˜ธํ•˜๋Š” ๊ฒƒ์ด ์ค‘์š”ํ•˜๊ธฐ ๋•Œ๋ฌธ์—, ํ•œ๋‚˜๋Š” ํ•ด์ถฉ ๋ฐฉ์ง€์— ํšจ๊ณผ์ ์ธ ๋ฐฐ์ถ”ํฐ์ง€๋ ์ด๋ฅผ ๊ตฌ์ž…ํ•˜๊ธฐ๋กœ ๊ฒฐ์‹ฌํ•œ๋‹ค. ์ด ์ง€๋ ์ด๋Š”

2021๋…„ 2์›” 15์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

LeetCode 1. Two Sum

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.You may assume that each inpu

2021๋…„ 2์›” 12์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท

LeetCode 20. Valid Parentheses

Given a string s containing just the characters '(', ')', '{', '}', '' and '', determine if the input string is valid.An input string is valid if:Open

2021๋…„ 2์›” 12์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท
post-thumbnail

๋ฐฑ์ค€(BOJ) 8958 OXํ€ด์ฆˆ

๐Ÿ‘‰ 8959 OXํ€ด์ฆˆ์ž…๋ ฅ๋œ ๋ฌธ์ž์—ด์˜ ๊ธธ์ด๋งŒํผ ์กฐํšŒํ•˜๋ฉด์„œ OX ์—ฌ๋ถ€๋ฅผ ํŒ๋‹จํ•œ๋‹ค.๋งŒ์ผ i๋ฒˆ์งธ ๋ฌธ์ž๊ฐ€ 'O' ๋ผ๋ฉด ํ˜„์žฌ๊นŒ์ง€ 'O'์˜ ์—ฐ์†๋œ ๊ฐฏ์ˆ˜๋ฅผ ์ฆ๊ฐ€ํ•˜๊ณ  ์ ์ˆ˜๋ฅผ ํ•ฉ์‚ฐํ•œ๋‹ค.๋ฌธ์ž๊ฐ€ 'X'๋ฉด ์—ฐ์†๋œ ๊ฐฏ์ˆ˜๋ฅผ ์ดˆ๊ธฐํ™” ํ•œ๋‹ค.

2021๋…„ 2์›” 8์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท