https://medium.com/@saadmujeeb/the-ultimate-guide-to-api-architectural-styles-c8c781014835 The Ultimate Guide to API Architectural Styles Discover the top API architectural styles — SOAP, REST, GraphQL, gRPC, WebSocket, and Webhook — in this comprehensive, engaging guide. medium.com https://www.linkedin.com/posts/nelsonamigoscode_systemdesign-coding-interviewtips-activity-7107264125214277633-uW1..
slack을 통해서 여러가지 알림들을 받는게 기본이 된 시대. 의식적으로 채널에 알림연동을 하고, 실제 workin의 결과를 통해서 연동이 잘 되어 있음을 확인 하곤 했었다. 그러다, 최근 실제 working이 되기 전에 어떻게 Test 할 수 있나 라는 뒤늦은 생각이 들었다. 그래서. 기록으로 남겨둔다... slack webhook URL test POST https://hooks.slack.com/services/xxxxxx Content-type: application/json { "text": "Hello, world." } curl curl --request POST \ --url https://hooks.slack.com/services/xxxxxx \ --header 'Content-type..
What’s Kubernetes Probe Probe 설명 livenessProbe livenessProbe를 통과하지 못하면, kubelet은 container를 종료하고, 해당 container는 재시작 정책의 대상이 됩니다. readinessProbe readinessProbe를 통과하지 못하면, endpoint controller는 pod와 연관된 모든 서비스의 endpoint에서 pod의 IP 주소를 제거합니다. startupProbe startupProbe가 시작되면 startupProbe를 통과하기 전까지 다른 Probe는 활성화되지 않습니다. 만약 startupProbe를 통과하지 못하면 kubelet은 container를 종료하고 해당 container는 재시작 정책의 대상이 됩니다. P..
Synchronous vs Asynchronous 동기와 비동기를 구준하는 주요 기준은 작업순서의 보장 여부 Synchronous(동기화) 작업의 순서가 보장됨. Thread는 요청한 작업의 결과를 받고 다음 작업 진행 특정 API의 응답 반환 시간이 n분 소요 된다고 하면 이 요청이 실행 되는 n분 동안 Process/Thread는 다른 작업을 하지 못하고, 응답이 반환 되기를 기다려야 한다. 장점 : 설계가 간단하고 직관적이다. 단점 : 요청에 대한 결과가 반환되기 전까지 대기해야 한다. Asynchronous(비동기화) 작업의 순서가 보장 되지 않음. Thread는 요청한 작업의 결과를 받지 않고 다음 작업 진행 특정 API를 실행 하는데 시간이 n분 소요 되어도 그 시간동안 다른 작업을 수행할 수..
com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server time zone value 'KST' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support mysql 드라이브 버전을 6 버전이상 쓸 경우, 생긴 이슈.디비서버쪽 설정을 변경하지 못하면. 버전을 5.x 으로 ..
1. Aapache http.conf## Timeout: The number of seconds before receives and sends time out.#Timeout 70 workers.properties worker.tomcat.type=ajp13worker.tomcat.port=8001worker.tomcat.connect_timeout=1000worker.tomcat.prepost_timeout=1000worker.tomcat.socket_timeout=70worker.tomcat.connection_pool_timeout=10worker.tomcat.reply_timeout=1000 2. Tomcat server.xml
http://key-value-stories.blogspot.kr/2015/02/memcached-internals-design.html?mkt_tok=3RkMMJWWfF9wsRonvKXKZKXonjHpfsX56uolX6KxlMI/0ER3fOvrPUfGjI4DT8BrI%2BSLDwEYGJlv6SgFQ7HAMa5m3rgMWRk%3D DiscussionStrong sides of Memcached, compared to RedisIt is multithreaded, and scales up to 5 concurrent threads (according to the note in memcached source code itself). It sounds plausible.It stores keys and val..
@ControllerAdvice 를 통해서 error 처리가 가능하다. 두개 이상의 @ControllerAdvice 가 있을 경우, 처리 순서를 지정해야 하는 경우가 있다. 이럴 경우. @Order 어노테이션을 이용해서 우선순위를 지정한다. http://stackoverflow.com/questions/19498378/setting-precedence-of-multiple-controlleradvice-exceptionhandlersclass UserProfileException extends RuntimeException { } @ControllerAdvice @Order(Ordered.HIGHEST_PRECEDENCE) class UserProfileExceptionHandler { @Exceptio..
java config 스타일로 CharacterEncodingFilter 추가.흔히 요청들의 encoding 을 지정하기 위해 이용한다.특히, 한글 처리. tomcat 에도 uriencoding 을 지정하고, 추가로 이 필터를 지정하면 된다. http://www.rockhoppertech.com/blog/spring-mvc-configuration-without-xml/FiltersYou can also create any Servlet Filters here. Here are a few Spring provided Filters.In this example I set up the CharacterEncodingFilter.Java12345678910111213@Overridepublic void onS..