전체 글
-
[DB] Stored Procedure in 3-tier architecture : pros and consDB/DB Basic 2024. 1. 22. 23:33
3-Tier Architecture 1. Presentation Layer (User Interface) - Topmost layer that is responsible for interacting with end-users (e.g. web pages, mobile apps, etc.) - To present information to users and gather user input(forwards user requests to the next layer) 2. Business Logic Layer (Application Layer) - Processes the user input received from the presentation layer and coordinates the applicatio..
-
[MySQL] Stored ProcedureDB/MySQL 2024. 1. 22. 12:51
Stored Procedure - A set of SQL statements that are stored on the server and can be executed as a single unit - Precompiled and stored in the database, allowing for improved performance and code reusability Procedure Declaration - A stored procedure is defined using the 'CREATE PROCEURE' statement - Includes the procedure name, parameters(if any), and the body of the procedure /* Basic sysntax *..
-
[MySQL] Stored FunctionDB/MySQL 2024. 1. 21. 22:20
Stored Function - A set of SQL statements that perform a specific task and return a single value - Allow to encapsulate a series of SQL statements into a reusable and modular unit DELIMITER // -- change DELIMITER ";" to "//" temporarily CREATE FUNCTION calculate_area(length DOUBLE, width DOUBLE) RETURNS DOUBLE BEGIN DECLARE area DOUBLE; SET area = length * width; RETURN area; END // DELIMITER ; ..
-
[AWS DVA] 2. EC2AWS/DVA 2024. 1. 7. 16:35
Amazon EC2 - Basics 1. Amazon EC2 (Elastic Compute Cloud) - Infrastructure as a service [Capabilities] 1) Renting virtual machines (EC2) 2) Storing data on virtual drives (EBS) 3) Distributing load across machines (ELB) 4) Scaling the services using an auto-scaling group (ASG) 2. EC2 User Data Script - Possible to bootstrap instances using an EC2 User Data Script - Bootstrapping : Launching comm..
-
[LeetCode] Longest Substring Without Repeating Characters (Java)IT/Problem Solving 2024. 1. 6. 19:01
문제 문제풀이 과정 1. 카운트배열을 통한 접근 - 문자가 중복되면 안되기 때문에 각 알파벳에 해당하는 불리언 형태의 카운트배열을 만들어놓고 중복값을 마주치면 초기화하도록 구성 - 그리고 failed... 왜지? 문제를 잘못 이해했던 것... 바본가 오랜만에 풀어서 감을 아주 잃어버렸다. - 우선 예제는 소문자만을 얘기하고 있지만, 조건을 보면 English letters, digits, symbols, spaces 모두 들어갈 수 있다. 이런 기초적인 실수를 하다니...ㅠ^ㅠ 감이 아주 죽었구나.... 다시다시 풀이 시작 class Solution { public int lengthOfLongestSubstring(String s) { int maxLength = 0; int cnt = 0; boole..
-
[AWS DVA] 1. AWS IAMAWS/DVA 2024. 1. 6. 13:35
AWS Identity & Access Management (AWS IAM) 1. IAM (Identity and Access Management) - Service that allows you to manage access to AWS services and resources securely. - Enable to contorl who(authentication) can access what(authoriaztion) whitin AWS environment. 2. Users & Groups 1) Root - Account created by default, shouldn't be used or shared 2) Users - Represent individuals or applications inte..
-
[LeetCode] Add Two Numbers (Java)IT/Problem Solving 2024. 1. 4. 00:11
문제 Linked List 형태로 연결된 숫자를 뒤집어 더한 후, 각각의 숫자를 뒤집어서 다시 출력하는 문제 https://leetcode.com/problems/add-two-numbers/description/ 문제 조건 및 설명 - 숫자 범위도 크지 않고, 0으로 시작하지 않는 숫자만을 주기 때문에, 크게 고민하지 않고 for나 while문을 통해 접근하고 각 숫자(digit)에 대한 검증도 필요 없다. - 리트코드는 처음 풀어봐서 쉬운 것부터 풀어보았는데, 이런식으로 클래스 형태를 줘서 신기했다. /** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ..
-
[CI/CD] Spring, Jenkins, Nginx, EC2, Docker로 무중단 배포 구현 (2) Jenkins-Gitlab 연동 및 CI 환경 구축Dev Ops/CI-CD 2023. 8. 6. 22:35
지난 번 포스팅 이후로 많은 시간이 지나버렸다... 까먹어서 기억을 되덤어 볼 겸 다시 작성! (싸피가 최근 프로젝트 하느라 조회수가 잘나오더라^_^) 지난 번엔 자동배포 환경에 필요한 툴들을 다운로드 하는 방법에 대해 작성했고, 이번 포스팅에서는 젠킨스로 CI 환경 구축하는 방법까지 작성하고자 한다. 참고로 지금 구축하고 있는 환경은 백엔드용 환경이다. 프론트엔드 배포는 별도로 다룰 예정. [지난 포스팅] 1편. EC2 서버 기본 설정 (도커, 젠킨스, Nginx, JDK, MySQL, Redis 설치) [ Service Architecture ] 이번 포스팅에서 구현할 서비스 구조도는 아래와 같다. 포트를 2개로 구분하여, 서버를 새로 빌드하고 배포하는 과정에서 생기는 서버다운타임 없이 서비스가 운영..