emotional developer 썸네일형 리스트형 Rate Limiter What Is a Rate Limiter? A rate limiter is a defensive mechanism used in a distributed system to prevent the frequency of an operation from exceeding a defined limit and causing server errors. Here’s what you need to know. https://medium.com/@meenak1996/system-design-of-rate-limiter-from-basic-to-distributed-environment-44e05a42d2dc System Design of Rate Limiter from Basic to Distributed Environm.. 더보기 JVM options in K8s k8s pod 구성 시에 이용하는 options -XX:InitialRAMPercentage '-XX:InitialRAMPercentage'는 '-Xms' JVM 인수가 전달되지 않은 경우에만 초기 힙 크기를 설정하는데 사용된다. '-XX:MinRAMPercentage' 물리적 서버(또는 컨테이너)에서 사용 가능한 전체 메모리 크기가 250MB 미만인 경우에만 Java Heap 크기를 계산하는 데 사용된다. -XX:MinRAMPercentage=50을 구성하고 전체 물리적 메모리(또는 컨테이너) 메모리가 100MB라고 가정하면 Java 애플리케이션의 최대 Heap 크기는 50MB(즉, 100MB의 50%)로 설정된다. '-XX:MaxRAMPercentage' 물리적 서버(또는 컨테이너)에서 사용 가능한 .. 더보기 useful post In Spring Data JPA OneToMany What are These Fields (mappedBy, fetch, cascade and orphanRemoval) https://medium.com/@burakkocakeu/in-spring-data-jpa-onetomany-what-are-these-fields-mappedby-fetch-cascade-and-orphanremoval-2655f4027c4f In Spring Data JPA OneToMany What are These Fields (mappedBy, fetch, cascade and orphanRemoval) Before diving into associated fields for a one-to-many relation, fir.. 더보기 Spring Sleuth 3.0 up https://www.baeldung.com/spring-cloud-sleuth-single-application https://coe.gitbook.io/guide/log/sleuth https://stackoverflow.com/questions/66517644/java-spring-sleuth-zipkin-x-span-export-not-being-displayed https://stackoverflow.com/questions/65846859/how-did-spring-cloud-sleuth-add-tracing-information-to-logback-log-lines/65851232#65851232 https://cloud.spring.io/spring-cloud-sleuth/2.1.x/mul.. 더보기 Swagger Enum plugin Enum 속성에 대한 추가적 정의를 할 수 있다. 추가적 정의가 없는 경우, 기본적 주석이 추가 된다. 이 부분은 직접 custom작업 적용법 :https://github.com/hoereth/springfox-enum-plugin#usage 더보기 Kafaka consumer listener Sender MDC logging message를 전송한 sender의 MDC정보를 consumer listener가 추가적으로 logging mdc정보의 생성/주입/초기화 주기를 잘 확인 할수 있어야함 ConcurrentKafkaListenerContainerFactory를 생성하는 bean에서 recordFilterStrategy를 정의 현재 thread의 mdc정보를 copy thread의 zipkin 관련 정보를 제외하고 초기화 kafka message header에 주입한 MDC정보를 현재 thread의 MDC에 주입 zipkin 정보로 인해, 약간의 filter단계가 필요했음 더보기 Feature Toggle - togglz 개요 기능별로 서비스에 적용 유무를 제어할 필요가 있다. api version up, 특정 기능을 중지 해야 할떄. 이런 설계를 Feature Toggle 이란 패턴 정의 됨 https://martinfowler.com/bliki/FeatureToggle.html 해당 패턴을 구현한 프레임워크 선정 https://github.com/togglz/togglz 타프로젝트 대비 가장 최근 까지 활발 springboot에 적용이 가능 web 관리 console 이 존재 각 toggle의 정보를 file or db or nosql 에 저장 가능 sample https://medium.com/hprog99/manage-feature-flags-in-spring-boot-application-using-togglz-.. 더보기 API Versioning Rule Versioning 필요 api spec 변경 request, response model 변경 bug fix enum 속성 추가/삭제 Versioning 방식 URI Path URI 에 version path 를 추가 직관적이고 테스트가 쉽다 ex) http//domain/{version}/api-path http://localhost:8080/v1/users/{id} http://localhost:8080/v2/users/{id} URL Parameter version 정보를 query paramter 로 정의 URI Path 방식과 비슷하고, 동일한 URL을 사용 할 수 있다. ex) http//domain/api-path?version={version} http://localhost:8080/use.. 더보기 이전 1 ··· 4 5 6 7 8 9 10 ··· 24 다음 목록 더보기