https://medium.com/@bubu.tripathy/clean-code-optional-parameters-327d67abbf90 메서드에서 선택적 매개변수를 다룰 때는 긴 매개변수 목록이나 널 값 사용을 피하는 것이 좋습니다. 대신 메서드 오버로딩 또는 빌더 패턴으로 코드 가독성과 유지 관리성을 향상 시키는 것이 좋습니다. 이 방법들은 다양한 매개변수 집합을 가진 메서드를 호출할 때 더 깔끔한 인터페이스를 제공합니다. ⭐️ 메서드 오버로딩을 활용하여 서로 다른 매개변수 집합을 가진 메서드의 여러 버전을 생성하세요. 이렇게 하면 선택적 매개변수에 의존하지 않고도 명확하고 명시적으로 호출할 수 있습니다. ⭐️ 선택적 매개변수의 수가 상당히 많아지면 빌더 패턴을 구현하는 것을 고려하세요. 이 접근 ..
https://medium.com/@MilanJovanovicTech/what-is-a-modular-monolith-babd989a4ea2 What is a Modular Monolith? 모듈형 모놀리스는 애플리케이션을 잘 정의된 경계를 가진 독립적인 모듈 또는 구성 요소로 구조화하는 아키텍처 패턴입니다. 모듈은 논리적 경계를 기준으로 분할되어 관련 기능을 함께 그룹화합니다. 이 접근 방식은 시스템의 응집력을 크게 향상시킵니다. 모듈은 느슨하게 결합되어 있어 모듈화와 분리를 더욱 촉진합니다. 모듈은 공용 API를 통해 통신하며, 이에 대한 자세한 내용은 모듈형 모놀리스 통신 패턴에 대한 글에서 확인할 수 있습니다. 그렇다면 모듈식 설계의 장점은 무엇일까요? Benefits of a Modular Mo..
https://javascript.plainenglish.io/6-caching-strategies-to-remember-while-designing-cache-system-da058a3757cf 6-Caching Strategies to Remember while designing Cache System How to invalidate the cache, strategies around Read v/s Write Cache,Ways to invalidate the Cache, terminologies around Cache System & Much… javascript.plainenglish.io 캐시 시스템의 주요 성능 지표 캐시 적중률: 이 메트릭은 요청된 항목이 캐시에서 발견된 횟수의 비율을 측정..
https://medium.com/javarevisited/five-api-performance-optimization-tricks-that-every-java-developer-must-know-75324ee1d244 Five API Performance Optimization Tricks that Every Java Developer Must Know Why is your API response so slow? Maybe you need to solve these problems. medium.com Five Tricks Parallel call Avoid large transaction Add appropriate index Return fewer data Use cache Finally 여기에 5..
https://medium.com/@DoorDash/avoiding-cache-stampede-at-doordash-55bbf596d94b Avoiding cache stampede at DoorDash By Zohaib Sibte Hassan, Software Engineer at DoorDash medium.com DoorDash Cache 전략. A typical caching setup The debouncer approach To solve the problem, we took inspiration from something front-end engineers use frequently. Debouncing is a common practice in the JS world to prevent d..
https://medium.com/geekculture/system-design-design-a-rate-limiter-81d200c9d392 System Design — Design A Rate Limiter Note: I have read this great book System Design Interview — An insider’s guide by Alex Xu in depth. So most of my definitions and images… medium.com Token Bucket Algorithm
https://medium.com/javarevisited/5-important-microservices-design-patterns-c4d636b0051 5 Important Microservices Design Patterns Microservices design patterns have become increasingly popular due to their ability to improve software agility, scalability, resilience… medium.com Event Sourcing, Saga Pattern 위 두가지 패턴들을 구현하는 것은 참 고달픈 일이었다,,
Good! https://medium.com/@gaganjain9319/spring-security-features-and-secure-rest-api-using-spring-security-in-java-e4c812ed085 Spring security features and secure Rest API using spring security in JAVA Spring Security is a powerful and widely used security framework for Java applications that provides authentication, authorisation, and… medium.com
https://medium.com/@eidan.khan659/circular-dependency-in-spring-boot-how-to-detect-and-fix-it-6c8ef2c3174e Circular Dependency in Spring Boot: How to Detect and Fix It? In Spring Boot, circular dependency occurs when two or more beans depend on each other. This can happen when a bean requires another bean… medium.com 선호하는 방식 Method 2: Setter Injection Another way to fix circular dependency is to..
https://medium.com/aia-sg-techblog/refactor-if-elseif-elseif-using-strategy-design-pattern-80c51913a539 Refactor if/elseif/elseif using Strategy Design Pattern Strategy Design pattern enables an algorithm’s behavior to be selected at runtime. The pattern medium.com Pros : 1. Adding a new strategy will never disturb any previous code. 2. Removal/Refactoring of any previous strategy is flexible. 3..