<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Webber on Medium]]></title>
        <description><![CDATA[Stories by Webber on Medium]]></description>
        <link>https://medium.com/@webber.cheng?source=rss-181b4c5051ec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6pSwfPcd24kQSjzfvt6ZkA.png</url>
            <title>Stories by Webber on Medium</title>
            <link>https://medium.com/@webber.cheng?source=rss-181b4c5051ec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 03:04:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@webber.cheng/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[InfluxDB & Grafana 實作]]></title>
            <link>https://medium.com/@webber.cheng/influxdb-grafana-%E5%AF%A6%E4%BD%9C-9f29df97672a?source=rss-181b4c5051ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f29df97672a</guid>
            <category><![CDATA[grafana]]></category>
            <category><![CDATA[influxdb]]></category>
            <category><![CDATA[time-series-database]]></category>
            <dc:creator><![CDATA[Webber]]></dc:creator>
            <pubDate>Wed, 19 Jun 2019 08:25:49 GMT</pubDate>
            <atom:updated>2019-06-19T08:25:49.242Z</atom:updated>
            <content:encoded><![CDATA[<p>現今大數據時代情況下，數據不單只是海量，且併發性越來越高，連帶要求系統吞吐量要高，處理反應要即時。因此，相對應技術應運而生，像是</p><ul><li>Streaming : Kafka</li><li>Time-Series DB : InfluxDB/Prometheus/Graphite</li><li>監控 UI : Grafana</li></ul><p>Time-Series DB 相較以往的 RDB / Document / Key-Value / Wide-Column 等類型 DB，它是更適合處理時間性質資料，像是指定時間區間做統計查詢，因此很適合該場景 :</p><ul><li>設備每一秒報出各自的溫度，要能快速取出每五秒的平均值</li></ul><p>而 Time-Series DB 為了達到能處理海量數據且高效能力，這類技術通常只提供 Insert/Read ，Delete 須依靠 Retention Policy。另外，一個很大優點是 InfluxDB 提供 HTTP Post 便可以將資料寫入，相當輕便好整合。</p><p>另外，要選擇與參考各類型 DB，推薦可到此<a href="https://db-engines.com/en/ranking">網站</a>，有詳細的排名與分類。</p><p>接下來，簡易介紹如何安裝與整合 InfluxDB &amp; Grafana，並透過 HTTP 持續送資料到 InfluxDB，Grafana 即時呈現數據</p><p>首先，安裝的部分，推薦用這個 <a href="https://github.com/jkehres/docker-compose-influxdb-grafana">docker-compose</a></p><p>裡面除了包含 InfluxDB &amp; Grafana 鏡像以外，也增加了 Chronograf 這套開源軟體，它是作為 InfluxDB Admin UI (InfluxDB 原本官方的 Admin UI 已經放棄改用 Chronograf)</p><p>照著 GitHub 上說明安裝完後，應可順利到 Chronograf Admin UI，去建立資料庫，甚至可以做查詢達到類似 Grafana 效果。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GCGgq0JHd_VgBAyb-cijdw.png" /></figure><p>接下來，透過 HTTP API，可模擬機台送點到 InfluxDB</p><pre>curl -i -XPOST &#39;http://localhost:8086/write?db=iot_test&#39; --data-binary &#39;equipment,machine_id=1,region=tw value=0.5&#39;</pre><ul><li>database : iot_test</li><li>measurement 可類比成 table name : equipment</li><li>tag key 可類比成有索引的欄位 : machine_id &amp; region</li><li>tag value : 1 &amp; tw</li><li>field key : value</li><li>field value : 0.5</li></ul><p>再到 Grafana 便可以設計 Dashboard，設定對應的查詢條件</p><p>以下列SQL 為例，取出 machine_id 1設備每30秒平均值</p><pre>SELECT mean(“value”) AS “mean_value” FROM “iot_test”.”autogen”.”equipment” WHERE “machine_id” = ‘1’ GROUP BY time(30s) FILL(none)</pre><ul><li>autogen 是 influxdb 每個 DB default retention policy，預設是永遠保留。建議可以改變保留期間或建立新的 retention policy</li><li>若是要傳入資料到 non-default retention policy，HTTP 參數需要指定 rp parameter，並給予 retention policy name</li></ul><p>最後呈現效果如下 :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bnmQYq7R9Y46gxCZlSgQ0A.png" /></figure><p>更好的 Practice，可以透過 Kafka Producer &amp; Consumer 或是 Kafka Connect for InfluxDB，達到一個更完整的 Real-Time 資料流架構</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f29df97672a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS JAVA SDK for Kinesis]]></title>
            <link>https://medium.com/@webber.cheng/aws-java-sdk-for-kinesis-f2ff4f5905ef?source=rss-181b4c5051ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2ff4f5905ef</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kinesis]]></category>
            <dc:creator><![CDATA[Webber]]></dc:creator>
            <pubDate>Fri, 07 Sep 2018 10:09:09 GMT</pubDate>
            <atom:updated>2018-09-07T10:09:09.294Z</atom:updated>
            <content:encoded><![CDATA[<p>Kinesis 主要概念可透過這張圖來詮釋，詳細內容可直接到 AWS 官網研究</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IIl3SQUllYCKydbuUd9XVA.png" /><figcaption><a href="https://docs.aws.amazon.com/zh_cn/streams/latest/dev/key-concepts.html">https://docs.aws.amazon.com/zh_cn/streams/latest/dev/key-concepts.html</a></figcaption></figure><p>而 Kinesis 產品家族，主要又分為 Data Streams、Data Firehose、Data Analytics、Video Streams</p><p>本篇重點在如何將資料傳入 Data Streams 與 Data Firehose，先以 AWS SDK 作為範例，專案可參考 <a href="https://github.com/webber1028/amazon-kinesis">GitHub Link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*vf3AhsmA3BCAzolv4y0Zhg.png" /></figure><p>Kinesis Firehose :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0759569057be050b22b609ad9f7b697b/href">https://medium.com/media/0759569057be050b22b609ad9f7b697b/href</a></iframe><p>Kinesis Data Stream: (TODO)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2ff4f5905ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS certified solutions architect — Professional 準備心得]]></title>
            <link>https://medium.com/@webber.cheng/aws-certified-solutions-architect-professional-%E6%BA%96%E5%82%99%E5%BF%83%E5%BE%97-48389c47f0dd?source=rss-181b4c5051ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/48389c47f0dd</guid>
            <category><![CDATA[aws-solution-architect]]></category>
            <category><![CDATA[aws-certification]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Webber]]></dc:creator>
            <pubDate>Mon, 06 Aug 2018 11:06:55 GMT</pubDate>
            <atom:updated>2018-08-06T11:09:02.716Z</atom:updated>
            <content:encoded><![CDATA[<p>繼一年前取得 <a href="https://medium.com/@webber.cheng/aws-certified-solutions-architect-associate-%E6%BA%96%E5%82%99%E5%BF%83%E5%BE%97-b033b71f9743">solutions architect associate</a> 後，最近也順利取得 solutions architect professional 認證了!!</p><h4>AWS Certification Roadmap</h4><p>AWS 最近又增加了基礎級 (Foundational)認證，我想這等級認證的好處是，可方便參加專家級 (Specialty) 認證考試，因為先決條件是要有助理級或基礎級認證。不過本文重點還是擺在專業級 (Professional) Solutions Architect 上。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zf7LCHhXN3YkrnDp4-Wy_A.png" /></figure><h4>準備過程</h4><ul><li>直接推薦 <a href="http://jayendrapatil.com/">AWS 超神筆記</a>，除了有針對各項主題的重點，還整理出不少練習題目。甚至還有 Solutions Architect Professional Learning Path 專篇筆記。如果單純為了認證，有詳閱每篇筆記的內容，應該也蠻夠用了。</li><li>至於線上課程，我是先上 <a href="https://cloudacademy.com/learning-paths/solutions-architect-professional-certification-preparation-for-aws-17/">Cloud Academy</a>，但上到中後期，覺得一些課程內容沒有講到重點，甚至他的各項課程經常是共用給其他認證，所以重點比較無法集中。後來改成 <a href="https://linuxacademy.com/amazon-web-services/training/course/name/aws-certified-solutions-architect-professional-level">Linux Academy</a> ，效果就好上不少。這兩個網站有個好處是，有提供 Hands-On Lab 可實際練習 AWS，以及 Step By Step 教學，透過 Lab 就不需要用自己的 AWS 帳號去操作練習了，讓自己AWS 環境保持乾淨。比較可惜是，這兩個網站都是採取訂閱制，並非買斷課程服務。</li></ul><h4>考試內容</h4><ul><li>共 77 題，單/複選，170 分鐘。及格分數 70 分。</li><li>大量的情境題，閱讀量還不小。每題幾乎都是綜合多個觀念。(<a href="https://d1.awsstatic.com/Train%20&amp;%20Cert/docs/AWS_certified_solutions_architect_professional_examsample.pdf">官方範例題</a>)</li></ul><h4>重點內容</h4><ul><li><strong>High Availability and Business Continuity</strong></li></ul><p>如何設計高可用、高容錯的系統架構，並且當災難發生時，要具備可快速復原的能力。</p><ul><li><strong>Costing</strong></li></ul><p>如何根據不同的系統架構需求，設計一個合適成本的解決方案。考量不同服務間的花費。</p><p>另外，需稍微了解一下 AWS consolidated billing 模式</p><ul><li><strong>Deployment Management</strong></li></ul><p>了解各類型部署模式。另外，容器在我的考試只出現一題，也許等未來考試改版才會增加容器相關議題。</p><ul><li><strong>Network Design</strong></li></ul><p>特別注重在 VPN &amp; Direct Connect 相關議題。這跟後面的 Hybrid Architecture 會互相搭配。</p><p>VPC 相關議題也是必考內容，像是 Route Table、IGW、VGW、SG、ACL等等。</p><ul><li><strong>Data Storage</strong></li></ul><p>如何根據不同需求，設計最適合的 Storage 方案，包含 RDS、DynamoDB、S3、Storage Gateway 等服務。還有不少題目是有關 RDS MultiAZ 與 Read Replication 相關議題。</p><ul><li><strong>Security</strong></li></ul><p>此章節比重最大! 各方面資安保護都有探討，從 IAM、資料到網路層等相關AWS 服務，都必須清楚了解相關資安措施。</p><p>IAM Cross Account Role、IAM Identity Providers and Federation</p><p>S3 落地 (At Rest)加密種類與細節</p><p>網路傳輸保護和 SSL 相關議題</p><p>我在考試上有遇到兩、三題關於 DDOS、IDS/IPS</p><ul><li><strong>Scalability &amp; Elasticity</strong></li></ul><p>如何設計動態擴展、彈性架構，以便因應大量的併發需求。會著重在 Auto Scaling、SQS、CloudFront 等用法。</p><ul><li><strong>Cloud Migration &amp; Hybrid Architecture</strong></li></ul><p>也要考慮從本地端服務搬遷到 AWS 相關方式。以及混合雲架構要怎麼實踐，這邊會牽扯到不少 VPN &amp; Direct Connection 議題。</p><h4>心得</h4><ul><li>藉由這次的學習，會強化在架構設計各層面問題的思考，像是從動態擴展、高可用和可靠的架構設計。</li><li>特別要關注在系統備份、災難復原的設計。其實這點真的非常重要，凡事需做最壞打算，以及最好事先做過災難演練。否則當災難發生時，系統停機越長所造成損失當然越大。甚至資料毀損，哪就更悲劇了。</li><li>思考設計最適合架構。畢竟越完美的架構，理論上花費成本相對也較高。在設計架構之前，可先定義好系統相關需求，以及 RTO 、RPO 目標的時間。有這樣的前提，再去思考要以何種設計與兼顧成本的方式，去滿足目標。</li><li>接下來，先休息一陣子。再往 AWS Big Data 認證邁進 !</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48389c47f0dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring Boot 打包 external jar 解決方案]]></title>
            <link>https://medium.com/@webber.cheng/spring-boot-%E6%89%93%E5%8C%85-external-jar-%E8%A7%A3%E6%B1%BA%E6%96%B9%E6%A1%88-292d6e800df5?source=rss-181b4c5051ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/292d6e800df5</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[maven]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Webber]]></dc:creator>
            <pubDate>Tue, 12 Jun 2018 09:50:38 GMT</pubDate>
            <atom:updated>2018-06-12T09:50:38.010Z</atom:updated>
            <content:encoded><![CDATA[<p>在開發 Spring Boot 專案時，若要引入的 jar 並非是在 Maven Repository</p><p>首先，需先在 pom.xml 加入 dependency</p><pre>&lt;dependency&gt;             <br>  &lt;groupId&gt;com.test&lt;/groupId&gt;<br>  &lt;artifactId&gt;api&lt;/artifactId&gt;<br>  &lt;version&gt;1.0.0&lt;/version&gt;<br>  &lt;scope&gt;system&lt;/scope&gt;<br>  &lt;systemPath&gt;${basedir}/src/main/resources/lib/api.jar&lt;/systemPath&gt;<br>&lt;/dependency&gt;</pre><p>這樣設定後，在 IDE 上 Run Spring Boot AP 是可以正常運作</p><p>但是當打包成 Spring Boot jar 並執行，執行到該 external jar class 時，便會出現 ClassNotFoundException。原因在於，該external jar 並沒有被打包到 Spring Boot jar 裡面的 BOOT-INF/lib (以 Spring Boot 2.0.2 版本為例)</p><p>Spring Boot Maven Plugin 有提供解法，再加入以下設定，就一切OK 了 (<a href="https://docs.spring.io/spring-boot/docs/current/maven-plugin/repackage-mojo.html">Link</a>)</p><pre>&lt;build&gt;<br>  &lt;plugins&gt;<br>    &lt;plugin&gt;<br>      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;                  <br>      &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;                  <br>      &lt;configuration&gt;                     <br>        &lt;includeSystemScope&gt;true&lt;/includeSystemScope&gt;                <br>      &lt;/configuration&gt;<br>    &lt;/plugin&gt;<br>  &lt;/plugins&gt;<br>&lt;/build&gt;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=292d6e800df5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Container Orchestration, Docker Built-In Swarm Mode 容器編排]]></title>
            <link>https://medium.com/@webber.cheng/container-orchestration-docker-built-in-swarm-mode-%E5%AE%B9%E5%99%A8%E7%B7%A8%E6%8E%92-2be5d4959c3f?source=rss-181b4c5051ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/2be5d4959c3f</guid>
            <category><![CDATA[container-orchestration]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-swarm]]></category>
            <dc:creator><![CDATA[Webber]]></dc:creator>
            <pubDate>Tue, 23 Jan 2018 07:08:15 GMT</pubDate>
            <atom:updated>2018-01-23T07:08:15.761Z</atom:updated>
            <content:encoded><![CDATA[<p>容器技術近年發展，重心大多在編排管理 (Container Orchestration)，來簡化複雜的容器叢集管理問題。因此，各家容器與公有雲廠商都在爭取這塊市場。而現今，這塊領域最火紅且市占率最高者，想當然爾是 Kubernetes (K8s)</p><p>但這篇文章，我還是先以 Docker 1.12 推出的 Swarm Mode 作簡易介紹。主要是它為 Docker 所內建，安裝與使用上相當方便。並可快速地達到多台 node , container 管理，以及服務發現 (Service discovery), 負載平衡 (Load Balancing) 和 routing mesh available 等功能</p><p>注意 “Swarm Mode” 是 Docker 1.12 才有的服務，它跟 Docker 早期的 Swarm 並不是完全相同的東西。</p><p>下圖是 Swarm Mode 架構圖。特別介紹一下 Internal Distributed State Store。當 Docker 執行 Swarm Mode 時，Manager Node 必需實作 <a href="http://thesecretlivesofdata.com/raft/">Raft Consensus Algorithm</a> ，用來確保分佈式環境狀態一致性，類似常見的 etcd, consul (ZooKeeper 並不是 Raft )。而 Swarm Mode 有內建 Raft Store，因此使用上方便許多。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tYXo_tvkZJgVzjYZCkOjoQ.png" /><figcaption><a href="https://docs.docker.com/engine/swarm/how-swarm-mode-works/nodes/">https://docs.docker.com/engine/swarm/how-swarm-mode-works/nodes/</a></figcaption></figure><p>Swarm Mode 需要多台主機，<a href="https://labs.play-with-docker.com/">Play With Docker</a> 是一個很方便的練習環境，可以免費開啟多台虛擬機，並也安裝好 Docker 相關服務，而且只需要透過瀏覽器!!</p><p><strong>1. 建立 3 Node Swarm Cluster</strong></p><pre># 新增三台 Instance <br># 在第一台輸入</pre><pre>docker swarm init --advertise-addr=&lt;HOST_IP&gt;</pre><pre># 輸入完後，會產生 join 指令，將此指令貼到另外兩台作為 Worker Node<br># 列出 Swarm nodes (只能在 Manager Node)</pre><pre>docker node ls</pre><pre># 將另外兩台也變成 Manager Node</pre><pre>docker node update --role manager node2<br>docker node update --role manager node3</pre><p><strong>2.</strong> <strong>創建 3 份 docker container</strong></p><pre># 創建三個 nginx image</pre><pre>docker service create --replicas 3 -p 80:80 -d --name nginx nginx</pre><pre># 列出該 image 服務分佈狀況，可以看到 Swarm 自動分配每個 node 執行一個 image</pre><pre>docker service ps nginx</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qa2MYrTHLV1MsNSGhGxYKw.png" /></figure><p>3. <strong>Auto Recovery</strong></p><pre># 在任一台 Node 刪除 container</pre><pre>docker container rm -f &lt;Container_ID&gt;</pre><pre># Swarm 會自動 recovery </pre><pre>docker service ps nginx</pre><p><strong>4. Overlay Network</strong></p><p>當 Docker 執行 Swarm 時，Docker 會建立出 <a href="https://docs.docker.com/engine/swarm/networking/">Overlay Network</a>，它提供在Multi-Host 環境下，Container 與 Container 之間是可以互相連線。並且不同的 Overlay Network 是具有隔離性，這觀念就像是 AWS subnet。我們來看以下範例：</p><pre>docker network ls</pre><p>應該會看到一個 name 為 ingress 的 overlay network，這是 Swarm 預設建立的。還記得之前所建立的 nginx container ，他們預設也會在這個 subnet 裡面 。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*dAJim0SBER0Tn8G1tDgEhA.png" /></figure><pre># 查詢 IP CIDR 範圍</pre><pre>docker network inspect ingress</pre><pre># 查詢 container 的 IP</pre><pre>docker inspect &lt;CONTAINER_ID&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2MJ0MSt1dNVApCPOAa3Z1Q.png" /><figcaption>左邊是 Overlay Network ; 右邊是 Container</figcaption></figure><p>常見的系統前後端架構，可以利用 Overlay Network 隔離性，來區分兩個 subnet</p><pre># 建立新的 Overlay Network</pre><pre>docker network create --driver overlay backend</pre><pre># 建立 Container 在指定的 Overlay Network</pre><pre>docker service create --name db --network backend mysql</pre><p><strong>5. Load Balancing and Routing Mesh</strong></p><p>Docker Swarm Mode 也內建了負載平衡解決方案，可解決單一入口負載到多個容器上的問題。</p><p>但容器編排上， 會有 Node 是沒有可服務的容器服務，譬如 3 個 Node 環境我們只啟動 2 份 Replicas 。但對外服務時，又希望服務可以訪問任意 Node。因此，Docker 引入Routing Mesh 概念，用來解決多個入口點負載到單個容器的問題。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*8sWMPR2fj8b1teIhhRoo7g.png" /><figcaption><a href="https://docs.docker.com/engine/swarm/ingress/#publish-a-port-for-a-service">https://docs.docker.com/engine/swarm/ingress/#publish-a-port-for-a-service</a></figcaption></figure><p>有興趣者，可以先縮減 Replicas 數量，再透過 Play With Docker 對外開啟的連線做測試，驗證 Routing Mesh 效果</p><p>但因為 Swarm Mode 提供的 Load Balancing 是屬於 OSI Layer 3 (TCP)，通常會再搭配 Nginx or HAProxy 做到 Load Balancing Layer 7 or 4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*WaeLRJfyUobHWzCexKP4zA.png" /><figcaption><a href="https://docs.docker.com/engine/swarm/ingress/#configure-an-external-load-balancer">https://docs.docker.com/engine/swarm/ingress/#configure-an-external-load-balancer</a></figcaption></figure><p>上述是 Docker Swarm Mode 簡易介紹。雖然這是 Docker 新內建的容器編排服務，但終究比不上 K8s 強大的社群與公有雲服務支持。所以 2017年 10月，Docker 也宣布將開始原生支援 Kubernetes。甚至， Docker企業版 (Docker EE) 將會內建完整的 Kubernetes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*kX0zBISezVfg9cpVYCVhPA.png" /><figcaption><a href="https://www.docker.com/kubernetes">https://www.docker.com/kubernetes</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2be5d4959c3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[鳳凰專案 - 精彩的 IT 小說]]></title>
            <link>https://medium.com/@webber.cheng/%E9%B3%B3%E5%87%B0%E5%B0%88%E6%A1%88-%E7%B2%BE%E5%BD%A9%E7%9A%84-it-%E5%B0%8F%E8%AA%AA-cb85e757c363?source=rss-181b4c5051ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb85e757c363</guid>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Webber]]></dc:creator>
            <pubDate>Tue, 10 Oct 2017 08:54:42 GMT</pubDate>
            <atom:updated>2017-10-10T08:59:14.602Z</atom:updated>
            <content:encoded><![CDATA[<p>《鳳凰專案 》<a href="https://www.amazon.com/Phoenix-Project-DevOps-Helping-Business/dp/0988262509/ref=sr_1_1?s=books&amp;ie=UTF8&amp;qid=1507617520&amp;sr=1-1">The Phoenix Project</a> ，2013 年出版的 IT小說</p><p>故事是講述一個臨危受命擔任 IT Ops Manager，要負責將鳳凰專案如期上線，並如何在短時間內將整個企業起死回生！</p><p>整本故事內容很出色地抓出了公司所面臨的問題，並提供實際解決的方案，並且以生動有趣的風格來撰寫，讀起來相當有醍醐味。相信有在從事 IT工作的 ，都能有不少共鳴，相當值得好拜讀一番。</p><p>下面會有一些心得和劇透，若怕影響觀感，就不要往下看了，直接買來就對了。(中文正體版最近終於出版了，相隔美國四年阿~~)</p><p>當提到軟體工程，常聽到要做好 DevOps, CI/CD, 要清除技術債等等，甚至專案有沒有用 Scrum or Kanban。這些觀念或管理方法想必大家也聽到快膩了。</p><p>但為何這本，卻受到相當多人推崇，而我真的讀完也真能感受到他的餘韻。</p><p>故事內提到的 DevOps 衝突、技術債影響的後果，團隊只依靠一位神人等，以很生活化的方式一步一步引導出來，會讓你在閱讀過程去思考，所以像是限制理論、三個工作法、四種工作型態、看板管理等就不是用教科書的方式照本宣科，而是用引導、思考，讓你逐漸知道整個真相。</p><p>尤其當故事中，第四種工作型態揭曉時，真有點被灌頂的感覺 !</p><p>而故事範疇也不單只是這麼狹隘，舉凡像組織政治、溝通藝術、向上管理都有隱含勾勒到。一些幽默的對白，也讓人會心一笑。(幽默感訓練!!)</p><p>甚至，每閱讀一章內容，都可停下腳步，做進一步深思。譬如，故事內容是以主角的觀點來詮釋，換作是我們，該如何處理呢？故事有一段，主角因為專案的問題太多，強烈建議 CEO 專案必須延後上線，換做是我，該如何向老闆溝通？甚至若 以 CEO 角度換位思考，我會答應延後專案上線嗎？若答應，該如何向董事會解釋？甚至會不會讓團隊對於往後的時程規劃嚴謹度，留下不好的影響？</p><p>圍繞整個故事核心，最關鍵還是軟體工程思維</p><p>故事後面的附錄提到： Google, Netflix, Amazon 等一流企業都是高頻繁部屬來響應客戶、市場需求。敏捷性指標優良的企業，往往業績、公司表現都是同業兩倍以上。</p><p>注意! 重點是思維，不斷地對組織或團隊軟體工程文化思維去做精進，雖然有點抽象，但相信比硬要套一些軟體工程技術，治標不治本，還來得有用。</p><blockquote>在瓶頸以外的地方努力都是假象 - Eliyahu M. Goldratt 限制理論</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb85e757c363" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS certified solutions architect — associate 準備心得]]></title>
            <link>https://medium.com/@webber.cheng/aws-certified-solutions-architect-associate-%E6%BA%96%E5%82%99%E5%BF%83%E5%BE%97-b033b71f9743?source=rss-181b4c5051ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/b033b71f9743</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[solution-architect]]></category>
            <category><![CDATA[aws-certification]]></category>
            <dc:creator><![CDATA[Webber]]></dc:creator>
            <pubDate>Sun, 30 Jul 2017 18:08:08 GMT</pubDate>
            <atom:updated>2017-08-01T12:29:55.973Z</atom:updated>
            <content:encoded><![CDATA[<p>一開始只是想在 Udemy 想找些課程學習 AWS 功能，也想多接觸 AWS Elastic Beanstalk, ECS or Lambda 等等，畢竟 PaaS / Container / Serverless 都是很夯的玩意。</p><p>然而，突然看到有堂課是從 AWS 基礎教起，並且是以考取認證為目標，當下有特價就趕緊買下來。 <a href="https://www.udemy.com/aws-certified-solutions-architect-associate/learn/v4/overview">Course Link</a></p><p>後來，也發現是網路眾多人推薦的 A Cloud Guru。考認證必備!!</p><h4>AWS Certification Roadmap</h4><p>官方總共列了 5 + 2 張，本篇重點就擺在 AWS certified solutions architect associate。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZyeFw2gGpKq2L2RW.png" /></figure><p>本張認證重點，範圍個人覺得非常廣的。除了AWS 各項服務都要有基礎的了解，最大的重點在於如何設計一個好的架構，包含了 HA / Auto Scaling / Load Balance / Security 等概念。以及 其他服務適合情境為何，像是 RDB / NoSQL / Streaming / Message Queue 等等</p><h4><strong>準備過程</strong></h4><ul><li>上完 Udemy Course，並確實把所有練習題都做完。學習過程中，當然也會直接到 AWS 去操作，熟悉各個服務的功能與設定。</li><li>課程有強調要去看各個服務的 FAQ , Guide and Whitepaper。但 AWS 真的太猛了，每個服務的內容多到誇張，只能看多少算多少。而且有些英文無法抓到真正的涵義，常常還要中英文切換。 (但也不少頁面是沒有中文翻譯的，甚是翻譯完更看不懂…)</li><li>必推薦的 <a href="http://jayendrapatil.com/">AWS 超神筆記</a>，除了有針對各項主題的重點，還整理出不少練習題目。這對考取認證助益很大。</li><li>做了哪些練習題，以及品質如何呢？ 我共做了三個來源： udemy 、筆記內的部分題目，以及無意間看得的<a href="http://aws.tuongminh.pro/">網站</a> (整理出 240 題的練習，但在我打此篇心得時，這網站連不到了!?)。這幾個練習題來源到底跟實際考試相似度如何呢？就我考完印象，大概<strong>可以有 10~20 題左右是完全一樣</strong>，所以這些練習題對通過認證很有幫助。</li></ul><h4><strong>特別重點!!</strong></h4><ul><li>在確定考試日期的前一、兩周，看到 course 的 Q/A 有人回應題目變難了，甚至有些 topic 不在 A Cloud Guru 教的範圍了。所以這些額外內容，得自己花工夫準備了，甚至完全沒有練習題。</li><li><strong>New Topic ： ECS / Lambda / API Gateway</strong></li><li>這幾個會怎麼考呢？我遇到的題目是 ECS 建議要用哪種 Load Balance。Lambda 可以被那些 AWS 服務 trigger 。API Gateway 優點為何。</li></ul><h4>考試內容</h4><ul><li>考試日期： <strong>2017/07/29 (考題會變化，隔太久參考性可能就變低了)</strong></li><li>共55題，單/複選，80 分鐘。及格分數不曉得，是根據 AWS 統計結果來決定。大多是情境題。</li></ul><p>遇到的 Topic 共有</p><ul><li>EC2 : Auto Scaling / Load Balance / Snapshot / Volume / Spot Instance 如何 charge</li><li>IAM : 基本功能和 STS ( Web identity federation and Enterprise identity federation)</li><li>S3 : Life Cycle / IA / Gracia / Storage Gateway 種類 / Policy</li><li>Route 53 : 基本功能和 CName and Alias record 差別</li><li>CloudFront</li><li>CloudWatch / CloudTrail / CloudFormation / OpsWorks</li><li>VPC : Subnets / Route Table / NACL / Internet Gateway / NAT Gateway / VPN</li><li>Lambda / API Gateway (有問到 CORS)</li><li>RDS / DynamoDB / ElastiCache</li><li>SNS / SQS</li><li>Kinesis : 要用 Streams 還是 firehose</li><li>ECS</li><li>Lambda / API Gateway</li><li>Elastic Beanstalk</li></ul><h4><strong>成績</strong></h4><p>Overall Score: 81%</p><h4><strong>心得</strong></h4><p>這張認證其實就是要內化 <a href="http://d0.awsstatic.com/whitepapers/architecture/AWS_Well-Architected_Framework.pdf">AWS Well-Architected</a> 和 <a href="https://d0.awsstatic.com/whitepapers/AWS_Cloud_Best_Practices.pdf">Architecting for The Cloud: Best Practices</a> 白皮書內提的觀念。再加上要懂得如何擅用 AWS 服務，來設計與打造出一個好的系統架構。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b033b71f9743" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>