기본 콘텐츠로 건너뛰기

3월, 2017의 게시물 표시

Rabbit MQ

RabbitMQ is a messaging broker - an intermediary for messaging. It gives your applications a common platform to send and receive messages, and your messages a safe place to live until received.  https://www.rabbitmq.com/

React multiple setState

State Updates May Be Asynchronous React may batch multiple   setState()   calls into a single update for performance. Because   this.props   and   this.state   may be updated asynchronously, you should not rely on their values for calculating the next state. Reference - https://facebook.github.io/react/docs/state-and-lifecycle.html#state-updates-may-be-asynchronous

Kafka introduction

Kafka is a distributed streaming platform real-time data pipelines publish and subscribe to streams of records. A topic is a category or feed name to which records are published. For each topic, the Kafka cluster maintains a partitioned log 하나의 파티션에 하나의 컨슈머만 연결할수 있음 하나의 컨슈머는 여러개의 파티션에서 메시지를 가져올 수 있음 컨슈머 그룹마다 각자의 오프셋을 별도로 관리 Refercences - https://kafka.apache.org/intro 클라우드 기반 메시징 서비스 - 아마존 키네시스 - 구글 펍섭

javascript - convert map to array

- Array Array.from(map.values()); -  for...of  for (let [key, value] of iterable) {   console.log(value); } A Map object iterates its elements in insertion order — a for...of loop returns an array of [key, value] for each iteration. Refercences  - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators