일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 |
- Elasticsearch
- spring-kafka
- kafka interactive query
- RabbitMQ
- spring-cloud-stream
- 플레이 프레임워크
- coursera
- aws
- confluent
- reactive
- Spring
- schema registry
- kafkastreams
- scala
- play framework
- gradle
- Elk
- 한빛미디어
- statestore
- scala 2.10
- 카프카
- springboot
- Slick
- kafka streams
- spring-batch
- Kafka
- avo
- enablekafkastreams
- Logstash
- kafkastream
- Today
- Total
목록2018/02 (5)
b
spring-kafka 를 디펜던시에 추가하면 사용할 수 있는 @EnableKafkaStreams 은 2017년 5월에 구현되었다. (https://github.com/spring-projects/spring-kafka/pull/238)JavaDoc에 의하면 기본 Kafka Stream 컴포넌트를 활성화 해준다고 한다. 정확히 설명하면 defaultKafkaStreamsConfig 라는 StreamsConfig bean이 있을 경우 StreamsBuilderFactoryBean 빈을 만들어 준다. (https://goo.gl/WaCFQ6) * 먼저 InitializingBean를 상속을 받았기 때문에 afterPropertiesSet가 호출이 될 것이고 new StreamsBuilder() 가 자동으로 ..
springboot는 spring framework 를 좀 더 빠르고 쉽게 사용할 수 있는 목적을 가진 영역이다. 하지만 어느 순간부터 Spring 이외에도 Boot 까지 '제대로' 이해하지 못하면 엉망이 될 수 있는 존재가 되어버렸다. 특히, Condition annotation이 추가되면서 내부적으로 자세히 보고 적용을 해야한다. 예를 들어보면,1. KafkaStream을 쓰기 위해 spring-kafka를 import 할경우 (cloud-stream-xxx역시 마찬가지) 간단한 String 이나, 추천되어지는 Avro 가 아니고 Json으로 (디)시리얼라이저를 지정한다고 할 경우, 안에서 어디에서 new ObjectMapper가 만들어지고, 어디 설정은 application.yml의 spring.k..
Spring Application 에서 Stream을 materialize 하기 위해서는 StateStore를 bean으로 접근 가능하게 해야한다. (xxxxRepository를 @Repository로 사용하는것과 같게 생각하면 된다)그러기 위해서는 https://kafka.apache.org/10/javadoc/index.html?org/apache/kafka/streams/KafkaStreams.html 에서 store method를 이용해서 (최소한) KeyValueStore 형태의instance를 가지고 있어야 한다. 당연히 이 코드는 Spring Bean 내부에서 만들것이고, 그러면 제목과 같은 에러 메시지를 50프로 이상 볼 수 있다.confluent의 FAQ에서 해답을 찾을수 있는데 Kafk..
현재 request/reply EDA 를 구축하기 위한 보일플레이트 프로젝트 작성중이다. 와꾸는 Spring Boot 2.0 / Spring 5.0 / Spring Cloud Finchley.M6 를 셋팅하고 있다. 역시나 불안전한 모습을 많이 보여주고 있다. 우선 오늘 발생한 이슈 2가지,compile('org.springframework.cloud:spring-cloud-stream-binder-kafka') compile('org.springframework.cloud:spring-cloud-stream-binder-kstream')디펜던시에 binder-kstream와 binder-kafka를 동시에 넣으면 Field configurationProperties in org.springframewo..
springboot 문서를 참고 하면 /metrics 에 cache hit ratio 가 노출된다고 나온다 ( https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-metrics.html#production-ready-datasource-cache ) 하지만 그 리스트에 Caffeine 을 지원한 다는 얘기는 없다. 기본적으로 chche size는 metrics 에 노출이 되지만, hit/miss ratio는 노출이 되지 않으므로 구현이 필요하다.현재 상황 : 지원 목록 : EhCache, Hazelcast, Infinispan, JCache and Guava 확인 : 문서에 나온대로 CacheStatisticsAu..