MSA(Spring Cloud 기반) 기술 스택과 Spring Security 6 변경 사항
오늘은 마이크로서비스 아키텍처(MSA)에서 Spring Cloud 기술 스택의 관계와 동작 순서를 학습했다. Spring Cloud의 다양한 컴포넌트들이 어떻게 협력하여 MSA 환경에서 동작하는지 정리해보았다.
Spring Cloud의 주요 기술 스택을 모두 활용하는 경우, 서비스 간의 관계와 동작 순서는 다음과 같다.

Spring Security 6에서는 authorizeRequests()가 deprecated되어 authorizeHttpRequests()로 변경됨.
기존 코드 (Spring Security 5) ❌
.authorizeRequests(authorize ->
authorize
.requestMatchers("/auth/signIn").permitAll()
.anyRequest().authenticated()
)
변경 후 (Spring Security 6) ✅
.authorizeHttpRequests(auth ->
auth
.requestMatchers("/auth/signIn").permitAll() // 인증 없이 접근 허용
.anyRequest().authenticated() // 나머지 요청은 인증 필요
)
🔹 차이점:
authorizeRequests()는 더 이상 지원되지 않으며,authorizeHttpRequests()를 사용해야 한다.
authorizeHttpRequests() 적용법을 학습했다. 오늘은 Spring Cloud 기반의 MSA 아키텍처를 전체적으로 정리하고, Spring Security 6의 변경 사항을 적용하는 과정에서 발생한 오류를 해결했다.
앞으로 Spring Cloud를 활용한 고가용성, 장애 복구, 이벤트 기반 처리, 분산 추적을 더욱 깊이 학습할 필요가 있음을 깨달았다. 🚀