목록2024/08/02 (3)
밤빵's 개발일지
팀 프로젝트를 통해 협업을 하면서 다른 팀원분들과의 차이를 하루하루 체감하면서 다른 팀원이 작성한 필터클래스의 코드를 보고 내가 잘 다루지 못하는 부분이라 정리를 해야겠다고 마음먹었다. 사실 너무 잘하시는 분이 작성한 코드기도 하고 JWT관련부분이라 코드를 보면서 답답함과 꺼버리고싶은 마음이 더 컸지만..! 그래도 나도 필터클래스는 작성할 줄 알아야하니까.. 오늘은 필터에 대한 내용을 소재로 개발일지를 작성했다. 🥺필터(Filter) 클래스란?필터(Filter)는 클라이언트의 요청을 처리하기 전이나 응답을 클라이언트에게 전달하기 전에 실행되는 컴포넌트이다. 필터는 보통 서블릿(Servlet) 또는 스프링의 DispatcherServlet과 같은 프론트 컨트롤러 전에 실행되고, 웹 애플리케이션에서 요청 ..
결국 로그인기능구현은 해내지 못해서 다른 기능을 맡게되었다..! 해내지못해서 너무 아쉽긴하지만.. 어렵고 아직은 내가 레디스? 라는것도 알지못해서 그냥 할 수 있는 간단한 CRUD를 맡기로 했다. API를 설계하면서 개발일지 소재를 생각하다가 멘토링에서 들었던 로드밸런서에 대해 정리하기로 결정했다! 🤓로드밸런서(Load Balancer)란?로드밸런서(Load Balancer)는 여러 서버에 걸쳐 트래픽을 분산하여 웹 애플리케이션의 가용성과 성능을 향상시키는 역할을 하는 네트워크 장치 또는 소프트웨어이다. 로드밸런서는 클라이언트의 요청을 여러 서버(또는 인스턴스)로 분산하여, 서버의 부하를 줄이고 시스템의 안정성을 보장한다. ▶ 로드밸런서의 주요 역할로드밸런서의 역할은 크게 네 가지로 나눌 수 있다: →..
Spring을 들으면서 쿠키와 세션에 대한 강의를 들으면서 분명 들을 때는 너무 재밌었는데...! 이해도못하면서 그저 재밌어했던 것 같다. 유튜브에서 쿠키와 세션을 정리한 내용을 보다가 개발일지에 기록하면 좋겠다는 생각이 들어서 정리를하게됐다. 🤓쿠키와 세션 방식의 이해와 활용쿠키(Cookie)와 세션(Session) 방식은 웹 애플리케이션에서 사용자 식별과 상태 관리를 위해 가장 널리 사용되는 방법 중 하나이다. 웹은 본질적으로 무상태(stateless) 프로토콜인 HTTP를 기반으로 하기 때문에, 서버는 각 요청이 독립적이고 이전 요청과의 관계가 없는 상태로 처리된다. 그러나 대부분의 애플리케이션은 사용자의 상태나 데이터를 유지해야 하기 때문에, 이를 위해 쿠키와 세션 방식을 사용한다. 이번 개발일..