Spring Cloud Stream 入門 - 1
目標 描述如何套用 Spring Cloud Stream + Kafka 以及概念.適合只面對 Kafka, 不涵蓋進階議題 範例 https://github.com/axxdeveloper/study-practice/tree/spring-cloud-stream 概念 一個 applicatio...
目標 描述如何套用 Spring Cloud Stream + Kafka 以及概念.適合只面對 Kafka, 不涵蓋進階議題 範例 https://github.com/axxdeveloper/study-practice/tree/spring-cloud-stream 概念 一個 applicatio...
前言 去年一些巧合, 跟團隊幾個人接手一個案子, 這個案子原本算是服務客戶特定需求的 POC, 但由於客戶愈來愈依賴這個工具, 因此交到我們手上. PS. 在我加入之前, 已經有人辛苦耕耘了好一陣子. 不過也因緣際會離開這個案子. 一個案子要成功, 從來不是誰可以獨立勝任. 享受合作的當下, 同時...
前言 去年一些巧合, 跟團隊幾個人接手一個案子, 這個案子原本算是服務客戶特定需求的 POC, 但由於客戶愈來愈依賴這個工具, 因此交到我們手上. PS. 在我加入之前, 已經有人辛苦耕耘了好一陣子. 不過也因緣際會離開這個案子. 一個案子要成功, 從來不是誰可以獨立勝任. 享受合作的當下, 同時...
XOR 的特性, 相同的值 XOR 會變成 0 0^0=01^0=10^1=11^1=0// codeint n = 0;for (int i = 0; i < 10000; i++) { n ^= i;}for (int i = 0; i < 10000; i++) {&n...
XOR 的特性, 相同的值 XOR 會變成 0 0^0=01^0=10^1=11^1=0// codeint n = 0;for (int i = 0; i < 10000; i++) { n ^= i;}for (int i = 0; i < 10000; i++) {&n...
題目: Given a binary array nums, return the maximum length of a contiguous subarray with an equal number of 0 and 1解法:當遇到 0 就 -1, 遇到 1 就 +1, 計算每個陣列位置的加總最重...
題目: 給定一個二元陣列 nums,回傳包含相同數量 0 和 1 的最長連續子陣列長度解法:當遇到 0 就 -1, 遇到 1 就 +1, 計算每個陣列位置的加總最重要的概念就是: 當遇到相同的加總數字, 表示中間經歷了相同的 1 & 0.因此解法就是:走過所有的陣列, 計算每個位子的 count...
Requirement Developers keep releasing new software, the version format was {major}.{minor}.{micro}.{build}When a device ask for upgrade information, we need ...
需求 開發者持續發布新軟體,版本格式是 {major}.{minor}.{micro}.{build}當裝置詢問升級資訊時,我們需要找出最新的軟體版本但不只是最新的版本,我們可能還需要知道以下版本資訊,才能提供適合的建議是否有 3 個更新的軟體版本?有多少更新的軟體版本? 挑戰 資料庫用「自然排序」來排文字這兩...
Intention: Why I need Kafka Transaction需求中收到 message 並處理之後, application 需要另外傳送訊息出去給多個 topic.不管遇到任何錯誤, 我都希望訊息就不要送出去.除此之外, 原本 consume 的訊息也不要收下來How it worksProd...
動機:為什麼我需要 Kafka Transaction需求中收到 message 並處理之後, application 需要另外傳送訊息出去給多個 topic.不管遇到任何錯誤, 我都希望訊息就不要送出去.除此之外, 原本 consume 的訊息也不要收下來運作方式Producer 用 transaction.i...
Source Code: https://github.com/axxdeveloper/study-practice/tree/testcontainer 在一個 sharing session 分享如何使用 testcontainer 輔助 SpringBoot application 開發測試 K...
Source Code: https://github.com/axxdeveloper/study-practice/tree/testcontainer 在一個 sharing session 分享如何使用 Testcontainer 輔助 SpringBoot application 開發測試 K...
第一次錄影片分享技術議題. Source code: https://github.com/axxdeveloper/study-practice/tree/gpb 主要其實就是之後可以用 Any.pack( gpbEntity ).toByteArray 傳送出去.接收端也適用 Any.p...
第一次錄影片分享技術議題. Source code: https://github.com/axxdeveloper/study-practice/tree/gpb 主要其實就是之後可以用 Any.pack( gpbEntity ).toByteArray 傳送出去.接收端也適用 Any.p...
WAL - Write Ahead Log, or xlog, or transaction log. WAL 就像是 Cassandra 的 CommitLog, 會先被存起來, 再寫進資料庫, 使 Postgres 不管何時被關閉, 重啟後都可以恢復資料.WAL 存在 pg_wal folder...
WAL - Write Ahead Log,又叫 xlog 或 transaction log。WAL 就像是 Cassandra 的 CommitLog, 會先被存起來, 再寫進資料庫, 使 Postgres 不管何時被關閉, 重啟後都可以恢復資料.WAL 存在 pg_wal folder 下Po...
ngIftrue => Host div will be included in the HTML elementsfalse => Host div will be excluded in the HTML elements<div *ngIf="needShow(4)" class="bg...
ngIftrue => Host div 會被加入 HTML 元素中false => Host div 會被排除在 HTML 元素外<div *ngIf="needShow(4)" class="bg-info p-2 mt-1"> Check need to show if pass ...
1. Given file in project folder ./mongo/docker-entrypoint-initdb.d:/initdb.sh ``` echo '=====================================>' mongo --eval 'db.get...