개발자 라이프
-
[매일읽기] Micro optimizations in Java. String.replaceAll개발자 라이프/매일읽기 2020. 9. 7. 11:14
원문: medium.com/javarevisited/micro-optimizations-in-java-string-replaceall-c6d0edf2ef6 Micro optimizations in Java. String.replaceAll In this post, we will discuss the usage of another prevalent code constructions, the String.replaceAll and String.replace methods, and we… medium.com 이번 글은 흔히 사용되는 String.replaceAll과 String.replace 메서드 사용법에 대해 다루며 자바 11 버전에서 이것들의 성능을 확인하고 어떻게 최적화할 수 있을지 알아본다. Stri..
-
[매일읽기] 7 Git Best Practices to Start Using in Your Next Commit개발자 라이프/매일읽기 2020. 9. 5. 10:12
원문 : medium.com/sourcelevel/7-git-best-practices-to-start-using-in-your-next-commit-f9dc54990e86 7 Git Best Practices to Start Using in Your Next Commit Every software has best practices. Git is not different. It has become the most used versioning system in the last years. Many companies… medium.com 1. master 브랜치에 바로 푸시하지 마라 master는 최종 배포를 위한 브랜치 별도의 브랜치를 따서 작업하고 머지할 것 2. 작성자의 신원을 잘 작성하라 커밋 과정에..
-
[Kafka 개발] 카프카 프로젝트에 컨트리뷰트 하는 방법개발자 라이프/카프카 2020. 9. 4. 11:09
들어가며 카프카의 공식 문서 중 How to contribute에 대한 (의역에 가까운) 번역 본입니다. 오역이 있을 수 있으니 틀린 부분 혹은 틀린 것 같은 부분은 댓글로 남겨주시길 바랍니다. 또한 작성일 기준으로 이후 변경된 부분이 있을 수 있습니다. 작성일과 최근 수정일을 참고해 주시길 바랍니다. 컨트리뷰트 하는 방법 사소한 코드 정리부터 커다란 기능 추가까지 모든 기여를 환영합니다. 자바 혹은 스칼라에 대해 몰라도 이 프로젝트에 기여할 수 있습니다. 가장 중요한 부분은 클라이언트 부분입니다. 우리-앞으로의 우리는 카프카 진영을 이야기합니다-는 좋은 품질의 코드와 문서를 가지는 여러 언어 클라이언트를 원합니다. 이건 카프카에 관한 툴들을 구성하는 것만큼 카프카 프로젝트에서 매우 중요한 부분입니다. ..
-
[매일읽기] Working with New Generation of Java개발자 라이프/매일읽기 2020. 9. 3. 10:34
원문 : medium.com/swlh/working-with-new-generation-of-java-236e2dc38316 Working with New Generation of Java Java is the pioneer programming language that ruled the market from last 20 years and performing well. medium.com JDK 14에서 추가된 피쳐들을 살펴본다. 피쳐에 관련된 개선된 코드 비교는 원문을 참고하길 바랍니다. Try-with-resource statement 기존의 try-catch 문은 자원 해제를 위해 finally 문을 별도로 사용해야 했음 try-with-resource는 try 문에 아규먼트 형태로 변수를 초기화..
-
[매일읽기] Understanding gRPC개발자 라이프/매일읽기 2020. 9. 2. 10:58
원문 : medium.com/better-programming/understanding-grpc-60737b23e79e Understanding gRPC And the differences between REST vs. RPC architectures medium.com gRPC에 대해 간략히 알아본다. 또한 웹 애플리케이션과 통신하는 기존 프로토콜 혹은 아키텍처와 gRPC 간 비슷한 점과 다른 점을 알아본다. gRPC란 무엇인가? gRPC는 서비스 간 고 성능 통신을 하기 위한 RPC(Remote Procedure Call) 프레임워크 서로 다른 언어로 작성된 서비스들을 연결 로드 밸런싱, 추적(tracing), 헬스 체크, 인증을 위해 필요에 따라 쓸 수 있음(pluggable) 기본적으로 구조화된 ..
-
[매일읽기] SAGA Pattern개발자 라이프/매일읽기 2020. 8. 27. 19:46
원문 : https://medium.com/@omererakman/saga-pattern-2413e636ab16 SAGA Pattern If you are working with Microservices and database per service then SAGA will be a topic for you to think about. With database per service… medium.com 문제 상황 MSA에서는 각 서비스가 각자의 DB를 가지고 있음 단순한 하나의 요청이라도 여러 서비스를 경유하는 트랜잭션이 될 수 있음 이러한 트랜잭션 과정에서 ACID 원칙이 지켜져야 함 전통적인 해결 방법으로 Two Phase Commit(2PC) 방식이 있음 NoSQL 에서 안됨 블록킹 프로토콜 사가(..
-
[매일읽기] Garbage Collection: How it’s done개발자 라이프/매일읽기 2020. 8. 16. 10:41
원문 : https://medium.com/@kasunpdh/garbage-collection-how-its-done-d48135c7fe77 Garbage Collection: How it’s done? If you are familiar with the basics of the memory allocation in programming languages, you know that there are two parts in the memory… medium.com Heap과 Stack 메모리 Stack 메모리는 스레드 실행에 사용되는 메모리 함수가 호출되면 스택에 메모리 블록이 할당되고, 그 메모리 함수의 지역 변수들이 저장됨 함수가 반환되면 할당됐던 메모리들도 해제됨 Heap 메모리는 new 등의 키워드..
-
[매일읽기] Java Integer Cache — Why Integer.valueOf(127) == Integer.valueOf(127) Is True개발자 라이프/매일읽기 2020. 8. 8. 09:59
원문 : https://medium.com/programmingmitra-com/java-integer-cache-why-integer-valueof-127-integer-valueof-127-is-true-e5076824a3d5 Java Integer Cache — Why Integer.valueOf(127) == Integer.valueOf(127) Is True posted by Naresh Joshi on November 25, 2018 medium.com 자바의 2가지 타입 primitive type : byte, char, short, int, float, double, long, boolean 메모리에 직접 값이 쓰임 reference type : primitive type 외의 객체에 대한..