2PC(Two-Phase Commit)는
Coordinator(조정자)와 Participants(참여자) 간의 프로토콜
트랜잭션을 모든 Participant에게 동일하게 커밋하거나 롤백하도록 보장하는 개념을 뜻한다.
dig(Domain Information Groper)은 DNS(Domain Name System) 정보를 조회하는 데 사용되는 명령어이다.
주로 도메인 이름에 대한 IP 주소나 기타 DNS 레코드를 확인할 때 사용한다.
사용법
dig [옵션] [도메인 이름] [레코드 타입]
ex) dig google.com
Given an array of strings words and an integer k, return the k most frequent strings.
Return the answer sorted by the frequency from highest to lowest. Sort the words with the same frequency by their lexicographical order.
회사에서 Redis 서버를 재기동 해야 하는 이슈가 생겼다.
재기동하기 전에 현재 Redis 서버와 커넥션을 맺고 있는 클라이언트를 확인하고 Graceful하게 종료를 시켜야 했다.
Redis 서버와 연결을 맺고 있는 명령어인 CLIENT LIST 명령어에 대해 알아보자.
Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element with -1.
After doing so, return the array.