일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- logback
- Leaderboard
- SW 마에스트로
- 스프링부트
- Database
- slow query
- Grafana
- yml
- SW Maestro
- keda
- spring boot
- 0 replica
- Kubernetes
- eks
- zset
- MSSQL
- Strimzi
- 동등성
- hammerDB
- Helm
- Kafka
- blue-green
- docket
- Benchmarks
- Debezium
- Software maestro
- Salting
- traceId
- propogation
- minreplica
- Today
- Total
목록전체 글 (64)
김태오
JMeter 를 사용한 load 및 performance testing을 해볼 것이다. JMeter는 unit testing tool 이며, Java 기반 application에 초점이 맞춰져 있다. 다른 언어의 테스트 툴로는 NUnit(.NET), pytest(python) 등이 있다. 보통 SOAP 및 REST service testing을 위해 사용하며, Database, FTP, SFTP 등의 테스트도 가능하며, Jenkins 등에서 CI/CD integration이 가능하다. 사용법은 우선 공식 웹사이트에서 Apache JMeter 를 다운로드받고, extract 후 bin directory로 가서 jmeter를 run해주면 되는데, 이는 application이 아니기 때문에 독에 두거나 아이콘..
리더보드를 생성하는 데 그냥 JPA repository 에서 query를 날리는 방식이 있다. @Query("SELECT new com.swm.cbz.dto.LeaderboardDTO(u.users.userId, COUNT(u.video.videoId)) " + "FROM UserVideo u " + "GROUP BY u.users.userId " + "ORDER BY COUNT(u.video.videoId) DESC") List findLeaderboardData(); 그냥 간단히 이런 식으로 쿼리를 생성하고 controller 랑 service layer에서 사용하면 된다. 기능상 전혀 문제가 없으며, RDBMS에서 데이터를 뽑아옴으로써 persistence가 강화되긴 한다. 그러나 많은 사용자가 리..
상세한 API documentation을 위해 swagger를 설정했다. 협업과 소통을 위해 pre-documentation에 쓸 수 있었지만 그때는 notion으로 API를 정리하기로 해서 기능 구현이 마무리된 지금 시점에 도입했다. Spring Boot와 연동하는데, 버젼에 따라 configuration에 차이가 있고 조금 까다롭다.implementation 'io.springfox:springfox-boot-starter:3.0.0'implementation 'io.springfox:springfox-swagger-ui:3.0.0'일단 이걸 추가해주는데, Spring Boot에 Swagger를 integrate하는데 여러 옵션이 있는데, springfox가 개중 하나다.이후 Docket bean을 ..
프로젝트의 monitoring을 위하여 prometheus와 grafana를 도입하였다. 많은 경우 함께 쓰이는 오픈소스 도구로 각기 다른 역할을 수행하며, prometheus보다 많은 역할을 수행하는 thanos라는 옵션도 있다. 우선 prometheus server는 metrics를 pull하여 수집하며, metric name 과 dimension에는 key-value data model을 사용한다. pull model은 실시간으로 application endpoints에서 metric을 수집한다. endpoint들을 직접 명시할 필요 없이, spring boot application에 간단한 설정을 하면 swagger과 비슷하게 자동으로 수집이 된다. HTTP 외에도 CPU, memory, disk..
There are various meanings of proxy depending on what context it is used in. This post is to clarify the uses and the definitions of "proxy". Proxy Server: This is an intermediary server separating end users from the websites they browse. Proxy servers provide varying levels of functionality, security, and privacy depending on your use case, needs, or company policy. Reverse Proxy: This is a typ..