<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8440793</id><updated>2026-11-10T03:39:10.591-05:00</updated><category term="Tips"/><category term="Core Java"/><category term="Concepts"/><category term="architecture"/><category term="presentations"/><category term="study notes"/><category term="CMS"/><category term="Design"/><category term="database"/><category term="xml"/><category term="API"/><category term="maven2eclipse"/><category term="AI"/><category term="MAC"/><category term="Tools"/><category term="links"/><category term="Agile"/><category term="Portal"/><category term="STruts2"/><category term="kubernetes"/><category term="AI-Agents"/><category term="Learnings"/><category term="MS(CS)"/><category term="Manipal University"/><category term="Maven"/><category term="Spring"/><category term="jdbcTemplate"/><category term="linux"/><category term="logging"/><category term="oracle"/><category term="python"/><category term="regular expression"/><category term="technology books"/><category term="Anthropic"/><category term="Character encoding"/><category term="Claude"/><category term="Collections"/><category term="Copilot"/><category term="Excel"/><category term="General"/><category term="Java"/><category term="JavaScript"/><category term="Machine Learning"/><category term="Microsoft365"/><category term="Productivity"/><category term="Swing"/><category term="TextPad"/><category term="Tomcat"/><category term="UML"/><category term="UTF-8"/><category term="Windows7"/><category term="azure"/><category term="big data"/><category term="code"/><category term="derby"/><category term="helm"/><category term="management books"/><category term="mongodb"/><category term="parleys"/><category term="parsing"/><category term="personality development"/><category term="quiz"/><category term="security"/><category term="snapshot"/><category term="spark"/><category term="spring boot"/><category term="terminology"/><category term="video"/><category term="www"/><title type='text'>I Learn and Share</title><subtitle type='html'>My whiteboard, rough book that contains some reference links from my past web surfing history and favorites. Certainly not in any specific order and focused on a subject. Java, Web technologies, industry updates &amp;amp; trends and sometimes the subject can be as trivial as vocabulary, tools &amp;amp; management thoughts.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>215</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8440793.post-8817207418607783820</id><published>2026-01-31T07:34:00.001-05:00</published><updated>2026-01-31T07:36:53.268-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AI"/><category scheme="http://www.blogger.com/atom/ns#" term="Anthropic"/><category scheme="http://www.blogger.com/atom/ns#" term="Claude"/><category scheme="http://www.blogger.com/atom/ns#" term="Copilot"/><category scheme="http://www.blogger.com/atom/ns#" term="Excel"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft365"/><category scheme="http://www.blogger.com/atom/ns#" term="Productivity"/><title type='text'>Claude in Excel vs. Copilot in Excel: A Side-by-Side Comparison of AI Assistants in Spreadsheets</title><content type='html'>&lt;p&gt;&lt;i&gt;&lt;span face=&quot;-webkit-standard&quot; style=&quot;caret-color: rgb(0, 0, 0);&quot;&gt;How do these AI assistants explain themselves — and what does it reveal about their architectures?&lt;/span&gt;&amp;nbsp;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;-webkit-standard&quot; style=&quot;caret-color: rgb(0, 0, 0);&quot;&gt;I recently had access to both&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;strong style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;Claude in Excel&lt;/strong&gt;&lt;span face=&quot;-webkit-standard&quot; style=&quot;caret-color: rgb(0, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;(Anthropic&#39;s new add-in) and&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;strong style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;Microsoft Copilot&lt;/strong&gt;&lt;span face=&quot;-webkit-standard&quot; style=&quot;caret-color: rgb(0, 0, 0);&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;in the same spreadsheet environment. Curious about how they work under the hood, I asked each one the same simple question:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;-webkit-standard&quot; style=&quot;caret-color: rgb(0, 0, 0);&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&quot;Tell me how you work and draw a diagram to help me understand.&quot;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;-webkit-standard&quot; style=&quot;caret-color: rgb(0, 0, 0);&quot;&gt;The responses were fascinatingly different — not just in style, but in what they revealed about how each AI integrates with Excel.&lt;/span&gt;&lt;/p&gt;&lt;h2 class=&quot;text-text-100 mt-3 -mb-1 text-[1.125rem] font-bold&quot; style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;Claude in Excel: Full Transparency on the Architecture&lt;/h2&gt;&lt;p class=&quot;font-claude-response-body break-words whitespace-normal leading-[1.7]&quot; style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;When I asked Claude how it works, it didn&#39;t just explain — it&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;built a detailed architecture diagram directly in my spreadsheet&lt;/em&gt;.&lt;/p&gt;&lt;p class=&quot;font-claude-response-body break-words whitespace-normal leading-[1.7]&quot; style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;font-claude-response-body break-words whitespace-normal leading-[1.7]&quot; style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiQtCfCdb5nNyXDFgogu-1t2k-5Fadgvx36th-dKOQew8j9JEYjwZzhNO6YUd5WWePq1cKRUhxPrth3niz2vl4AWfM5E9CnrLT-P0D9lt67Wo4VBCWS_MQn_IarZrSxR8XZlHJUaitw32nPv9TzCk_46KqK28Wm7JhoHG65vsVvyQdbG_98EsvH&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;1568&quot; data-original-width=&quot;2302&quot; height=&quot;218&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiQtCfCdb5nNyXDFgogu-1t2k-5Fadgvx36th-dKOQew8j9JEYjwZzhNO6YUd5WWePq1cKRUhxPrth3niz2vl4AWfM5E9CnrLT-P0D9lt67Wo4VBCWS_MQn_IarZrSxR8XZlHJUaitw32nPv9TzCk_46KqK28Wm7JhoHG65vsVvyQdbG_98EsvH&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span face=&quot;-webkit-standard&quot; style=&quot;caret-color: rgb(0, 0, 0); text-align: start;&quot;&gt;What struck me: Claude was completely transparent about its capabilities and limitations. It showed exactly how the add-in mediates between the user and the AI, and how the AI then interacts with Excel through Microsoft&#39;s official APIs.&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;h2 class=&quot;text-text-100 mt-3 -mb-1 text-[1.125rem] font-bold&quot; style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;Copilot in Excel: The Microsoft-Native Approach&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;p class=&quot;font-claude-response-body break-words whitespace-normal leading-[1.7]&quot; style=&quot;caret-color: rgb(0, 0, 0); text-align: start; text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;Copilot&#39;s self-description was notably different — more abstract, focused on the Microsoft ecosystem. It didn&#39;t draw the diagram - instead&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhTQzRqmMrQRegJRK3dNHLP6r9GZU8r8dUM0IbwfUfb1n-W_oI11lrA4QNTC9m3ChIDLN0a-c_xn6llaxDhov8HNJu4SieuKGzNEYQWeGMBMeJcNHkCe2I9FE3DNsEIeO8v1MStNRfLioN4JVwmplXsQ-K9IWpwAR3ZS5bLk3WzzsUa5-n3qv8p&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;1026&quot; data-original-width=&quot;1380&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEhTQzRqmMrQRegJRK3dNHLP6r9GZU8r8dUM0IbwfUfb1n-W_oI11lrA4QNTC9m3ChIDLN0a-c_xn6llaxDhov8HNJu4SieuKGzNEYQWeGMBMeJcNHkCe2I9FE3DNsEIeO8v1MStNRfLioN4JVwmplXsQ-K9IWpwAR3ZS5bLk3WzzsUa5-n3qv8p&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span face=&quot;-webkit-standard&quot; style=&quot;caret-color: rgb(0, 0, 0); text-align: start;&quot;&gt;This revealed something important: Copilot thinks in terms of Microsoft&#39;s tooling ecosystem.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span face=&quot;-webkit-standard&quot; style=&quot;caret-color: rgb(0, 0, 0); text-align: start;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;h2 class=&quot;text-text-100 mt-3 -mb-1 text-[1.125rem] font-bold&quot; style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;What This Tells Us&lt;/h2&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div class=&quot;overflow-x-auto w-full px-2 mb-6&quot; style=&quot;caret-color: rgb(0, 0, 0); text-align: start; text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;&lt;table class=&quot;min-w-full border-collapse text-sm leading-[1.7] whitespace-normal&quot;&gt;&lt;thead class=&quot;text-left&quot;&gt;&lt;tr&gt;&lt;th class=&quot;text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold&quot;&gt;Aspect&lt;/th&gt;&lt;th class=&quot;text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold&quot;&gt;Claude in Excel&lt;/th&gt;&lt;th class=&quot;text-text-100 border-b-0.5 border-border-300/60 py-2 pr-4 align-top font-bold&quot;&gt;Copilot in Excel&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;&lt;strong&gt;Architecture&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;Add-in → API → Claude → Tools → Office JS API&lt;/td&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;Native M365 integration via Orchestrator&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;&lt;strong&gt;Transparency&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;Shows exact tools available&lt;/td&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;Describes capabilities abstractly&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;&lt;strong&gt;Integration Depth&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;Third-party add-in using public APIs&lt;/td&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;First-party, system-level access&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;&lt;strong&gt;Self-Awareness&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;Explicitly lists tool functions&lt;/td&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;Focuses on intent and context&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;&lt;strong&gt;Diagram Style&lt;/strong&gt;&lt;/td&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;Colorful, detailed, architecture-focused&lt;/td&gt;&lt;td class=&quot;border-b-0.5 border-border-300/30 py-2 pr-4 align-top&quot;&gt;Minimal, flow-focused&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;h2 class=&quot;text-text-100 mt-3 -mb-1 text-[1.125rem] font-bold&quot; style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;My Takeaway&lt;/h2&gt;&lt;p class=&quot;font-claude-response-body break-words whitespace-normal leading-[1.7]&quot; style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;Both AI assistants can analyze data, write formulas, and help with spreadsheet tasks. But their architectures reflect different philosophies:&lt;/p&gt;&lt;ul class=&quot;[li_&amp;amp;]:mb-0 [li_&amp;amp;]:mt-1 [li_&amp;amp;]:gap-1 [&amp;amp;:not(:last-child)_ul]:pb-1 [&amp;amp;:not(:last-child)_ol]:pb-1 list-disc flex flex-col gap-1 pl-8 mb-3&quot; style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;&lt;li class=&quot;whitespace-normal break-words pl-2&quot;&gt;&lt;strong&gt;Claude&lt;/strong&gt;: &quot;Here are my tools. Here&#39;s how I&#39;ll use them. Full transparency.&quot;&lt;/li&gt;&lt;li class=&quot;whitespace-normal break-words pl-2&quot;&gt;&lt;strong&gt;Copilot&lt;/strong&gt;: &quot;I understand Excel natively. Tell me what you need.&quot;&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;font-claude-response-body break-words whitespace-normal leading-[1.7]&quot; style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;Neither is objectively better — it depends on what you value: transparency and explicit control, or deep native integration.&lt;/p&gt;&lt;p class=&quot;font-claude-response-body break-words whitespace-normal leading-[1.7]&quot; style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;The fact that both AIs could&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;draw diagrams explaining themselves directly in a spreadsheet&lt;/em&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;is itself remarkable. We&#39;ve come a long way from Clippy.&lt;/p&gt;&lt;p class=&quot;font-claude-response-body break-words whitespace-normal leading-[1.7]&quot; style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;font-claude-response-body break-words whitespace-normal leading-[1.7]&quot; style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;&lt;span face=&quot;-webkit-standard&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;What&#39;s your experience with AI assistants in Excel? Have you tried both? I&#39;d love to hear how they&#39;ve changed your workflow.&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p class=&quot;font-claude-response-body break-words whitespace-normal leading-[1.7]&quot; style=&quot;caret-color: rgb(0, 0, 0); text-decoration-style: solid; text-decoration-thickness: auto;&quot;&gt;&lt;strong&gt;About the Author&lt;/strong&gt;: A Solution Architect exploring how AI tools are reshaping enterprise productivity workflows.&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/8817207418607783820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/8817207418607783820' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/8817207418607783820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/8817207418607783820'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2026/01/claude-in-excel-vs-copilot-in-excel.html' title='Claude in Excel vs. Copilot in Excel: A Side-by-Side Comparison of AI Assistants in Spreadsheets'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEiQtCfCdb5nNyXDFgogu-1t2k-5Fadgvx36th-dKOQew8j9JEYjwZzhNO6YUd5WWePq1cKRUhxPrth3niz2vl4AWfM5E9CnrLT-P0D9lt67Wo4VBCWS_MQn_IarZrSxR8XZlHJUaitw32nPv9TzCk_46KqK28Wm7JhoHG65vsVvyQdbG_98EsvH=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-1522802235760340497</id><published>2026-01-06T22:42:00.004-05:00</published><updated>2026-01-06T23:08:02.507-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AI"/><category scheme="http://www.blogger.com/atom/ns#" term="AI-Agents"/><title type='text'>Day 2 of ADK workshop prep</title><content type='html'>&lt;h1&gt;Goal&lt;/h1&gt;
&lt;p&gt;Give the agent the ability to &lt;em&gt;do things&lt;/em&gt;, not just chat — using tools and structured output.&lt;/p&gt;

&lt;h2&gt;What Are Tools?&lt;/h2&gt;
&lt;p&gt;A tool is a &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=define+Python+function&amp;amp;bbid=8440793&amp;amp;bpid=1522802235760340497&quot; target=&quot;_blank&quot;&gt;Python function&lt;/a&gt; the agent can decide to call. The LLM figures out &lt;em&gt;when&lt;/em&gt; to call it and &lt;em&gt;what arguments&lt;/em&gt; to pass.&lt;/p&gt;

&lt;pre&gt;# Without tools:
User: &quot;What&#39;s the weather in &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Delhi+weather&amp;amp;bbid=8440793&amp;amp;bpid=1522802235760340497&quot; target=&quot;_blank&quot;&gt;Delhi&lt;/a&gt;?&quot;
Agent: &quot;I don&#39;t have access to real-time weather data.&quot;

# With tools:
User: &quot;What&#39;s the weather in Delhi?&quot;
Agent: [calls get_weather(&quot;Delhi&quot;)] → &quot;It&#39;s 32°C and Sunny in Delhi.&quot;
&lt;/pre&gt;

&lt;h2&gt;Creating a Tool&lt;/h2&gt;
&lt;p&gt;Tools are just Python functions with &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=define+type+hints+programming&amp;amp;bbid=8440793&amp;amp;bpid=1522802235760340497&quot; target=&quot;_blank&quot;&gt;type hints&lt;/a&gt; and docstrings:&lt;/p&gt;

&lt;pre&gt;def get_weather(city: str) -&amp;gt; str:
    &quot;&quot;&quot;Get the current weather for a city.

    Args:
        city: The name of the city to get weather for.

    Returns:
        A string describing the weather.
    &quot;&quot;&quot;
    weather_data = {
        &quot;delhi&quot;: &quot;32°C, Sunny&quot;,
        &quot;mumbai&quot;: &quot;28°C, Humid&quot;,
    }
    return weather_data.get(city.lower(), &quot;Unknown&quot;)
&lt;/pre&gt;

&lt;p&gt;Key elements:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;Type hints&lt;/strong&gt; (&lt;code&gt;city: str&lt;/code&gt;) — Tell the LLM what type of argument to pass&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=define+Docstring&amp;amp;bbid=8440793&amp;amp;bpid=1522802235760340497&quot; target=&quot;_blank&quot;&gt;Docstring&lt;/a&gt;&lt;/strong&gt; — LLM reads this to understand when to use the tool&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=define+Return+value+programming&amp;amp;bbid=8440793&amp;amp;bpid=1522802235760340497&quot; target=&quot;_blank&quot;&gt;Return value&lt;/a&gt;&lt;/strong&gt; — Data passed back to the LLM&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Registering Tools with Agent&lt;/h2&gt;
&lt;pre&gt;root_agent = Agent(
    name=&quot;my_agent&quot;,
    model=&quot;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=gemini+2.0+flash+model&amp;amp;bbid=8440793&amp;amp;bpid=1522802235760340497&quot; target=&quot;_blank&quot;&gt;gemini-2.0-flash&lt;/a&gt;&quot;,
    instruction=&quot;Use get_weather for weather questions.&quot;,
    tools=[get_weather, calculate, get_stock_price],  # Register here
)
&lt;/pre&gt;

&lt;h2&gt;Structured Output with Pydantic&lt;/h2&gt;
&lt;p&gt;Instead of returning messy strings, return typed data:&lt;/p&gt;

&lt;pre&gt;# Before: String return
def get_weather(city: str) -&amp;gt; str:
    return f&quot;Weather in {city}: 32°C, Sunny&quot;
    # Hard to parse programmatically

# After: &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=define+Pydantic+model&amp;amp;bbid=8440793&amp;amp;bpid=1522802235760340497&quot; target=&quot;_blank&quot;&gt;Pydantic model&lt;/a&gt; return
class WeatherResponse(BaseModel):
    city: str
    temperature: int
    condition: str

def get_weather(city: str) -&amp;gt; WeatherResponse:
    return WeatherResponse(city=city, temperature=32, condition=&quot;Sunny&quot;)
    # Easy: result.temperature → 32
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Why this matters:&lt;/strong&gt; Your code can reliably access &lt;code&gt;result.temperature&lt;/code&gt; instead of parsing strings with regex.&lt;/p&gt;

&lt;h2&gt;The Flow: Who Does What&lt;/h2&gt;
&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;User&lt;/strong&gt; asks: &quot;What&#39;s the weather in Delhi?&quot;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;LLM&lt;/strong&gt; decides: &quot;I need to call get_weather&quot;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=define+ADK&amp;amp;bbid=8440793&amp;amp;bpid=1522802235760340497&quot; target=&quot;_blank&quot;&gt;ADK&lt;/a&gt;&lt;/strong&gt; executes: Your Python function runs&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Your function&lt;/strong&gt; returns: &lt;code&gt;WeatherResponse(city=&quot;Delhi&quot;, temperature=32, condition=&quot;Sunny&quot;)&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;ADK&lt;/strong&gt; validates: Checks output matches &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Pydantic+schema&amp;amp;bbid=8440793&amp;amp;bpid=1522802235760340497&quot; target=&quot;_blank&quot;&gt;Pydantic schema&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;LLM&lt;/strong&gt; formats: &quot;The weather in Delhi is 32°C and Sunny&quot;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;Testing Tools&lt;/h2&gt;
&lt;p&gt;Tools are just Python functions — test them like any other code:&lt;/p&gt;

&lt;pre&gt;def test_known_city():
    result = get_weather(&quot;Delhi&quot;)
    assert result.temperature == 32
    assert result.condition == &quot;Sunny&quot;

def test_unknown_city():
    result = get_weather(&quot;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Tokyo&amp;amp;bbid=8440793&amp;amp;bpid=1522802235760340497&quot; target=&quot;_blank&quot;&gt;Tokyo&lt;/a&gt;&quot;)
    assert result.condition == &quot;Unknown&quot;
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Key insight:&lt;/strong&gt; Test your business logic without the LLM. No API calls, instant feedback.&lt;/p&gt;

&lt;h2&gt;Gotcha: Local Models and Tool Calling&lt;/h2&gt;
&lt;p&gt;Tried using &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Ollama&amp;amp;bbid=8440793&amp;amp;bpid=1522802235760340497&quot; target=&quot;_blank&quot;&gt;Ollama&lt;/a&gt; with local models for tool calling. Smaller models (&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=7B+parameters+model&amp;amp;bbid=8440793&amp;amp;bpid=1522802235760340497&quot; target=&quot;_blank&quot;&gt;7-8B parameters&lt;/a&gt;) struggled:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Infinite tool call loops&lt;/li&gt;
  &lt;li&gt;Describing tools instead of calling them&lt;/li&gt;
  &lt;li&gt;Hallucinating responses&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Use &lt;code&gt;ollama_chat/&lt;/code&gt; prefix instead of &lt;code&gt;ollama/&lt;/code&gt;, and use models with explicit tool support. Or just use Gemini — it handles tools reliably.&lt;/p&gt;

&lt;h2&gt;Time Spent&lt;/h2&gt;
&lt;p&gt;~2 hours, including debugging local model issues.&lt;/p&gt;

&lt;h2&gt;Next Up&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Day 3:&lt;/strong&gt; &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=define+Multi-agent+patterns&amp;amp;bbid=8440793&amp;amp;bpid=1522802235760340497&quot; target=&quot;_blank&quot;&gt;Multi-agent patterns&lt;/a&gt; — orchestrator and specialist agents working together.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Github+Repo+toneeraj/adk-workshop&amp;amp;bbid=8440793&amp;amp;bpid=1522802235760340497&quot; target=&quot;_blank&quot;&gt;Github Repo&lt;/a&gt;:&lt;/span&gt;&amp;nbsp;&lt;a href=&quot;https://github.com/toneeraj/adk-workshop&quot; target=&quot;_blank&quot;&gt;https://github.com/toneeraj/adk-workshop&lt;/a&gt;&lt;/p&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/1522802235760340497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/1522802235760340497' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/1522802235760340497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/1522802235760340497'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2026/01/day-2-of-adk-workshop-prep.html' title='Day 2 of ADK workshop prep'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-2180573133175208016</id><published>2026-01-05T22:31:00.005-05:00</published><updated>2026-01-06T23:07:00.652-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AI"/><category scheme="http://www.blogger.com/atom/ns#" term="AI-Agents"/><title type='text'>Day 1: Setting Up Google ADK on Mac mini</title><content type='html'>&lt;h2&gt;Goal&lt;/h2&gt;
&lt;p&gt;Get a working &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=ADK+development+environment&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;ADK development environment&lt;/a&gt; and run a basic agent.&lt;/p&gt;

&lt;h2&gt;What is ADK?&lt;/h2&gt;
&lt;p&gt;Google&#39;s Agent Development Kit (ADK) is an open-source framework for building &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=AI+agents&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;AI agents&lt;/a&gt; in &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Python+programming+language&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;Python&lt;/a&gt;. Unlike simple chat interfaces, ADK agents can use tools, maintain state, and communicate with other agents.&lt;/p&gt;

&lt;h2&gt;Environment Setup&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Prerequisites installed:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Xcode+Command+Line+Tools&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;Xcode Command Line Tools&lt;/a&gt; (required for any dev work on &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=macOS+operating+system&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;macOS&lt;/a&gt;)&lt;/li&gt;
  &lt;li&gt;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Homebrew+package+manager&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;Homebrew&lt;/a&gt; (package manager)&lt;/li&gt;
  &lt;li&gt;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Python+3.12&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;Python 3.12&lt;/a&gt; (ADK requires 3.10+)&lt;/li&gt;
  &lt;li&gt;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=VS+Code&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;VS Code&lt;/a&gt; with &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=VS+Code+Python+extension&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;Python extension&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Key learning:&lt;/strong&gt; ADK doesn&#39;t work with Python 3.9 — I hit cryptic &lt;code&gt;importlib.metadata&lt;/code&gt; errors until upgrading to 3.12.&lt;/p&gt;

&lt;h2&gt;Project Structure&lt;/h2&gt;
&lt;p&gt;ADK expects a specific layout:&lt;/p&gt;
&lt;pre&gt;~/adk-workshop/
├── venv/                  # &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Virtual+environment&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;Virtual environment&lt;/a&gt;
└── my_agent/              # Agent package
    ├── __init__.py        # Makes it a &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Python+package&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;Python package&lt;/a&gt;
    └── agent.py           # &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Agent+definition&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;Agent definition&lt;/a&gt;
&lt;/pre&gt;

&lt;h2&gt;First Agent&lt;/h2&gt;
&lt;p&gt;The minimal agent code is surprisingly simple:&lt;/p&gt;
&lt;pre&gt;from &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=google.adk.agents&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;google.adk.agents&lt;/a&gt; import Agent

root_agent = Agent(
    name=&quot;my_agent&quot;,
    model=&quot;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=gemini-2.0-flash&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;gemini-2.0-flash&lt;/a&gt;&quot;,
    instruction=&quot;You are a helpful assistant. Be concise and friendly.&quot;,
)
&lt;/pre&gt;
&lt;p&gt;Three things define an agent:&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;&lt;strong&gt;name&lt;/strong&gt; — identifier (must match folder name)&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;model&lt;/strong&gt; — which &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=LLM&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;LLM&lt;/a&gt; powers it&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;instruction&lt;/strong&gt; — system prompt shaping behavior&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;Testing&lt;/h2&gt;
&lt;p&gt;ADK provides two interfaces:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=CLI+command+line+interface&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;CLI&lt;/a&gt;:&lt;/strong&gt; &lt;code&gt;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=adk+run+my_agent&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;adk run my_agent&lt;/a&gt;&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Quick testing in terminal&lt;/li&gt;
  &lt;li&gt;Type messages, see responses&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Web+UI&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;Web UI&lt;/a&gt;:&lt;/strong&gt; &lt;code&gt;adk web my_agent&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Visual &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=chat+interface&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;chat interface&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Debug+panel&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;Debug panel&lt;/a&gt; showing &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=token+counts&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;token counts&lt;/a&gt;, &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=model+responses&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;model responses&lt;/a&gt;, &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=event+details&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;event details&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Session+management&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;Session management&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;Gotcha: Gemini API Quota&lt;/h2&gt;
&lt;p&gt;Hit a confusing &lt;code&gt;429 RESOURCE_EXHAUSTED&lt;/code&gt; error with &lt;code&gt;limit: 0&lt;/code&gt;. The API key was valid but the &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Generative+Language+API&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;Generative Language API&lt;/a&gt; wasn&#39;t enabled in my &lt;a data-preview=&quot;&quot; href=&quot;https://www.google.com/search?ved=1t:260882&amp;amp;q=Google+Cloud+project&amp;amp;bbid=8440793&amp;amp;bpid=2180573133175208016&quot; target=&quot;_blank&quot;&gt;Google Cloud project&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Enable it explicitly at &lt;a href=&quot;https://console.cloud.google.com/apis/library/generativelanguage.googleapis.com&quot;&gt;console.cloud.google.com&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;Time Spent&lt;/h2&gt;
&lt;p&gt;~2 hours, mostly fighting environment issues. Once Python and API were configured correctly, the agent was running in minutes.&lt;/p&gt;

&lt;h2&gt;Next Up&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Day 2:&lt;/strong&gt; Adding tools so the agent can actually &lt;em&gt;do&lt;/em&gt; things, not just chat.&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;Github Repo:&lt;/span&gt;&amp;nbsp;&lt;a href=&quot;https://github.com/toneeraj/adk-workshop&quot; target=&quot;_blank&quot;&gt;https://github.com/toneeraj/adk-workshop&lt;/a&gt;&lt;/p&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/2180573133175208016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/2180573133175208016' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/2180573133175208016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/2180573133175208016'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2026/01/day-1-setting-up-google-adk-on-mac-mini.html' title='Day 1: Setting Up Google ADK on Mac mini'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-5890027274277680159</id><published>2025-11-07T20:05:00.008-05:00</published><updated>2025-11-07T20:17:19.056-05:00</updated><title type='text'>Amazon Repricer - Knowledge bank</title><content type='html'>&lt;a href=&quot;https://claude.ai/public/artifacts/0cfb87a8-ca90-4813-a70b-c2d67a257cf1&quot;&gt;Click here for a quick look into amazon re-pricer&lt;/a&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/5890027274277680159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/5890027274277680159' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/5890027274277680159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/5890027274277680159'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2025/11/claude-artifact_7.html' title='Amazon Repricer - Knowledge bank'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-2790862945664866527</id><published>2025-10-19T11:26:00.001-04:00</published><updated>2025-10-19T11:26:09.509-04:00</updated><title type='text'>Embracing Collaboration in the Age of AI</title><content type='html'>&lt;p class=&quot;whitespace-normal break-words&quot;&gt;Time teaches what ego resists: you&#39;re replaceable. I am replaceable. The projects continue, the work gets done, life moves on. I wish I&#39;d understood this in my younger years. There&#39;s peace in knowing the world doesn&#39;t hinge on you—it lets you contribute without the burden of needing to be essential.&lt;/p&gt;&lt;p class=&quot;whitespace-normal break-words&quot;&gt;And now, in this age of AI, that lesson feels even more relevant and strangely liberating. Every day, as I architect new solutions, I find myself collaborating with AI—brainstorming system designs, refactoring code, exploring patterns I might have missed. It&#39;s not about being replaced; it&#39;s about being amplified. These tools don&#39;t diminish us; they free us to think bigger, iterate faster, and focus on the creative and strategic decisions that truly matter.&lt;/p&gt;&lt;p&gt;

&lt;/p&gt;&lt;p class=&quot;whitespace-normal break-words&quot;&gt;Instead of fearing obsolescence, I find myself excited—curious about what we&#39;ll create together, energized by the possibility of building better solutions not despite AI, but because of it. This is the most interesting time to be alive, precisely because it asks us to let go of old fears and embrace collaboration with intelligence in all its forms.&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/2790862945664866527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/2790862945664866527' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/2790862945664866527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/2790862945664866527'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2025/10/embracing-collaboration-in-age-of-ai.html' title='Embracing Collaboration in the Age of AI'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-5174536335964035782</id><published>2021-07-20T16:22:00.003-04:00</published><updated>2021-07-20T16:22:46.422-04:00</updated><title type='text'>Upload a file to Azure Blob Storage using SAS token via CURL</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;caret-color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;DATE_NOW=$(date -Ru | sed &#39;s/\+0000/GMT/&#39;)&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in; text-size-adjust: auto;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in; text-size-adjust: auto;&quot;&gt;AZ_VERSION=&quot;2020-08-04&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in; text-size-adjust: auto;&quot;&gt;AZ_BLOB_URL=&quot;&lt;a href=&quot;https://wwwwwwww.blob.core.windows.net/&quot; style=&quot;color: #0563c1;&quot;&gt;https://wwwwwwwwww.blob.core.windows.net&lt;/a&gt;&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in; text-size-adjust: auto;&quot;&gt;AZ_BLOB_CONTAINER=&quot;xrefcrd&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in; text-size-adjust: auto;&quot;&gt;AZ_BLOB_TARGET=&quot;${AZ_BLOB_URL}/${AZ_BLOB_CONTAINER}/&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in; text-size-adjust: auto;&quot;&gt;AZ_SAS_TOKEN=&quot;?sp=racwdyt&amp;amp;st=2021-07-01T15:19:33Z&amp;amp;se=2023-07-01T23:19:33Z&amp;amp;spr=https&amp;amp;sv=2020-08-04&amp;amp;sr=b&amp;amp;sig=g658%2FOgUDD8sfsdfsdsfsdfdsfdsfsdfsdfsdfsdfsdfsdfdsfsdf%3D&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in; text-size-adjust: auto;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in; text-size-adjust: auto;&quot;&gt;curl -v -X PUT -H &quot;Content-Type: application/octet-stream&quot; -H &quot;x-ms-date: ${DATE_NOW}&quot; -H &quot;x-ms-version: ${AZ_VERSION}&quot; -H &quot;x-ms-blob-type: BlockBlob&quot; --data-binary &quot;@/Users/sinne002/work/inbound_sku_xref_feed.csv&quot; &quot;${AZ_BLOB_TARGET}inbound_sku_xref_feed.csv${AZ_SAS_TOKEN}&quot;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in; text-size-adjust: auto;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in; text-size-adjust: auto;&quot;&gt;Note: The question mark &#39;?&#39; in the beginning of the AZ_SAS_TOKEN as it needs to be added as URL param while building the AZ BLOG TARGET.&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in; text-size-adjust: auto;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;caret-color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in; text-size-adjust: auto;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/5174536335964035782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/5174536335964035782' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/5174536335964035782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/5174536335964035782'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2021/07/upload-file-to-azure-blob-storage-using.html' title='Upload a file to Azure Blob Storage using SAS token via CURL'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-7795570265348196490</id><published>2021-01-31T12:16:00.000-05:00</published><updated>2021-01-31T12:16:34.887-05:00</updated><title type='text'>What is your architecture style?</title><content type='html'>&lt;p&gt;Generally, an architecture style denotes a plausible and reusable pattern of solutions backed by experience, to a set of known programming problems.&lt;/p&gt;&lt;p&gt;The architecture conveys a highly abstracted conceptual model of structure and behavior of the software, given its design, goals and constraints. The choice of the architecture has an impact on the ways the software will be implemented and how its development will be organized. A judiciously chosen architecture style helps reduce technical debt and enhance software efficiency and quality.&lt;/p&gt;&lt;p&gt;Take an example of Microservice Architecture (MSA) - Generally, MSA solution is founded on the idea of &quot;orchestrating&quot; the software, comprising loosely coupled and independent &quot;services&quot;.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/7795570265348196490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/7795570265348196490' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/7795570265348196490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/7795570265348196490'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2021/01/what-is-your-architecture-style.html' title='What is your architecture style?'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-5794360133245116348</id><published>2021-01-31T08:44:00.003-05:00</published><updated>2021-01-31T08:54:33.385-05:00</updated><title type='text'>Business and architecture isomorphism</title><content type='html'>&lt;p&gt;&amp;nbsp;&quot;Business and architecture isomorphism&quot; was referred in one of the articles I read.&amp;nbsp;&lt;a href=&quot;https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&amp;amp;arnumber=7030212&quot; target=&quot;_blank&quot;&gt;Article Link&lt;/a&gt;&lt;/p&gt;&lt;p&gt;It is so nicely sums up what we do in our day to day architecture and design decisions. I always believe that these commitments towards the idea is important whenever we are wearing our architect hat.&lt;/p&gt;&lt;p&gt;It further says - &quot;&lt;i&gt;When you look at your business,
you should see your IT systems and
look at your architecture and see
your business. If you’re a technologist or business person, there should
be recognition both ways that this is
going on.&quot;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;Microservices is the coming together
of a bunch of better practices from
a number of different communities. It is a combination of great
stuff from the&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;domain-driven-design
community around strategic design,&amp;nbsp;&lt;/li&gt;&lt;li&gt;bounded context, subdomains, how
to separate out your domains,&amp;nbsp;&lt;/li&gt;&lt;li&gt;and
how to partition a very big problem
domain into smaller domains so that
you can manage them.&lt;/li&gt;&lt;li&gt;It’s also taking a bunch of the better practices
from operational automation and
programmable infrastructure, development operations communities,
cloud communities, and the integration communities.&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;This is what has made the design and development interesting in the last few years.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You get to learn so many new things.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Now - another interesting aspect that I come across when I talk to fellow developers / architects - what is that one single thing definition for a microservice. What is that &#39;single&#39; in a Single Responsibility when we refer a microservice. Here are a few points to consider from various axis / dimensions. Ask others from which angle they are looking?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ol style=&quot;text-align: left;&quot;&gt;&lt;li&gt;it’s got a
&lt;b&gt;single reason&lt;/b&gt; to change and/or a single
reason to be replaced.&amp;nbsp;&lt;/li&gt;&lt;li&gt;it does only &lt;b&gt;one thing &lt;/b&gt;and one thing
alone and can be easily understood.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Single responsibility in terms of a functional requirement,&lt;/li&gt;&lt;li&gt;or it might be in
terms of a nonfunctional requirement&amp;nbsp;&lt;/li&gt;&lt;li&gt;or,&amp;nbsp; cross-functional requirements.&amp;nbsp;&lt;/li&gt;&lt;li&gt;An example might be a queue
 processor—something that’s reading
a message from a queue, performing a
small piece of business logic, and then
passing it on.&amp;nbsp;&lt;/li&gt;&lt;li&gt;Or Another example&amp;nbsp; as in - it might be something
that’s cross-functional, or nonfunctional,&amp;nbsp;&lt;/li&gt;&lt;li&gt;or it might be something that has
the responsibility for serving a particular resource or resource representation.&amp;nbsp;&lt;/li&gt;&lt;ol&gt;&lt;li&gt;Now a resource as .
Like a user or, say, an article, or it might
be a risk in insurance or something like
this, but something that’s very focused
and very small and that performs a &lt;b&gt;single task&lt;/b&gt; on its own.&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;/ol&gt;&lt;div&gt;So, it is not always a resource representation. It is one of the way to break it. Always get a 360 view.&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/5794360133245116348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/5794360133245116348' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/5794360133245116348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/5794360133245116348'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2021/01/business-and-architecture-isomorphism.html' title='Business and architecture isomorphism'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-5252223057357494773</id><published>2020-09-24T13:50:00.007-04:00</published><updated>2020-09-24T20:46:33.510-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="technology books"/><title type='text'>Get Your Hands Dirty on Clean Architecture - Excerpts</title><content type='html'>&lt;p&gt;Below are the excerpts taken from the book&amp;nbsp;&lt;/p&gt;&lt;p&gt;Source:&lt;/p&gt;&lt;h1 class=&quot;title t-title&quot; style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #404040; font-family: &amp;quot;source sans pro&amp;quot;, sans-serif; font-size: 1.875rem; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; font-weight: 400; line-height: 1.15em; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot; https://learning.oreilly.com/library/view/get-your-hands/9781839211966/B15547_01_Final_SW.xhtml#_idParaDest-9&quot;&gt;Get Your Hands Dirty on Clean Architecture&lt;/a&gt;&lt;/h1&gt;&lt;div class=&quot;review-report&quot; data-format=&quot;book&quot; data-identifier=&quot;9781839211966&quot; data-title=&quot;Get Your Hands Dirty on Clean Architecture&quot; style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #404040; font-family: &amp;quot;source sans pro&amp;quot;, sans-serif; font-size: 14px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 5px 0px 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span class=&quot;review-stars rateit rating-wrapper tabbable-item&quot; data-rateit-starheight=&quot;18&quot; data-rateit-starwidth=&quot;18&quot; style=&quot;background: no-repeat; border: 0px; box-sizing: border-box; display: inline-block; font: inherit; margin: -5px 0px 0px; padding: 0px; position: relative; top: 0px; user-select: none; vertical-align: baseline;&quot; tabindex=&quot;27&quot;&gt;&lt;button aria-controls=&quot;rateit-range-2&quot; aria-label=&quot;reset rating&quot; class=&quot;rateit-reset&quot; data-role=&quot;none&quot; id=&quot;rateit-reset-2&quot; style=&quot;appearance: none; background-attachment: initial; background-clip: padding-box; background-image: initial; background-origin: padding-box; background-position: 0px 0px; background-repeat: initial; background-size: initial; border-color: initial; border-radius: 0px; border-style: none; border-width: initial; box-shadow: rgb(0, 0, 0) 0px 0px 0px; color: #404040; cursor: pointer; display: none; font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: 1px; line-height: 1.2em; margin: 0px; padding: 0px; text-transform: uppercase; transition: all 0.15s cubic-bezier(0.86, 0, 0.07, 1) 0s;&quot; tabindex=&quot;28&quot; type=&quot;button&quot;&gt;&lt;/button&gt;&lt;span aria-label=&quot;rating&quot; aria-owns=&quot;rateit-reset-2&quot; aria-readonly=&quot;false&quot; aria-valuemax=&quot;5&quot; aria-valuemin=&quot;0&quot; aria-valuenow=&quot;4.875&quot; class=&quot;rateit-range&quot; id=&quot;rateit-range-2&quot; role=&quot;slider&quot; style=&quot;background: url(&amp;quot;/static/images/rateit/star-off.ab110496c202.png&amp;quot;); border: 0px; box-sizing: border-box; cursor: pointer; display: inline-block; font: inherit; height: 18px; margin: 0px; outline: 0px; overflow: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 90px;&quot; tabindex=&quot;29&quot;&gt;&lt;span class=&quot;rateit-selected&quot; style=&quot;background: url(&amp;quot;/static/images/rateit/star-on.a8e635dd7a68.png&amp;quot;); border: 0px; box-sizing: border-box; cursor: pointer; display: block; font: inherit; height: 18px; left: 0px; margin: 0px; padding: 0px; position: absolute; vertical-align: baseline; width: 87.75px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;author t-author&quot; style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #404040; font-family: &amp;quot;source sans pro&amp;quot;, sans-serif; font-size: 14px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 3px; padding: 0px; vertical-align: baseline;&quot;&gt;by&amp;nbsp;&lt;a class=&quot;js-search-again-link&quot; href=&quot;https://learning.oreilly.com/search/?query=author%3A%22Tom%20Hombergs%22&amp;amp;sort=relevance&amp;amp;highlight=true&quot; style=&quot;border: 0px; box-sizing: border-box; color: #f65d22; font: inherit; margin: 0px; padding: 0px; text-decoration-line: none; transition: color 0.2s ease-out 0s; vertical-align: baseline;&quot; tabindex=&quot;31&quot;&gt;Tom Hombergs&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;author t-author&quot; style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #404040; font-family: &amp;quot;source sans pro&amp;quot;, sans-serif; font-size: 14px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 3px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Georgia, &amp;quot;Droid Serif&amp;quot;, Times, serif; font-size: 19.36px;&quot;&gt;Perhaps we should rename the SRP the &quot;Single Reason to Change Principle.&quot;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Georgia, &amp;quot;Droid Serif&amp;quot;, Times, serif; font-size: 19.36px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; box-sizing: border-box; color: #222222; font-family: Georgia, &amp;quot;Droid Serif&amp;quot;, Times, serif; font-size: 19.36px; hyphens: auto; line-height: 1.65em !important; margin: 0.75em 0px 1.25em !important; padding: 0px; text-align: left;&quot;&gt;The Dependency Inversion Principle (DIP) provides the answer.&lt;br /&gt;In contrast to the SRP, the DIP means what the name suggests:&lt;br /&gt;&lt;em class=&quot;italics&quot; style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box;&quot;&gt;We can turn around (invert) the direction of any dependency within our codebase.&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;em class=&quot;italics&quot; style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box;&quot;&gt;&lt;br /&gt;&lt;/em&gt;&lt;/div&gt;&lt;p&gt;Making the application&#39;s functionality visible in the code is what Robert Martin calls a &quot;screaming architecture,&quot; because it screams its intention at us (Clean Architecture by Robert C. Martin, Prentice Hall, 2017, Chapter 21).&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgufqPfFsv85oN7OTTUlS_8MwJEWsXPQLVfxQVGjIfi0uTB-HZR-D7CbltYRfaoSAmQYt31-vHKJvPDSgRmTYdSf4iriR19p2WKAZPDhudUbSALRxK1uo2X6aWHGLfP3YiGxwyx/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;664&quot; data-original-width=&quot;1800&quot; height=&quot;118&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgufqPfFsv85oN7OTTUlS_8MwJEWsXPQLVfxQVGjIfi0uTB-HZR-D7CbltYRfaoSAmQYt31-vHKJvPDSgRmTYdSf4iriR19p2WKAZPDhudUbSALRxK1uo2X6aWHGLfP3YiGxwyx/&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&amp;nbsp;By introducing an interface in the domain layer, we can invert the dependency so that the persistence layer depends on the domain layer&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqsuiMBn5x2I140Es4CLotepwaSPid1551PmgSv9eeR0DdkG5pw3LdQUj0Yvpe90k5_HmM9p31pdahEopBDuzEC_otOLUM3vy4A0g_AtB58uoQRNt2EAbqsANP1E29Q8WE2dhG/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;1122&quot; data-original-width=&quot;1752&quot; height=&quot;205&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqsuiMBn5x2I140Es4CLotepwaSPid1551PmgSv9eeR0DdkG5pw3LdQUj0Yvpe90k5_HmM9p31pdahEopBDuzEC_otOLUM3vy4A0g_AtB58uoQRNt2EAbqsANP1E29Q8WE2dhG/&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;In a clean architecture, all dependencies point inward toward the domain logic. Source: &quot;Clean Architecture&quot; by Robert C. Martin&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS4U_9vlkceXIZTkurSLt_qDOVPuMH7E2K6DIPKkX21eygBuM8rHKsnwKc-wcuxLOKnesXuspzPndEUg682wzppdVP0Sh_RfpZCkOKwHLSfHWguzskoy1WegZ_99e9_k68GCbd/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;798&quot; data-original-width=&quot;1800&quot; height=&quot;142&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS4U_9vlkceXIZTkurSLt_qDOVPuMH7E2K6DIPKkX21eygBuM8rHKsnwKc-wcuxLOKnesXuspzPndEUg682wzppdVP0Sh_RfpZCkOKwHLSfHWguzskoy1WegZ_99e9_k68GCbd/&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;A hexagonal architecture is also called a &quot;ports-and-adapters&quot; architecture since the application core provides specific ports for each adapter to interact with&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The preceding figure shows what a hexagonal architecture might look like. The application core is represented as a hexagon, giving this architecture style its name. The hexagon shape has no meaning, however, so we might just as well draw an octagon and call it &quot;octagonal architecture.&quot; According to legend, the hexagon was simply used instead of the common rectangle to show that an application can have more than four sides connecting it to other systems or adapters.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;h2 id=&quot;_idParaDest-28&quot; style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; background-color: white; box-sizing: border-box; color: #404040; font-family: &amp;quot;source sans pro&amp;quot;, sans-serif, AvenirNextCondensed-Medium, HelveticaNeue-CondensedBold, &amp;quot;Droid Sans&amp;quot;, Helvetica, Arial, sans-serif !important; font-size: 2.6rem; letter-spacing: -0.1rem; line-height: 1.25; margin-bottom: 1rem; margin-left: 0px !important; margin-right: 0px !important; margin-top: 1.2rem; overflow-wrap: break-word; padding: 0px;&quot;&gt;Organizing by Feature&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz2GAJTrq_IS7hsqMyv7149vjplQkQZJnQufswMgMjB4hP0lEiENMWsZodXUCK2om8CqagMci1gdzkG4ntXsyb5y35FpM7F68xOGxnHieiU68CfO8aSowdSdUNImodGQFZqkCc/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;701&quot; data-original-width=&quot;938&quot; height=&quot;239&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz2GAJTrq_IS7hsqMyv7149vjplQkQZJnQufswMgMjB4hP0lEiENMWsZodXUCK2om8CqagMci1gdzkG4ntXsyb5y35FpM7F68xOGxnHieiU68CfO8aSowdSdUNImodGQFZqkCc/&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;Figure 3.3: In an architecturally expressive package structure, each architecture element has its place&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This package structure is a powerful element in the fight against the so-called &quot;architecture-code gap&quot; or &quot;model-code gap&quot; (Just Enough Architecture by George Fairbanks, Marshall &amp;amp; Brainerd, 2010, page 167). These terms describe the fact that in most software development projects the architecture is only an abstract concept that cannot be directly mapped to the code. With time, if the package structure (among other things) does not reflect the architecture, the code will usually deviate more and more from the target architecture.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/5252223057357494773/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/5252223057357494773' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/5252223057357494773'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/5252223057357494773'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/09/good-read-architecture-book.html' title='Get Your Hands Dirty on Clean Architecture - Excerpts'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgufqPfFsv85oN7OTTUlS_8MwJEWsXPQLVfxQVGjIfi0uTB-HZR-D7CbltYRfaoSAmQYt31-vHKJvPDSgRmTYdSf4iriR19p2WKAZPDhudUbSALRxK1uo2X6aWHGLfP3YiGxwyx/s72-c" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-2036208742924223727</id><published>2020-09-19T07:26:00.007-04:00</published><updated>2020-09-20T11:21:16.663-04:00</updated><title type='text'>Apache POI - Reading Excel</title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;Reading Excel via Apache POI&lt;/h2&gt;&lt;div&gt;&lt;a href=&quot;https://gist.github.com/toneeraj/7daa498353867af3b8c2dceb723c20a4&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://gist.github.com/toneeraj/7daa498353867af3b8c2dceb723c20a4&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Here are some of the things that you may want to take care for a better readability and design.&lt;/div&gt;&lt;p&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;- Add the header row for readability and Ignore the header row while reading&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-size: 13px;&quot;&gt;- By default if one of the column cell is empty, that will be&amp;nbsp; ignored. So, ensure that you have a way to deal with it. e.g.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;color: #3f5fbf;&quot;&gt;/**&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;color: #3f5fbf; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;* Gets the all cells including missing cell.&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;color: #3f5fbf; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;*&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;color: #3f5fbf; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;span class=&quot;s2&quot; style=&quot;color: #7f9fbf;&quot;&gt;&lt;b&gt;@param&lt;/b&gt;&lt;/span&gt; maxCellToReadInRow max cell to read in row&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;color: #3f5fbf; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;span class=&quot;s2&quot; style=&quot;color: #7f9fbf;&quot;&gt;&lt;b&gt;@param&lt;/b&gt;&lt;/span&gt; row&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;row&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;color: #3f5fbf; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;span class=&quot;s2&quot; style=&quot;color: #7f9fbf;&quot;&gt;&lt;b&gt;@return&lt;/b&gt;&lt;/span&gt; all cells including missing cell&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;color: #3f5fbf; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;*/&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s3&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;private&lt;/b&gt;&lt;/span&gt; List&amp;lt;Cell&amp;gt; getAllCellsIncludingMissingCell(&lt;span class=&quot;s3&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;int&lt;/b&gt;&lt;/span&gt; &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;maxCellToReadInRow&lt;/span&gt;, Row &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;row&lt;/span&gt;) {&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;List&amp;lt;Cell&amp;gt; &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;cells&lt;/span&gt; = &lt;span class=&quot;s3&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;new&lt;/b&gt;&lt;/span&gt; ArrayList&amp;lt;Cell&amp;gt;();&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 14px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;s3&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;int&lt;/b&gt;&lt;/span&gt; &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;lastColumn&lt;/span&gt; = Math.&lt;i&gt;max&lt;/i&gt;(&lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;row&lt;/span&gt;.getLastCellNum(), &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;maxCellToReadInRow&lt;/span&gt;);&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 14px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;s3&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;for&lt;/b&gt;&lt;/span&gt; (&lt;span class=&quot;s3&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;int&lt;/b&gt;&lt;/span&gt; &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;cn&lt;/span&gt; = 0; &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;cn&lt;/span&gt; &amp;lt; &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;lastColumn&lt;/span&gt;; &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;cn&lt;/span&gt;++) {&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;Cell &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;c&lt;/span&gt; = &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;row&lt;/span&gt;.getCell(&lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;cn&lt;/span&gt;, Row.MissingCellPolicy.&lt;span class=&quot;s5&quot; style=&quot;color: #0000c0;&quot;&gt;&lt;b&gt;&lt;i&gt;RETURN_BLANK_AS_NULL&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;);&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;cells&lt;/span&gt;.add(&lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;c&lt;/span&gt;);&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;color: #7f0055; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s6&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;b&gt;return&lt;/b&gt;&lt;span class=&quot;s6&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;cells&lt;/span&gt;&lt;span class=&quot;s6&quot; style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;}&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&amp;nbsp;- Extract cell info - use the org.apache.poi.ss.usermodel.DataFormatter if you want to return the value as String.&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;color: #3f5fbf;&quot;&gt;/**&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;color: #3f5fbf; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;* Extract cell info.&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;color: #3f5fbf; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;*&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;color: #3f5fbf; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;span class=&quot;s2&quot; style=&quot;color: #7f9fbf;&quot;&gt;&lt;b&gt;@param&lt;/b&gt;&lt;/span&gt; cells cells&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;color: #3f5fbf; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;* &lt;span class=&quot;s2&quot; style=&quot;color: #7f9fbf;&quot;&gt;&lt;b&gt;@return&lt;/b&gt;&lt;/span&gt; list&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;color: #3f5fbf; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;*/&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;color: #3f5fbf; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s3&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;private&lt;/b&gt;&lt;/span&gt; List&amp;lt;String&amp;gt; extractCellInfo(List&amp;lt;Cell&amp;gt; &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;cells&lt;/span&gt;) {&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;DataFormatter&amp;nbsp;&lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;fmt&lt;/span&gt; = &lt;span class=&quot;s3&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;new&lt;/b&gt;&lt;/span&gt; DataFormatter();&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;List&amp;lt;String&amp;gt; &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;info&lt;/span&gt; = &lt;span class=&quot;s3&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;new&lt;/b&gt;&lt;/span&gt; ArrayList&amp;lt;&amp;gt;();&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;s3&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;for&lt;/b&gt;&lt;/span&gt; (Cell &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;cell&lt;/span&gt; : &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;cells&lt;/span&gt;) {&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s3&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;if&lt;/b&gt;&lt;/span&gt; (&lt;span class=&quot;s3&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;null&lt;/b&gt;&lt;/span&gt; != &lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;cell&lt;/span&gt;) {&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;info&lt;/span&gt;.add(&lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;fmt&lt;/span&gt;.formatCellValue(&lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;cell&lt;/span&gt;));&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;} &lt;span class=&quot;s3&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;else&lt;/b&gt;&lt;/span&gt; {&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;info&lt;/span&gt;.add(&lt;span class=&quot;s5&quot; style=&quot;color: #2a00ff;&quot;&gt;&quot;&quot;&lt;/span&gt;);&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;}&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 14px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;p4&quot; style=&quot;color: #7f0055; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s6&quot; style=&quot;color: black;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;/span&gt;&lt;b&gt;return&lt;/b&gt;&lt;span class=&quot;s6&quot; style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s4&quot; style=&quot;color: #6a3e3e;&quot;&gt;info&lt;/span&gt;&lt;span class=&quot;s6&quot; style=&quot;color: black;&quot;&gt;;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 14px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;}&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;- Finally, close the resources&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;color: #7f0055; font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;b&gt;finally&lt;/b&gt;&lt;span class=&quot;s1&quot; style=&quot;color: black;&quot;&gt; {&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;if&lt;/b&gt;&lt;/span&gt; (&lt;span class=&quot;s3&quot; style=&quot;color: #6a3e3e;&quot;&gt;workbook&lt;/span&gt; != &lt;span class=&quot;s2&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;null&lt;/b&gt;&lt;/span&gt;) {&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;try&lt;/b&gt;&lt;/span&gt; {&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s3&quot; style=&quot;color: #6a3e3e;&quot;&gt;workbook&lt;/span&gt;.close();&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;} &lt;span class=&quot;s2&quot; style=&quot;color: #7f0055;&quot;&gt;&lt;b&gt;catch&lt;/b&gt;&lt;/span&gt; (IOException &lt;span class=&quot;s3&quot; style=&quot;color: #6a3e3e;&quot;&gt;exception&lt;/span&gt;) {&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;s4&quot; style=&quot;color: #0000c0;&quot;&gt;&lt;b&gt;&lt;i&gt;log&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;.error(&lt;span class=&quot;s5&quot; style=&quot;color: #2a00ff;&quot;&gt;&quot;Exception : &quot;&lt;/span&gt; + ExceptionUtils.&lt;i&gt;getStackTrace&lt;/i&gt;(&lt;span class=&quot;s3&quot; style=&quot;color: #6a3e3e;&quot;&gt;exception&lt;/span&gt;));&lt;/p&gt;&lt;p class=&quot;p3&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; min-height: 14px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/p&gt;&lt;p class=&quot;p2&quot; style=&quot;font-family: Menlo; font-size: 12px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;}&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/2036208742924223727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/2036208742924223727' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/2036208742924223727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/2036208742924223727'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/09/apache-poi-reading-excel.html' title='Apache POI - Reading Excel'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-4227951689055586752</id><published>2020-07-29T09:07:00.002-04:00</published><updated>2020-07-29T09:57:11.616-04:00</updated><title type='text'>Spring Batch Transactions - Notes</title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;Handling Transactions in Spring Batch&lt;/h2&gt;&lt;div&gt;It always becomes easy when we know how the underlying framework is using the transaction so that you can make right use of that.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Few notes - from below&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://livebook.manning.com/book/spring-batch-in-action/chapter-9/36&quot;&gt;https://livebook.manning.com/book/spring-batch-in-action/chapter-9/36&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;If we take the&amp;nbsp;&lt;/span&gt;&lt;kbd style=&quot;-webkit-tap-highlight-color: transparent; background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(220, 220, 220); box-sizing: border-box; color: #222222; font-family: consolas, courier, monospace; font-size: 0.875rem; padding: 3px 5px;&quot;&gt;ChunkListener&lt;/kbd&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&amp;nbsp;as an example, its Javadoc states that Spring Batch executes its&amp;nbsp;&lt;/span&gt;&lt;kbd style=&quot;-webkit-tap-highlight-color: transparent; background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(220, 220, 220); box-sizing: border-box; color: #222222; font-family: consolas, courier, monospace; font-size: 0.875rem; padding: 3px 5px;&quot;&gt;beforeChunk&lt;/kbd&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&amp;nbsp;method in the chunk transaction but its&amp;nbsp;&lt;/span&gt;&lt;kbd style=&quot;-webkit-tap-highlight-color: transparent; background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(220, 220, 220); box-sizing: border-box; color: #222222; font-family: consolas, courier, monospace; font-size: 0.875rem; padding: 3px 5px;&quot;&gt;afterChunk&lt;/kbd&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&amp;nbsp;method out of the chunk transaction. Therefore, if you use a transaction resource such as a database in a&amp;nbsp;&lt;/span&gt;&lt;kbd style=&quot;-webkit-tap-highlight-color: transparent; background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(220, 220, 220); box-sizing: border-box; color: #222222; font-family: consolas, courier, monospace; font-size: 0.875rem; padding: 3px 5px;&quot;&gt;ChunkListener&lt;/kbd&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;’s&amp;nbsp;&lt;/span&gt;&lt;kbd style=&quot;-webkit-tap-highlight-color: transparent; background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(220, 220, 220); box-sizing: border-box; color: #222222; font-family: consolas, courier, monospace; font-size: 0.875rem; padding: 3px 5px;&quot;&gt;afterChunk&lt;/kbd&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&amp;nbsp;method, you should handle the transaction yourself, using the Spring Framework’s transaction support.&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;Spring Batch also includes listeners to listen to phases for item reading, processing, and writing. Spring Batch calls these listeners before and after each phase and when an error occurs. The error callback is transactional, but it happens in a transaction that Spring Batch is about to roll back. Therefore, if you want to log the error to a database, you should handle the transaction yourself and use the&amp;nbsp;&lt;/span&gt;&lt;kbd style=&quot;-webkit-tap-highlight-color: transparent; background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(220, 220, 220); box-sizing: border-box; color: #222222; font-family: consolas, courier, monospace; font-size: 0.875rem; padding: 3px 5px;&quot;&gt;REQUIRES_NEW&lt;/kbd&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&amp;nbsp;propagation level. This allows the logging transaction to be independent from the chunk and the transaction to be rolled back.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&lt;b&gt;Now. the below is where I got stuck and below text helped me understand how to resolve&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;In a Spring Batch application, Spring Batch is in charge of transactions. If at any time Spring Batch calls application code annotated with&amp;nbsp;&lt;/span&gt;&lt;kbd style=&quot;-webkit-tap-highlight-color: transparent; background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(220, 220, 220); box-sizing: border-box; color: #222222; font-family: consolas, courier, monospace; font-size: 0.875rem; padding: 3px 5px;&quot;&gt;@Transactional&lt;/kbd&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;, the transaction for this code uses the transaction managed by Spring Batch. Because it’s using the default propagation level—&lt;/span&gt;&lt;kbd style=&quot;-webkit-tap-highlight-color: transparent; background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(220, 220, 220); box-sizing: border-box; color: #222222; font-family: consolas, courier, monospace; font-size: 0.875rem; padding: 3px 5px;&quot;&gt;REQUIRED&lt;/kbd&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;—the transaction that&amp;nbsp;&lt;/span&gt;&lt;kbd style=&quot;-webkit-tap-highlight-color: transparent; background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(220, 220, 220); box-sizing: border-box; color: #222222; font-family: consolas, courier, monospace; font-size: 0.875rem; padding: 3px 5px;&quot;&gt;@Transactional&lt;/kbd&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&amp;nbsp;uses is the same as the Spring Batch transaction.&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://livebook.manning.com/book/spring-batch-in-action/chapter-9/53#!/book/spring-batch-in-action/chapter-9/ch09fig01&quot; style=&quot;-webkit-tap-highlight-color: transparent; background-color: #f4f4f4; box-sizing: border-box; color: #2b44d1; font-family: merriweather, serif; font-size: 16px; line-height: inherit;&quot;&gt;Figure 9.1&lt;/a&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&amp;nbsp;illustrates how application code annotated with&amp;nbsp;&lt;/span&gt;&lt;kbd style=&quot;-webkit-tap-highlight-color: transparent; background-color: whitesmoke; border-radius: 3px; border: 1px solid rgb(220, 220, 220); box-sizing: border-box; color: #222222; font-family: consolas, courier, monospace; font-size: 0.875rem; padding: 3px 5px;&quot;&gt;@Transactional&lt;/kbd&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&amp;nbsp;can interfere with the chunk transaction in a Spring Batch job&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;And used below&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f4f4f4; color: #222222; font-family: merriweather, serif; font-size: 16px;&quot;&gt;&lt;a href=&quot;https://stackoverflow.com/questions/50173477/spring-boot-jpa-batch-cannotcreatetransactionexception&quot;&gt;https://stackoverflow.com/questions/50173477/spring-boot-jpa-batch-cannotcreatetransactionexception&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Configured my custom transactionManager in the Spring Batch step&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;hljs-comment&quot; style=&quot;box-sizing: border-box; color: #999988; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; font-style: italic; white-space: pre;&quot;&gt;/**
 * Note the TransactionManager is typically autowired in and not needed to be explicitly
 * configured
 */&lt;/span&gt;&lt;span style=&quot;background-color: #f8f8f8; color: #222222; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;hljs-meta&quot; style=&quot;box-sizing: border-box; color: #999999; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; font-weight: bold; white-space: pre;&quot;&gt;@Bean&lt;/span&gt;&lt;span style=&quot;background-color: #f8f8f8; color: #222222; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; white-space: pre;&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;hljs-function&quot; style=&quot;box-sizing: border-box; color: #222222; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; white-space: pre;&quot;&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; color: #333333; font-weight: bold;&quot;&gt;public&lt;/span&gt; Step &lt;span class=&quot;hljs-title&quot; style=&quot;box-sizing: border-box; color: #990000; font-weight: bold;&quot;&gt;sampleStep&lt;/span&gt;&lt;span class=&quot;hljs-params&quot; style=&quot;box-sizing: border-box;&quot;&gt;(PlatformTransactionManager transactionManager)&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;background-color: #f8f8f8; color: #222222; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; white-space: pre;&quot;&gt;{
	&lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; font-weight: bold; white-space: pre;&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;background-color: #f8f8f8; color: #222222; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;hljs-keyword&quot; style=&quot;box-sizing: border-box; color: #333333; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; font-weight: bold; white-space: pre;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;background-color: #f8f8f8; color: #222222; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; white-space: pre;&quot;&gt;.stepBuilderFactory.get(&lt;/span&gt;&lt;span class=&quot;hljs-string&quot; style=&quot;box-sizing: border-box; color: #dd1144; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; white-space: pre;&quot;&gt;&quot;sampleStep&quot;&lt;/span&gt;&lt;span style=&quot;background-color: #f8f8f8; color: #222222; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; white-space: pre;&quot;&gt;)
				.transactionManager(transactionManager)
				.&amp;lt;String, String&amp;gt;chunk(&lt;/span&gt;&lt;span class=&quot;hljs-number&quot; style=&quot;box-sizing: border-box; color: teal; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; white-space: pre;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;background-color: #f8f8f8; color: #222222; font-family: Monaco, Menlo, Consolas, &amp;quot;courier new&amp;quot;, monospace; font-size: 13px; white-space: pre;&quot;&gt;)
				.reader(itemReader())
				.writer(itemWriter())
				.build();
}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/4227951689055586752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/4227951689055586752' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/4227951689055586752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/4227951689055586752'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/07/spring-batch-transactions-notes.html' title='Spring Batch Transactions - Notes'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-5644255492756987415</id><published>2020-07-12T09:16:00.000-04:00</published><updated>2020-07-12T09:16:47.470-04:00</updated><title type='text'>Kubernetes - Misc... readings for working on AKS </title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;What is it all about?&lt;/b&gt;&lt;/h1&gt;&lt;div&gt;While working on AKS, on a day to day basis, I come across the various different problem statements. Some are straight forward and some needs some reading. Below are a few.&lt;/div&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Log when the pods auto scaling is enabled&lt;/b&gt;&lt;/h1&gt;&lt;div&gt;Below helped -&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Print Logs of container in Pods (Kubernetes)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Reference:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href=&quot;https://kubectl.docs.kubernetes.io/pages/container_debugging/container_logs.html&quot;&gt;https://kubectl.docs.kubernetes.io/pages/container_debugging/container_logs.html&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h1&gt;AKS Alert - When CrashloopBackOff happens&lt;/h1&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #55565b; font-family: Lato, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 18px;&quot;&gt;Reading about below helps to know what this event is all about and how I can make use of it.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #55565b; font-family: Lato, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #55565b; font-family: Lato, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 18px;&quot;&gt;&lt;b&gt;CrashloopBackOff&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #55565b; font-family: Lato, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 18px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #55565b; font-family: Lato, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 18px;&quot;&gt;A CrashloopBackOff means that you have a pod starting, crashing, starting again, and then crashing again.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h2 style=&quot;background-color: white; box-sizing: border-box; color: #101820; font-family: Lato, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-variant-ligatures: no-common-ligatures; line-height: 1.35; margin-bottom: 0.6rem; margin-top: 2em; text-align: left; word-spacing: 1px;&quot;&gt;How to alert on Kubernetes CrashLoopBackOff&lt;/h2&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #55565b; font-family: Lato, -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Roboto, &amp;quot;Helvetica Neue&amp;quot;, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 18px; line-height: 1.6em; margin-bottom: 1rem; margin-top: 0px;&quot;&gt;For alerting purposes we’ll want to use the metric&amp;nbsp;&lt;code style=&quot;background: rgb(216, 255, 254); box-sizing: border-box; color: #0a1429; font-family: monospace, monospace; font-size: 1em; padding: 1px 4px;&quot;&gt;kubernetes.pod.restart.rate&lt;/code&gt;. This will give us the ability to do analysis on the trend of pod restarts over time, and promptly notify our team of any anomalies.&lt;/p&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;AKS Cluster - Wanted to use the Azure Vault in my Pods&lt;/h1&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #24292e; font-family: -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px;&quot;&gt;&lt;b&gt;Secrets Store CSI driver for Kubernetes secrets&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://github.com/kubernetes-sigs/secrets-store-csi-driver&quot;&gt;https://github.com/kubernetes-sigs/secrets-store-csi-driver&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; margin-bottom: 16px; margin-top: 0px;&quot;&gt;Secrets Store CSI driver for Kubernetes secrets - Integrates secrets stores with Kubernetes via a&amp;nbsp;&lt;a href=&quot;https://kubernetes-csi.github.io/docs/&quot; rel=&quot;nofollow&quot; style=&quot;background-color: initial; box-sizing: border-box; color: #0366d6; text-decoration-line: none;&quot;&gt;Container Storage Interface (CSI)&lt;/a&gt;&amp;nbsp;volume.&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, system-ui, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;; font-size: 16px; margin-bottom: 16px; margin-top: 0px;&quot;&gt;The Secrets Store CSI driver&amp;nbsp;&lt;code style=&quot;background-color: rgba(27, 31, 35, 0.05); border-radius: 6px; box-sizing: border-box; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, monospace; font-size: 13.6px; margin: 0px; padding: 0.2em 0.4em;&quot;&gt;secrets-store.csi.k8s.io&lt;/code&gt;&amp;nbsp;allows Kubernetes to mount multiple secrets, keys, and certs stored in enterprise-grade external secrets stores into their pods as a volume. Once the Volume is attached, the data in it is mounted into the container&#39;s file system.&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/5644255492756987415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/5644255492756987415' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/5644255492756987415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/5644255492756987415'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/07/kubernetes-misc-readings-for-working-on.html' title='Kubernetes - Misc... readings for working on AKS '/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-2468714739949111859</id><published>2020-06-27T22:45:00.004-04:00</published><updated>2020-06-27T23:59:05.737-04:00</updated><title type='text'>What is the right database connection pool size in kubernetes</title><content type='html'>&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;First find how many nodes in your kubernetes cluster&lt;/li&gt;&lt;li&gt;Each node will have&amp;nbsp;&lt;a href=&quot;https://www.accuwebhosting.com/blog/what-is-virtual-processor-or-vcpu/&quot;&gt;https://www.accuwebhosting.com/blog/what-is-virtual-processor-or-vcpu/&lt;/a&gt;&amp;nbsp;vcpu (read here)&lt;/li&gt;&lt;li&gt;Now, follow this simple formula to arrive at the number&amp;nbsp;&lt;a href=&quot;https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing&quot;&gt;https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;Question: For the above setup, if the number of pods are dynamic, should the connection pool size need to be adjusted as the pods are scaling up and down?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Noticed that the below error in the Postgres (PAS) using Hikari default connection pool = 10 on 4 node (8vcpu) cluster - 16 pods were running.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&quot;&lt;span style=&quot;caret-color: rgb(239, 105, 80); color: #ef6950; font-family: helvetica; font-size: 12px;&quot;&gt;FATAL: remaining connection slots are reserved for non-replication superuser connections&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;caret-color: rgb(239, 105, 80); color: #ef6950; font-family: helvetica; font-size: 12px;&quot;&gt;&lt;a href=&quot;https://techcommunity.microsoft.com/t5/azure-database-for-postgresql/troubleshoot-postgresql-an-existing-connection-was-forcibly/ba-p/925164&quot;&gt;https://techcommunity.microsoft.com/t5/azure-database-for-postgresql/troubleshoot-postgresql-an-existing-connection-was-forcibly/ba-p/925164&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;caret-color: rgb(239, 105, 80); color: #ef6950; font-family: helvetica; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;caret-color: rgb(239, 105, 80); color: #ef6950; font-family: helvetica; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Read this to know more on Postgres connection management&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;caret-color: rgb(239, 105, 80); color: #ef6950; font-family: helvetica; font-size: 12px;&quot;&gt;&lt;a href=&quot;http://www.craigkerstiens.com/2017/09/18/postgres-connection-management/&quot;&gt;http://www.craigkerstiens.com/2017/09/18/postgres-connection-management/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;caret-color: rgb(239, 105, 80); color: #ef6950; font-family: helvetica; font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;caret-color: rgb(239, 105, 80); color: #ef6950; font-family: helvetica; font-size: 12px;&quot;&gt;&lt;pre style=&quot;background: none rgb(221, 221, 221); border-radius: 0px; border: none; color: #333333; font-family: proxima-nova-1, proxima-nova-2, &amp;quot;Helvetica Neue&amp;quot;, Arial, sans-serif; font-size: 16px; line-height: 1.5; margin-bottom: 0px; margin-top: 0px; overflow-x: auto; padding: 0px;&quot;&gt;&lt;code class=&quot;sql&quot; style=&quot;background: none; border-radius: 0px; border: none; font-family: proxima-nova-1, proxima-nova-2, &amp;quot;Helvetica Neue&amp;quot;, Arial, sans-serif; font-size: 0.9em; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;line&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;k&quot; style=&quot;color: rgb(203, 75, 22) !important; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;k&quot; style=&quot;color: rgb(203, 75, 22) !important; margin: 0px; padding: 0px;&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;color: rgb(88, 110, 117) !important; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;color: rgb(88, 110, 117) !important; font-weight: bold !important; margin: 0px; padding: 0px;&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;color: rgb(88, 110, 117) !important; margin: 0px; padding: 0px;&quot;&gt;),&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;line&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;       &lt;span class=&quot;k&quot; style=&quot;color: rgb(203, 75, 22) !important; margin: 0px; padding: 0px;&quot;&gt;state&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;line&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;k&quot; style=&quot;color: rgb(203, 75, 22) !important; margin: 0px; padding: 0px;&quot;&gt;FROM&lt;/span&gt; &lt;span class=&quot;n&quot; style=&quot;color: rgb(38, 139, 210) !important; margin: 0px; padding: 0px;&quot;&gt;pg_stat_activity&lt;/span&gt;
&lt;/span&gt;&lt;span class=&quot;line&quot; style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;k&quot; style=&quot;color: rgb(203, 75, 22) !important; margin: 0px; padding: 0px;&quot;&gt;GROUP&lt;/span&gt; &lt;span class=&quot;k&quot; style=&quot;color: rgb(203, 75, 22) !important; margin: 0px; padding: 0px;&quot;&gt;BY&lt;/span&gt; &lt;span class=&quot;mi&quot; style=&quot;color: rgb(42, 161, 152) !important; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;color: rgb(88, 110, 117) !important; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;when 4 pods were running on 4 nodes and application was constantly listening to messages from queue and storing in database table . below were the stats&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;count(*) state&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;70&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;null&lt;/div&gt;&lt;div&gt;31&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;active&lt;/div&gt;&lt;div&gt;244&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;idle&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;strong style=&quot;background-color: white; color: #333333; font-family: proxima-nova-1, proxima-nova-2, &amp;quot;Helvetica Neue&amp;quot;, Arial, sans-serif; font-size: 16px; margin: 0px; padding: 0px;&quot;&gt;active&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: proxima-nova-1, proxima-nova-2, &amp;quot;Helvetica Neue&amp;quot;, Arial, sans-serif; font-size: 16px;&quot;&gt;&amp;nbsp;– This is currently running queries, in a sense this is truly how many connections you may require at a time&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: proxima-nova-1, proxima-nova-2, &amp;quot;Helvetica Neue&amp;quot;, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: proxima-nova-1, proxima-nova-2, &amp;quot;Helvetica Neue&amp;quot;, Arial, sans-serif; font-size: 16px;&quot;&gt;Finally, your subscription tier defines the connection limits as mentioned here at the database layer&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/postgresql/concepts-limits&quot;&gt;https://docs.microsoft.com/en-us/azure/postgresql/concepts-limits&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Our DB&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: az_ea_font, &amp;quot;Segoe UI&amp;quot;, az_font, system-ui, -apple-system, system-ui, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;General Purpose, 8 vCore(s), 100 GB - so, it means , it can allow &lt;b&gt;475&amp;nbsp; max user connections.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/2468714739949111859/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/2468714739949111859' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/2468714739949111859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/2468714739949111859'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/06/what-is-right-database-connection-pool.html' title='What is the right database connection pool size in kubernetes'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-7727422936704739654</id><published>2020-06-10T07:45:00.001-04:00</published><updated>2020-06-10T07:46:18.939-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="spring boot"/><title type='text'>Using sessions in spring boot kubernetes</title><content type='html'>&lt;div&gt;Here is a hypothetical situation&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;I have a spring boot application which listens to messages from a queue. This application will be deployed to multiple pods via kubernetes cluster.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There will be multiple consumer application instances.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I want to log how many messages got consumed every hour by all the consumers.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;One probable solution&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;Use a map - with key as date and value as count of message read/consumed&lt;/li&gt;&lt;li&gt;Put this map in session.&lt;/li&gt;&lt;li&gt;Spring boot sessions should be backed by something like&amp;nbsp;&lt;a href=&quot;https://hazelcast.com/blog/spring-boot-tomcat-session-replication-on-kubernetes-using-hazelcast/&quot;&gt;https://hazelcast.com/blog/spring-boot-tomcat-session-replication-on-kubernetes-using-hazelcast/&lt;/a&gt;&amp;nbsp;(??)&lt;/li&gt;&lt;li&gt;or shared volume usage??&lt;/li&gt;&lt;li&gt;Have a spring cron based method that will be executing every 15 min or say and will be updating the map and print in the log&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;What are other solutions?&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/7727422936704739654/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/7727422936704739654' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/7727422936704739654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/7727422936704739654'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/06/sticky-sessions-in-spring-boot.html' title='Using sessions in spring boot kubernetes'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-718506039682788564</id><published>2020-06-02T08:57:00.002-04:00</published><updated>2020-06-02T09:25:58.138-04:00</updated><title type='text'>Azure File Share </title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;Azure File Share&amp;nbsp;&lt;/h1&gt;Azure File Share is Offered as Platform as a service which By default - provides Public end points. That means it can be accessed from Internet via any authenticated credentials - e.g.&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;b&gt;Storage account &lt;/b&gt;key or&amp;nbsp;&lt;/li&gt;&lt;li&gt;the SAAS token or&lt;/li&gt;&lt;li&gt;Kerberos identity when you login to your&amp;nbsp; file share&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;So, you can get to this storage account from anywhere.&lt;/div&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;Working with Azure File Shares&lt;/h1&gt;&lt;div&gt;&lt;h2&gt;Storage Account&lt;/h2&gt;&lt;div&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-storage-explorer#create-a-storage-account&quot;&gt;https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-storage-explorer#create-a-storage-account&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px;&quot;&gt;&lt;blockquote&gt;A storage account is a shared pool of storage in which you can deploy an &lt;i&gt;&lt;b&gt;Azure file share&lt;/b&gt;&lt;/i&gt; or other storage resources, such as blobs or queues. A storage account can contain an unlimited number of shares. A share can store an unlimited number of files, up to the capacity limits of the storage account.&lt;/blockquote&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; font-weight: normal;&quot;&gt;Created a Storage Account Name:&amp;nbsp;&lt;/span&gt;&lt;font color=&quot;#171717&quot; face=&quot;Segoe UI, SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size: 16px; font-weight: 400;&quot;&gt;demotoneeraj and&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#171717&quot; face=&quot;Segoe UI, SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif&quot;&gt;&lt;span style=&quot;font-size: 16px; font-weight: 400;&quot;&gt;Resource Group:&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;em style=&quot;background-color: white; box-sizing: inherit; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; outline-color: inherit;&quot;&gt;demo&lt;/em&gt;&lt;/h2&gt;&lt;div&gt;&lt;em style=&quot;background-color: white; box-sizing: inherit; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; outline-color: inherit;&quot;&gt;&lt;h3 style=&quot;color: black; font-family: times; font-style: normal; text-align: left;&quot;&gt;Securing a Storage Account&lt;/h3&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;em style=&quot;background-color: white; box-sizing: inherit; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; outline-color: inherit;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;Should require a proper authorization for the request. Authorization is supported with Azure Active Directory (Azure AD) credentials for blobs and queues, with a valid account access key, or with an SAS token.&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string?toc=/azure/storage/files/toc.json&quot;&gt;https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string?toc=/azure/storage/files/toc.json&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;em style=&quot;background-color: white; box-sizing: inherit; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; outline-color: inherit;&quot;&gt;&lt;span style=&quot;font-style: normal;&quot;&gt;&lt;b&gt;valid account access key,&lt;/b&gt;&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;fxt-tabs-inner&quot; data-bind=&quot;&amp;quot;untrustedContent&amp;quot;:$data&quot; style=&quot;background-color: white; color: #323130; font-family: az_ea_font, &amp;quot;Segoe UI&amp;quot;, az_font, system-ui, -apple-system, system-ui, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;div data-bind=&quot;text: helpText&quot; style=&quot;font-weight: inherit;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;blockquote&gt;&lt;div class=&quot;fxt-tabs-inner&quot; data-bind=&quot;&amp;quot;untrustedContent&amp;quot;:$data&quot; style=&quot;background-color: white; color: #323130; font-family: az_ea_font, &amp;quot;Segoe UI&amp;quot;, az_font, system-ui, -apple-system, system-ui, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;div data-bind=&quot;text: helpText&quot; style=&quot;font-weight: inherit;&quot;&gt;Use access keys to authenticate your applications when making requests to this Azure storage account. Store your access keys securely - for example, using Azure Key Vault - and don&#39;t share them. We recommend regenerating your access keys regularly. You are provided two access keys so that you can maintain connections using one key while regenerating the other.&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;fxt-tabs-inner&quot; data-bind=&quot;&amp;quot;untrustedContent&amp;quot;:$data&quot; style=&quot;background-color: white; color: #323130; font-family: az_ea_font, &amp;quot;Segoe UI&amp;quot;, az_font, system-ui, -apple-system, system-ui, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;div style=&quot;font-weight: inherit; margin-bottom: 20px;&quot;&gt;&lt;span data-bind=&quot;text: text, visible: text&quot; style=&quot;font-weight: inherit; margin-right: 5px;&quot;&gt;When you regenerate your access keys, you must update any Azure resources and applications that access this storage account to use the new keys. This action will not interrupt access to disks from your virtual machines&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;span style=&quot;background-color: #fef0f1; color: #323130; font-family: az_ea_font, &amp;quot;Segoe UI&amp;quot;, az_font, system-ui, -apple-system, system-ui, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 12px; white-space: pre-wrap;&quot;&gt;Kerberos&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #fef0f1; color: #323130; font-family: az_ea_font, &amp;quot;Segoe UI&amp;quot;, az_font, system-ui, -apple-system, system-ui, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 12px; white-space: pre-wrap;&quot;&gt;To give individual accounts access to the file share (Kerberos), enable identity-based authentication for the storage account. &lt;/span&gt;&lt;a aria-label=&quot;Learn more&quot; href=&quot;https://aka.ms/FilesAAD&quot; style=&quot;background-color: #fef0f1; color: #106ebe; font-family: az_ea_font, &amp;quot;Segoe UI&amp;quot;, az_font, system-ui, -apple-system, system-ui, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 12px; text-decoration-line: none; white-space: pre-wrap;&quot; target=&quot;_blank&quot;&gt;Learn more&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;fxt-tabs-inner&quot; data-bind=&quot;&amp;quot;untrustedContent&amp;quot;:$data&quot; style=&quot;background-color: white; color: #323130; font-family: az_ea_font, &amp;quot;Segoe UI&amp;quot;, az_font, system-ui, -apple-system, system-ui, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;div style=&quot;font-weight: inherit; margin-bottom: 20px;&quot;&gt;&lt;span data-bind=&quot;text: text, visible: text&quot; style=&quot;font-weight: inherit; margin-right: 5px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;em style=&quot;background-color: white; box-sizing: inherit; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px; outline-color: inherit;&quot;&gt;&lt;br /&gt;&lt;/em&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px;&quot;&gt;You can also configure rules to grant access to traffic from select public internet IP address ranges, enabling connections from specific internet or on-premises clients.&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/storage/common/storage-network-security#grant-access-from-an-internet-ip-range&quot;&gt;https://docs.microsoft.com/en-us/azure/storage/common/storage-network-security#grant-access-from-an-internet-ip-range&lt;/a&gt;&lt;/div&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px;&quot;&gt;Configure Connection String for an Azure Storage Account&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px;&quot;&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string?toc=/azure/storage/files/toc.json#configure-a-connection-string-for-an-azure-storage-account&quot;&gt;https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string?toc=/azure/storage/files/toc.json#configure-a-connection-string-for-an-azure-storage-account&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #e2daf1; font-family: &amp;quot;Segoe UI&amp;quot;, SegoeUI, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;&lt;font color=&quot;#0b8043&quot;&gt;Using HTTPS with a SAS is recommended as a best practice.&lt;/font&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #e2daf1; color: #171717; font-family: &amp;quot;Segoe UI&amp;quot;, SegoeUI, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px;&quot;&gt;&lt;b&gt;Service SAS Example&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #e2daf1; color: #171717; font-family: &amp;quot;Segoe UI&amp;quot;, SegoeUI, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string?toc=/azure/storage/files/toc.json#service-sas-example&quot;&gt;https://docs.microsoft.com/en-us/azure/storage/common/storage-configure-connection-string?toc=/azure/storage/files/toc.json#service-sas-example&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;Limiting SAS Token Permissions&lt;/h3&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #3c484e; font-family: Georgia, serif; font-size: 22px;&quot;&gt;One reason to use a SAS token is giving access to other parties for a limited time and set of permissions.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #3c484e; font-family: Georgia, serif; font-size: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #3c484e; font-family: Georgia, serif; font-size: 22px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 1.5em; min-width: 100%; padding: 0px; vertical-align: baseline; word-break: break-word;&quot;&gt;One reason to use a SAS token is giving access to other parties for a limited time and set of permissions. The previous example generated a SAS token with full access permissions. Giving full access is not always the best-case scenario.&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #3c484e; font-family: Georgia, serif; font-size: 22px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 1.5em; min-width: 100%; padding: 0px; vertical-align: baseline; word-break: break-word;&quot;&gt;The&amp;nbsp;&lt;code style=&quot;background: rgb(229, 239, 245); border-radius: 3px; border: 0px; box-sizing: inherit; font-family: monospace, monospace; font-size: 0.8em; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1em; margin: 0px; padding: 0px 5px 2px; vertical-align: baseline; word-break: break-all;&quot;&gt;Service&lt;/code&gt;&amp;nbsp;parameter defines access to a service or services. For example, use&amp;nbsp;&lt;code style=&quot;background: rgb(229, 239, 245); border-radius: 3px; border: 0px; box-sizing: inherit; font-family: monospace, monospace; font-size: 0.8em; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1em; margin: 0px; padding: 0px 5px 2px; vertical-align: baseline; word-break: break-all;&quot;&gt;blob&lt;/code&gt;&amp;nbsp;to allow access only to the&amp;nbsp;&lt;em style=&quot;border: 0px; box-sizing: inherit; color: #090a0b; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction&quot; style=&quot;background-color: transparent; border: 0px; box-shadow: rgb(62, 176, 239) 0px -1px 0px inset; box-sizing: inherit; color: black; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline; word-break: break-word;&quot;&gt;Azure Blob Storage service&lt;/a&gt;&lt;/em&gt;. Other services include&amp;nbsp;&lt;em style=&quot;border: 0px; box-sizing: inherit; color: #090a0b; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/storage/files/storage-files-introduction&quot; style=&quot;background-color: transparent; border: 0px; box-shadow: rgb(62, 176, 239) 0px -1px 0px inset; box-sizing: inherit; color: black; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline; word-break: break-word;&quot;&gt;File&lt;/a&gt;&lt;/em&gt;,&amp;nbsp;&lt;em style=&quot;border: 0px; box-sizing: inherit; color: #090a0b; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/storage/tables/table-storage-overview&quot; style=&quot;background-color: transparent; border: 0px; box-shadow: rgb(62, 176, 239) 0px -1px 0px inset; box-sizing: inherit; color: black; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline; word-break: break-word;&quot;&gt;Table&lt;/a&gt;, and&amp;nbsp;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/storage/queues/storage-queues-introduction&quot; style=&quot;background-color: transparent; border: 0px; box-shadow: rgb(62, 176, 239) 0px -1px 0px inset; box-sizing: inherit; color: black; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline; word-break: break-word;&quot;&gt;Queue&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #3c484e; font-family: Georgia, serif; font-size: 22px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 1.5em; min-width: 100%; padding: 0px; vertical-align: baseline; word-break: break-word;&quot;&gt;The&amp;nbsp;&lt;code style=&quot;background: rgb(229, 239, 245); border-radius: 3px; border: 0px; box-sizing: inherit; font-family: monospace, monospace; font-size: 0.8em; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1em; margin: 0px; padding: 0px 5px 2px; vertical-align: baseline; word-break: break-all;&quot;&gt;ResourceType&lt;/code&gt;&amp;nbsp;parameter limits access to specific types of resources. Using the&amp;nbsp;&lt;code style=&quot;background: rgb(229, 239, 245); border-radius: 3px; border: 0px; box-sizing: inherit; font-family: monospace, monospace; font-size: 0.8em; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1em; margin: 0px; padding: 0px 5px 2px; vertical-align: baseline; word-break: break-all;&quot;&gt;container&lt;/code&gt;&amp;nbsp;as a value, for example, permits access to container resources only. Other valid resource types&amp;nbsp;&lt;em style=&quot;border: 0px; box-sizing: inherit; color: #090a0b; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Service&lt;/em&gt;&amp;nbsp;and&amp;nbsp;&lt;em style=&quot;border: 0px; box-sizing: inherit; color: #090a0b; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Object&lt;/em&gt;.&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #3c484e; font-family: Georgia, serif; font-size: 22px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 1.5em; min-width: 100%; padding: 0px; vertical-align: baseline; word-break: break-word;&quot;&gt;The&amp;nbsp;&lt;code style=&quot;background: rgb(229, 239, 245); border-radius: 3px; border: 0px; box-sizing: inherit; font-family: monospace, monospace; font-size: 0.8em; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1em; margin: 0px; padding: 0px 5px 2px; vertical-align: baseline; word-break: break-all;&quot;&gt;Permission&lt;/code&gt;&amp;nbsp;parameter allows you to define allowed permissions. Specify one or more permissions as needed. The value of&amp;nbsp;&lt;code style=&quot;background: rgb(229, 239, 245); border-radius: 3px; border: 0px; box-sizing: inherit; font-family: monospace, monospace; font-size: 0.8em; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: 1em; margin: 0px; padding: 0px 5px 2px; vertical-align: baseline; word-break: break-all;&quot;&gt;rwd&lt;/code&gt;&amp;nbsp;is equal to giving&amp;nbsp;&lt;em style=&quot;border: 0px; box-sizing: inherit; color: #090a0b; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;read&lt;/em&gt;,&amp;nbsp;&lt;em style=&quot;border: 0px; box-sizing: inherit; color: #090a0b; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;write&lt;/em&gt;&amp;nbsp;and&amp;nbsp;&lt;em style=&quot;border: 0px; box-sizing: inherit; color: #090a0b; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;delete&lt;/em&gt;&amp;nbsp;permissions. Other valid permission values are&amp;nbsp;&lt;em style=&quot;border: 0px; box-sizing: inherit; color: #090a0b; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(l)ist&lt;/em&gt;,&amp;nbsp;&lt;em style=&quot;border: 0px; box-sizing: inherit; color: #090a0b; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(a)dd&lt;/em&gt;,&amp;nbsp;&lt;em style=&quot;border: 0px; box-sizing: inherit; color: #090a0b; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(u)pdate&lt;/em&gt;, and&amp;nbsp;&lt;em style=&quot;border: 0px; box-sizing: inherit; color: #090a0b; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(p)rocess.&lt;/em&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #3c484e; font-family: Georgia, serif; font-size: 22px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 1.5em; min-width: 100%; padding: 0px; vertical-align: baseline; word-break: break-word;&quot;&gt;&lt;em style=&quot;border: 0px; box-sizing: inherit; color: #090a0b; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;/em&gt;&lt;/p&gt;&lt;h3&gt;Use your file Share&lt;/h3&gt;&lt;p style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #3c484e; font-family: Georgia, serif; font-size: 22px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 1.5em; min-width: 100%; padding: 0px; vertical-align: baseline; word-break: break-word;&quot;&gt;&lt;em style=&quot;border: 0px; box-sizing: inherit; color: #090a0b; font-family: inherit; font-stretch: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-cli#use-your-azure-file-share&quot;&gt;https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-cli#use-your-azure-file-share&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;Additional Notes&lt;/h1&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;div style=&quot;font-size: medium; font-weight: 400;&quot;&gt;&lt;/div&gt;&lt;/h2&gt;&lt;h2&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/storage/files/storage-files-introduction&quot; style=&quot;font-size: medium; font-weight: 400;&quot;&gt;Azure file shares&lt;/a&gt;&lt;span style=&quot;font-size: medium; font-weight: 400;&quot;&gt;&amp;nbsp;with the Azure Storage Explorer.&lt;/span&gt;&lt;/h2&gt;&lt;h2&gt;Azure Storage Explorer&lt;/h2&gt;&lt;h2&gt;&lt;div style=&quot;font-size: medium; font-weight: 400;&quot;&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px;&quot;&gt;&lt;blockquote&gt;The Azure Storage Explorer is a popular client tool that&#39;s available for Windows, macOS, and Linux. You can use Storage Explorer to manage Azure file shares and other storage resources. Storage Explorer to be installed. (&lt;a href=&quot;https://azure.microsoft.com/features/storage-explorer/)&quot; style=&quot;background-color: transparent;&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#171717&quot; face=&quot;Segoe UI, SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif&quot;&gt;https://azure.microsoft.com/features/storage-explorer/&lt;/font&gt;&lt;span style=&quot;color: #171717;&quot;&gt;)&lt;/span&gt;&lt;/a&gt;&lt;/blockquote&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/h2&gt;&lt;h2&gt;SMB Protocol&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px;&quot;&gt;Azure File shares support the industry standard SMB protocol&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #171717; font-family: &amp;quot;segoe ui&amp;quot;, segoeui, &amp;quot;helvetica neue&amp;quot;, helvetica, arial, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span style=&quot;background-color: white; color: #6c6c6c; font-family: arial, sans-serif; font-size: 17px;&quot;&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style=&quot;background-color: white; color: #6c6c6c; font-family: arial, sans-serif; font-size: 17px;&quot;&gt;The Server Message Block Protocol (SMB protocol) is a&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://searchwindowsserver.techtarget.com/definition/client-server-network&quot; style=&quot;background-color: white; color: #00b3ac; font-family: Arial, sans-serif; font-size: 17px; transition: color 0.2s ease 0s;&quot;&gt;client-server&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #6c6c6c; font-family: arial, sans-serif; font-size: 17px;&quot;&gt;&amp;nbsp;communication protocol used for sharing access to files, printers, serial ports and other resources on a network.&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;Shared Access Signature&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #3c484e; font-family: Georgia, serif; font-size: 22px;&quot;&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style=&quot;background-color: white; color: #3c484e; font-family: Georgia, serif; font-size: 22px;&quot;&gt;There are a few different ways you can delegate access to resources in Azure. One way is via a&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;background-color: white; border: 0px; box-sizing: inherit; color: #090a0b; font-family: Georgia, serif; font-size: 22px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview&quot; style=&quot;background-color: transparent; border: 0px; box-shadow: rgb(62, 176, 239) 0px -1px 0px inset; box-sizing: inherit; color: black; font-family: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline; word-break: break-word;&quot;&gt;Shared Access Signature (SAS)&lt;/a&gt;&lt;/em&gt;&lt;span style=&quot;background-color: white; color: #3c484e; font-family: Georgia, serif; font-size: 22px;&quot;&gt;&amp;nbsp;token. A SAS token is a way to granularly control how a client can access Azure data. You can control many things such as what resources the client can access, what permission the client has, how long the token is valid for and more.&lt;/span&gt;&lt;/blockquote&gt;&lt;span style=&quot;background-color: white; color: #3c484e; font-family: Georgia, serif; font-size: 22px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Reference&lt;/b&gt;:&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/embed/6E2p28XwovU&quot;&gt;https://www.youtube.com/embed/6E2p28XwovU&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://searchnetworking.techtarget.com/definition/Server-Message-Block-Protocol&quot;&gt;https://searchnetworking.techtarget.com/definition/Server-Message-Block-Protocol&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/azure/storage/common/storage-network-security#scenarios&quot;&gt;https://docs.microsoft.com/en-us/azure/storage/common/storage-network-security#scenarios&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://adamtheautomator.com/azure-sas-token/&quot;&gt;https://adamtheautomator.com/azure-sas-token/&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/718506039682788564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/718506039682788564' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/718506039682788564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/718506039682788564'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/06/azure-file-share.html' title='Azure File Share '/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-2687276784478876617</id><published>2020-06-02T07:49:00.001-04:00</published><updated>2020-06-02T07:49:40.383-04:00</updated><title type='text'>Azure - Managed Identities (Notes)</title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;What it is? Where does it belong?&lt;/h1&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; caret-color: rgb(23, 23, 23); color: #171717; font-family: &amp;quot;Segoe UI&amp;quot;, SegoeUI, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; text-size-adjust: auto;&quot;&gt;The managed identities for Azure resources is a feature in Azure Active Directory (Azure AD).&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; caret-color: rgb(23, 23, 23); color: #171717; font-family: &amp;quot;Segoe UI&amp;quot;, SegoeUI, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; text-size-adjust: auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; caret-color: rgb(23, 23, 23); color: #171717; font-family: &amp;quot;Segoe UI&amp;quot;, SegoeUI, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; text-size-adjust: auto;&quot;&gt;No available for all Azure Services.&lt;/span&gt;&lt;/div&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;What problem it solves?&lt;/h1&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; caret-color: rgb(23, 23, 23); color: #171717; font-family: &amp;quot;Segoe UI&amp;quot;, SegoeUI, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px; text-size-adjust: auto;&quot;&gt;The feature provides Azure services with an automatically managed identity in Azure AD. You can use the identity to authenticate to any service that supports Azure AD authentication, including Key Vault, without any credentials in your code.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/2687276784478876617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/2687276784478876617' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/2687276784478876617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/2687276784478876617'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/06/azure-managed-identities-notes.html' title='Azure - Managed Identities (Notes)'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-8772278001913437783</id><published>2020-06-01T08:26:00.001-04:00</published><updated>2020-06-01T08:26:33.855-04:00</updated><title type='text'>AKS - ACR (Talk to each other)</title><content type='html'>&lt;h1 style=&quot;text-align: left;&quot;&gt;Objective&lt;/h1&gt;&lt;div&gt;Allow the AKS to connect to ACR&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;Summary Steps (via az aks update command)&lt;/h1&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Create a Cluster by name &#39;demo&#39; in the resource group &#39;demo&#39;&amp;nbsp;&lt;/div&gt;&lt;div&gt;Create a&amp;nbsp; ACR &#39;&lt;span style=&quot;color: #d52c1f; font-family: times;&quot;&gt;demoregistry01&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Use the below command&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #f4c7c3;&quot;&gt;&lt;span style=&quot;font-family: calibri;&quot;&gt;az aks update -n &lt;/span&gt;&lt;span style=&quot;color: #d52c1f; font-family: calibri;&quot;&gt;demo&lt;/span&gt;&lt;span style=&quot;font-family: calibri;&quot;&gt; -g &lt;/span&gt;&lt;span style=&quot;color: #b51200; font-family: calibri;&quot;&gt;demo&lt;/span&gt;&lt;span style=&quot;font-family: calibri;&quot;&gt; --attach-acr&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #d52c1f; font-family: times;&quot;&gt;demoregistry01&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: times;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: times;&quot;&gt;It m&lt;/span&gt;&lt;/span&gt;&lt;i style=&quot;font-family: calibri; font-size: large;&quot;&gt;akes sure Cluster (demo) in resource group (demo) can talk to &lt;/i&gt;&lt;span style=&quot;font-family: calibri; font-size: medium;&quot;&gt;&lt;i&gt;azure container registry -&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: medium;&quot;&gt;demoregistry01&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h1&gt;&lt;br /&gt;&lt;/h1&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/8772278001913437783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/8772278001913437783' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/8772278001913437783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/8772278001913437783'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/06/aks-create-cluster.html' title='AKS - ACR (Talk to each other)'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-4389149897997002380</id><published>2020-05-25T20:54:00.001-04:00</published><updated>2020-05-25T20:54:06.435-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="helm"/><title type='text'>Helm - Hello World</title><content type='html'>&lt;font size=&quot;4&quot;&gt;&lt;a href=&quot;https://learning.oreilly.com/scenarios/kubernetes-pipelines-helm/9781492078968/?sfmc_id=137030306%26utm_medium%3Demail%26utm_source%3Dplatform%2Bb2b%26utm_campaign%3Dengagement%26utm_content%3Dwhats%2Bnew%2Binteractive%2B20200525&quot; target=&quot;_blank&quot;&gt;Source&lt;/a&gt;&lt;/font&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;b&gt;Install&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;brew install bash (it will upgrade the bash to latest version as well on mac)&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;brew install watch. (&lt;/font&gt;&lt;a href=&quot;https://stackoverflow.com/questions/9574089/osx-bash-watch-command&quot;&gt;https://stackoverflow.com/questions/9574089/osx-bash-watch-command&lt;/a&gt;)&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;font size=&quot;4&quot;&gt;Searched what is available?&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#3367d6&quot; size=&quot;4&quot;&gt;helm search repo redis&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;b&gt;Found&lt;/b&gt;&lt;font color=&quot;#3367d6&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;font color=&quot;#3367d6&quot; size=&quot;4&quot;&gt;stable/redis-ha&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;font size=&quot;4&quot;&gt;Create&amp;nbsp; a name space&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#3367d6&quot; size=&quot;4&quot;&gt;kubectl create namespace redis&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;font size=&quot;4&quot;&gt;Install what we have found&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#3367d6&quot; size=&quot;4&quot;&gt;helm install my-redis stable/redis-ha --namespace redis&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;font size=&quot;4&quot;&gt;Search the deployment in the namespace&lt;/font&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;font color=&quot;#3367d6&quot; size=&quot;4&quot;&gt;helm list --namespace redis&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;font color=&quot;#3367d6&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;font color=&quot;#3367d6&quot; face=&quot;Menlo&quot; size=&quot;4&quot;&gt;watch kubectl get deployments,pods,services -n redis&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;font color=&quot;#3367d6&quot; face=&quot;Menlo&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;font face=&quot;Menlo&quot; size=&quot;4&quot;&gt;&lt;b&gt;Uninstall&amp;nbsp;&lt;/b&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;font color=&quot;#3367d6&quot; size=&quot;4&quot;&gt;helm delete my-redis --namespace redis&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;font color=&quot;#3367d6&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;font color=&quot;#3367d6&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;font color=&quot;#3367d6&quot; size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #3d3b49; caret-color: rgb(255, 255, 255); color: white; font-family: sfmono-regular, Consolas, &amp;quot;liberation mono&amp;quot;, Menlo, Courier, monospace; text-size-adjust: auto; white-space: pre-wrap;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #3d3b49; caret-color: rgb(255, 255, 255); color: white; font-family: sfmono-regular, Consolas, &amp;quot;liberation mono&amp;quot;, Menlo, Courier, monospace; text-size-adjust: auto; white-space: pre-wrap;&quot;&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #3d3b49; caret-color: rgb(255, 255, 255); color: white; font-family: sfmono-regular, Consolas, &amp;quot;liberation mono&amp;quot;, Menlo, Courier, monospace; font-size: 15.84px; text-size-adjust: auto; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/4389149897997002380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/4389149897997002380' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/4389149897997002380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/4389149897997002380'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/05/helm-hello-world_25.html' title='Helm - Hello World'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-140661137109664959</id><published>2020-05-25T12:22:00.000-04:00</published><updated>2020-05-25T12:22:30.710-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="kubernetes"/><title type='text'>Ingress Controller - Reading Notes</title><content type='html'>&lt;div&gt;&lt;font face=&quot;Roboto, sans-serif&quot;&gt;&lt;span style=&quot;letter-spacing: 0.1px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;h1 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-family: Roboto, sans-serif; font-weight: normal;&quot;&gt;&lt;font size=&quot;6&quot;&gt;General Terminology&lt;/font&gt;&lt;/span&gt;&lt;/h1&gt;&lt;ul style=&quot;background: none rgb(255, 255, 255); border: 0px; box-sizing: border-box; font-family: Roboto, sans-serif; font-size: 14px; list-style: none; margin: 20px 0px; padding: 0px 0px 0px 30px;&quot;&gt;&lt;li style=&quot;background: none; border: 0px; box-sizing: border-box; font-size: 16px; line-height: 1.75em; list-style: disc; margin: 0px 0px 0.75em;&quot;&gt;&lt;b&gt;Node&lt;/b&gt;: A worker machine in Kubernetes, part of a cluster.&lt;/li&gt;&lt;li style=&quot;background: none; border: 0px; box-sizing: border-box; font-size: 16px; line-height: 1.75em; list-style: disc; margin: 0px 0px 0.75em;&quot;&gt;&lt;b&gt;Cluster&lt;/b&gt;: A set of Nodes that run containerized applications managed by Kubernetes. For this example, and in most common Kubernetes deployments, nodes in the cluster are not part of the public internet.&lt;/li&gt;&lt;li style=&quot;background: none; border: 0px; box-sizing: border-box; font-size: 16px; line-height: 1.75em; list-style: disc; margin: 0px 0px 0.75em;&quot;&gt;&lt;b&gt;Edge router&lt;/b&gt;: A router that enforces the firewall policy for your cluster. This could be a gateway managed by a cloud provider or a physical piece of hardware.&lt;/li&gt;&lt;li style=&quot;background: none; border: 0px; box-sizing: border-box; font-size: 16px; line-height: 1.75em; list-style: disc; margin: 0px 0px 0.75em;&quot;&gt;&lt;b&gt;Cluster network&lt;/b&gt;: A set of links, logical or physical, that facilitate communication within a cluster according to the Kubernetes&amp;nbsp;&lt;a href=&quot;https://kubernetes.io/docs/concepts/cluster-administration/networking/&quot; style=&quot;background: none; border: 0px; box-sizing: border-box; margin: 0px; text-decoration-line: none;&quot;&gt;networking model&lt;/a&gt;.&lt;/li&gt;&lt;li style=&quot;background: none; border: 0px; box-sizing: border-box; font-size: 16px; line-height: 1.75em; list-style: disc; margin: 0px 0px 0.75em;&quot;&gt;&lt;b&gt;Service&lt;/b&gt;: A Kubernetes&amp;nbsp;&lt;a class=&quot;glossary-tooltip&quot; href=&quot;https://kubernetes.io/docs/concepts/services-networking/service/&quot; style=&quot;background: none; border-bottom-color: black; border-bottom-style: dotted; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: border-box; color: black; display: inline-block; margin: 0px; position: relative; text-decoration-line: none !important;&quot; target=&quot;_blank&quot;&gt;Service&lt;span class=&quot;tooltip-text&quot; style=&quot;background: none rgb(85, 85, 85); border-radius: 6px; border: 0px; bottom: 35px; box-sizing: border-box; color: white; left: 25.5312px; margin: 0px 0px 0px -150px; opacity: 0; padding: 5px 8px; position: absolute; text-align: center; transition: opacity 0.3s ease 0s; visibility: hidden; width: 300px; z-index: 1;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&amp;nbsp;that identifies a set of Pods using&amp;nbsp;&lt;a class=&quot;glossary-tooltip&quot; href=&quot;https://kubernetes.io/docs/concepts/overview/working-with-objects/labels&quot; style=&quot;background: none; border-bottom-color: black; border-bottom-style: dotted; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: border-box; color: black; display: inline-block; margin: 0px; position: relative; text-decoration-line: none !important;&quot; target=&quot;_blank&quot;&gt;label&lt;span class=&quot;tooltip-text&quot; style=&quot;background: none rgb(85, 85, 85); border-radius: 6px; border: 0px; bottom: 35px; box-sizing: border-box; color: white; left: 16.4375px; margin: 0px 0px 0px -150px; opacity: 0; padding: 5px 8px; position: absolute; text-align: center; transition: opacity 0.3s ease 0s; visibility: hidden; width: 300px; z-index: 1;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&amp;nbsp;selectors. Unless mentioned otherwise, Services are assumed to have virtual IPs only routable within the cluster network.&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h1&gt;&lt;font face=&quot;Roboto, sans-serif&quot; size=&quot;6&quot;&gt;&lt;span style=&quot;font-weight: 400;&quot;&gt;Ingress - Ingress Resource and Ingress Controller&lt;/span&gt;&lt;/font&gt;&lt;/h1&gt;&lt;div&gt;&lt;font face=&quot;Roboto, sans-serif&quot; size=&quot;6&quot;&gt;&lt;span style=&quot;font-weight: 400;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;background: none rgb(255, 255, 255); border: 0px; box-sizing: border-box; font-family: Roboto, sans-serif; font-size: 16px; letter-spacing: 0.1px; line-height: 1.75em; margin: 0px;&quot;&gt;&lt;a href=&quot;https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#ingress-v1beta1-networking-k8s-io&quot; style=&quot;background: none; border: 0px; box-sizing: border-box; margin: 0px; text-decoration-line: none;&quot;&gt;Ingress&lt;/a&gt;&amp;nbsp;exposes HTTP and HTTPS routes from outside the cluster to&amp;nbsp;&lt;a href=&quot;https://kubernetes.io/docs/concepts/services-networking/service/&quot; style=&quot;background: none; border: 0px; box-sizing: border-box; margin: 0px; text-decoration-line: none;&quot; target=&quot;_blank&quot;&gt;services&lt;/a&gt;&amp;nbsp;within the cluster. Traffic routing is controlled by rules defined on the Ingress resource.&lt;/p&gt;&lt;pre style=&quot;background: none rgb(247, 247, 247); border: 0px; box-sizing: border-box; font-family: Roboto, sans-serif; font-size: 14px; margin-bottom: 20px; margin-top: 20px; overflow-x: auto; padding: 15px; position: relative;&quot;&gt;&lt;code class=&quot;language-none&quot; data-lang=&quot;none&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: none; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 0px; box-sizing: border-box; color: #303030; display: inline-block; font-family: &amp;quot;Roboto Mono&amp;quot;, monospace; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;    internet
        |
   [ Ingress ]
   --|-----|--
   [ Services ]
&lt;/code&gt;&lt;/pre&gt;&lt;p style=&quot;background: none rgb(255, 255, 255); border: 0px; box-sizing: border-box; font-family: Roboto, sans-serif; font-size: 16px; letter-spacing: 0.1px; line-height: 1.75em; margin: 0px;&quot;&gt;An Ingress may be configured to give Services externally-reachable URLs, load balance traffic, terminate SSL / TLS, and offer name based virtual hosting. An&amp;nbsp;&lt;a href=&quot;https://kubernetes.io/docs/concepts/services-networking/ingress-controllers&quot; style=&quot;background: none; border: 0px; box-sizing: border-box; margin: 0px; text-decoration-line: none;&quot;&gt;Ingress controller&lt;/a&gt;&amp;nbsp;is responsible for fulfilling the Ingress, usually with a load balancer, though it may also configure your edge router or additional frontends to help handle the traffic.&lt;/p&gt;&lt;p style=&quot;background: none rgb(255, 255, 255); border: 0px; box-sizing: border-box; font-family: Roboto, sans-serif; font-size: 16px; letter-spacing: 0.1px; line-height: 1.75em; margin: 10px 0px 0px;&quot;&gt;An Ingress does not expose arbitrary ports or protocols. Exposing services other than HTTP and HTTPS to the internet typically uses a service of type&amp;nbsp;&lt;a href=&quot;https://kubernetes.io/docs/concepts/services-networking/service/#nodeport&quot; style=&quot;background: none; border: 0px; box-sizing: border-box; margin: 0px; text-decoration-line: none;&quot;&gt;Service.Type=NodePort&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href=&quot;https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer&quot; style=&quot;background: none; border: 0px; box-sizing: border-box; margin: 0px; text-decoration-line: none;&quot;&gt;Service.Type=LoadBalancer&lt;/a&gt;.&lt;/p&gt;&lt;p style=&quot;background: none rgb(255, 255, 255); border: 0px; box-sizing: border-box; font-family: Roboto, sans-serif; font-size: 16px; letter-spacing: 0.1px; line-height: 1.75em; margin: 10px 0px 0px;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;References:&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;&lt;a href=&quot;https://kubernetes.io/docs/concepts/services-networking/ingress/&quot;&gt;https://kubernetes.io/docs/concepts/services-networking/ingress/&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/140661137109664959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/140661137109664959' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/140661137109664959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/140661137109664959'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/05/ingress-controller-reading-notes.html' title='Ingress Controller - Reading Notes'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-8873966516853482542</id><published>2020-05-24T15:41:00.005-04:00</published><updated>2020-06-01T08:08:24.520-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="azure"/><category scheme="http://www.blogger.com/atom/ns#" term="kubernetes"/><title type='text'>Hello world - Kubernetes - AKS </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Objective&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Run a hello world spring boot application in AKS cluster.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Use Pods, Services and Deployment&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Tools&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;portal.azure.com - Create Free account&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;AKS&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Create Cluster - &lt;span style=&quot;color: #d52c1f;&quot;&gt;demo&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Azure Registry -&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #d52c1f;&quot;&gt;demoregistry01&lt;/span&gt;.azurecr.io&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Resource Group - &lt;span style=&quot;color: #d52c1f;&quot;&gt;demo&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Make sure Cluster can talk to registry (see in below sections)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Install Homebrew&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;brew install maven (your java spring boot pacakging / dependency management)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;brew install azure-cli (need to connect to azure)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;brew install kubectl (so that you can use kubernetes command)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;brew install helm (packaging tool)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;brew install kubectx (Tool that can switch between kubectl contexts easily and create aliases)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;h2&gt;
&lt;span style=&quot;font-family: calibri;&quot;&gt;&lt;span style=&quot;font-weight: 400;&quot;&gt;Prepare Spring Boot Sample App&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Download Sample Sprin&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;g boot maven -&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;run&lt;/span&gt;&lt;span style=&quot;color: #d52c1f; font-size: medium;&quot;&gt; mvn package&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Run &lt;span style=&quot;color: #d52c1f;&quot;&gt;mvn spring-boot:run&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #d52c1f; font-size: large;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;curl -v http://localhost:8080/greetings/&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Spring Boot - Add Dockerfile&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Add simple docker example.&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Refer&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;-&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://spring.io/guides/topicals/spring-boot-docker&quot;&gt;https://spring.io/guides/topicals/spring-boot-docker&lt;/a&gt;&amp;nbsp;for&amp;nbsp;&lt;span style=&quot;color: #d52c1f;&quot;&gt;Dockerfile&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;color: #d52c1f; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;color: #d52c1f;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Not verifying if Dockerized properly here.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;color: #d52c1f; font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;you can try docker build , docker run&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;Create docker image via azure and move to acr&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;





&lt;!--StartFragment--&gt;

&lt;/span&gt;&lt;div style=&quot;font-family: calibri; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;build the docker
image with tag aksdemo:v2 and move to azure container registry&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: calibri; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;&lt;span style=&quot;color: #b51200;&quot;&gt;az acr build -t aksdemo:v2 . -r demoregistry01&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;!--EndFragment--&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;color: #b51200; font-family: calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;div style=&quot;font-family: calibri; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;Go to the azure and validate that the image has been uploaded or try&amp;nbsp;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0b8043;&quot;&gt;&lt;span style=&quot;font-family: consolas;&quot;&gt;az acr repository list --name&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: calibri;&quot;&gt;demoregistry01&lt;/span&gt;&lt;span style=&quot;font-family: consolas;&quot;&gt;&amp;nbsp;--output table&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #242729; font-family: consolas;&quot;&gt;&amp;nbsp;(list the images in your registry)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h2&gt;
&lt;span style=&quot;font-family: calibri;&quot;&gt;&lt;span style=&quot;font-weight: 400;&quot;&gt;Azure Deployment Readiness&lt;/span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;az login (logged in to azure)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;






&lt;div style=&quot;font-family: calibri; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;az aks get-credentials&amp;nbsp; -n demo --resource-group demo (&lt;i&gt;connect to the aks cluster whose name is demo and that is present under the resource group demo&lt;/i&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;div style=&quot;font-family: calibri; margin: 0in;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;






&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;font-family: calibri; margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;az aks update -n &lt;span style=&quot;color: #d52c1f;&quot;&gt;demo&lt;/span&gt; -g &lt;span style=&quot;color: #b51200;&quot;&gt;demo&lt;/span&gt; --attach-acr&amp;nbsp;&lt;span style=&quot;color: #d52c1f; font-family: times;&quot;&gt;demoregistry01 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;&lt;pre style=&quot;margin: 0in;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: times;&quot;&gt;It m&lt;/span&gt;&lt;/span&gt;&lt;i style=&quot;font-family: calibri; font-size: large;&quot;&gt;akes sure Cluster (demo) in resource group (demo) can talk to&lt;/i&gt;&lt;span style=&quot;font-family: calibri; font-size: medium;&quot;&gt;&lt;i&gt;azure container registry -&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;font-family: calibri; font-size: medium;&quot;&gt;demoregistry01&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: calibri;&quot;&gt;Kubernetes&lt;/span&gt;&lt;/h2&gt;
&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: calibri;&quot;&gt;Create Pod&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;span style=&quot;font-family: calibri;&quot;&gt;Create a pod.yaml under kubernetes folder file.&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://gist.github.com/toneeraj/ef32dcde8bb13829d31200fd8f68ea2c&quot;&gt;https://gist.github.com/toneeraj/ef32dcde8bb13829d31200fd8f68ea2c&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;font size=&quot;4&quot;&gt;kubectl apply -f kubernetes/pod.yaml (tell aks to create pods)&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;&lt;font size=&quot;4&quot;&gt;
&lt;/font&gt;&lt;li&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;font size=&quot;4&quot;&gt;kubectl get pods (see if it got created)&lt;/font&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/ul&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: calibri;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Create Service&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: calibri;&quot;&gt;&lt;span style=&quot;font-size: large; font-weight: normal;&quot;&gt;Create a service.yaml under kubernetes folder&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;font-family: calibri;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Refer&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://gist.github.com/toneeraj/f6597125d025cace673860b5f30f7480&quot;&gt;https://gist.github.com/toneeraj/f6597125d025cace673860b5f30f7480&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Tell aks to create service&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;






&lt;div style=&quot;font-family: calibri; margin: 0in;&quot;&gt;
&lt;!--StartFragment--&gt;&lt;span style=&quot;font-size: large;&quot;&gt;kubectl
apply -f kubernetes/service.yaml&lt;!--EndFragment--&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: calibri; font-size: large;&quot;&gt;kubectl get services (should tell you the External IP)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: calibri; font-size: large;&quot;&gt;Test the application&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: calibri; font-size: large;&quot;&gt;curl -v http://52.142.17.162/greetings/&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: calibri; font-size: large;&quot;&gt;&lt;b&gt;Create Deployment&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: calibri; font-size: large;&quot;&gt;Create a deploment.yaml under kubernetes folder&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: calibri; font-size: large;&quot;&gt;Refer&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://gist.github.com/toneeraj/cbeabda69440ad7240fdc902b6eaab3c&quot;&gt;https://gist.github.com/toneeraj/cbeabda69440ad7240fdc902b6eaab3c&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Tell aks to create deployment&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;kubectl apply -f kubernetes/deployment.yaml&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;li&gt;&lt;font size=&quot;4&quot;&gt;Check the deployment&lt;/font&gt;&lt;/li&gt;&lt;ul&gt;&lt;li&gt;&lt;font size=&quot;4&quot;&gt;kubectl get deployments&lt;/font&gt;&lt;/li&gt;&lt;/ul&gt;&lt;li&gt;&lt;font size=&quot;4&quot;&gt;Update the replica to 4 and then once again run the&amp;nbsp;&lt;/font&gt;kubectl apply -f kubernetes/deployment.yaml&lt;/li&gt;&lt;li&gt;Check the logs of deployment&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs&quot;&gt;https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs&lt;/a&gt;&lt;/li&gt;&lt;li&gt;kubectl logs -f deployment/aksdemo (&lt;i&gt;returns logs of a deployment aksdemo)&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;b&gt;Source Code&lt;/b&gt;:&amp;nbsp;&lt;/i&gt;&lt;a href=&quot;https://github.com/toneeraj/aks-boot-demo&quot;&gt;https://github.com/toneeraj/aks-boot-demo&lt;/a&gt;&lt;/div&gt;
&lt;script src=&quot;https://gist.github.com/toneeraj/ef32dcde8bb13829d31200fd8f68ea2c.js&quot;&gt;&lt;/script&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/8873966516853482542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/8873966516853482542' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/8873966516853482542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/8873966516853482542'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/05/hello-world-kubernetes-aks.html' title='Hello world - Kubernetes - AKS '/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-3867232140560582580</id><published>2020-05-18T18:20:00.001-04:00</published><updated>2020-05-18T18:20:59.096-04:00</updated><title type='text'>PostConstruct &amp; PreDestroy</title><content type='html'>&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Unlike a regular Java class used in application code, the server manages the lifecycle of a stateless session bean. The server decides when to create and remove bean instances and has to initialize the services for a bean instance after it is constructed, but before the business logic of the bean is invoked. Likewise, the bean might have to acquire a resource, such as a JDBC data source, before business methods can be used. However, in order for the bean to acquire a resource, the server must first have completed initializing its services for the bean. This limits the usefulness of the constructor for the class because the bean won’t have access to any resources until server initialization has completed.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;To allow both the server and the bean to achieve their initialization requirements, EJBs support lifecycle callback methods that are invoked by the server at various points in the bean’s lifecycle. For stateless session beans, there are two lifecycle callbacks: PostConstruct and PreDestroy. The server will invoke the PostConstruct callback as soon as it has completed initializing all the container services for the bean. In effect, this replaces the constructor as the location for initialization logic because it is only here that container services are guaranteed to be available. The server invokes the PreDestroy callback immediately before the server releases the bean instance to be garbage-collected. Any resources acquired during &lt;b&gt;PostConstruct&lt;/b&gt; that require explicit shutdown should be released during &lt;b&gt;PreDestroy&lt;/b&gt;.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/3867232140560582580/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/3867232140560582580' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/3867232140560582580'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/3867232140560582580'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/05/postconstruct-predestroy.html' title='PostConstruct &amp; PreDestroy'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-4171580000627563023</id><published>2020-05-17T23:27:00.002-04:00</published><updated>2020-05-17T23:29:19.891-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AI"/><category scheme="http://www.blogger.com/atom/ns#" term="Machine Learning"/><category scheme="http://www.blogger.com/atom/ns#" term="study notes"/><title type='text'>Deep Learning</title><content type='html'>&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Deep Learning&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;While on its own machine learning is powerful and can be used to perform many analytical and predictive tasks, when it is combined with neural networks, we see the emergence of an even more powerful system.Deep learning systems are machine learning systems that utilize neural networks to perform machine learning. This allows for a nonlinear learning process as the neural networks are arranged in a hierarchical manner.Deep learning systems are accurate and allow artificially intelligent systems to sometimes exceed human performance. These systems utilize a lot of data and powerful computing platforms to achieve their results. These deep learning systems have a large depth of layers through which data must pass, which is to say they have more than one hidden layer.There are many applications of deep learning in everyday life. Voice recognition systems, self-driving vehicles, and medical research are just a few examples&lt;/font&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;References:&amp;nbsp;&lt;/font&gt;&lt;a href=&quot;https://learning.oreilly.com/library/view/codeless-data-structures/9781484257258/A491634_1_En_9_Chapter.html&quot;&gt;https://learning.oreilly.com/library/view/codeless-data-structures/9781484257258/A491634_1_En_9_Chapter.html&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/4171580000627563023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/4171580000627563023' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/4171580000627563023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/4171580000627563023'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/05/deep-learning.html' title='Deep Learning'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-2158111088525535982</id><published>2020-05-17T22:48:00.005-04:00</published><updated>2020-05-17T23:01:13.838-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="study notes"/><title type='text'>Weekend Reading Series - Links</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;What are Poisoned Messages and how to handle them&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://byalexblog.net/rabbitmq-poisoned-messages-handeling&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;https://byalexblog.net/rabbitmq-poisoned-messages-handeling&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Actor Model Understanding&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=ukgjQaiZDYM&amp;amp;list=PLBFo2AuqlSvKe7FckObRU1tkRBa3Hxh-s&amp;amp;index=47&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;https://www.youtube.com/watch?v=ukgjQaiZDYM&amp;amp;list=PLBFo2AuqlSvKe7FckObRU1tkRBa3Hxh-s&amp;amp;index=47&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Spring Boot REST Deferred Result Usage&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.baeldung.com/spring-deferred-result&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;https://www.baeldung.com/spring-deferred-result&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Project Estimation Tips&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://learning.oreilly.com/library/view/righting-software-a/9780136524007/ch13.xhtml#ch13&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;https://learning.oreilly.com/library/view/righting-software-a/9780136524007/ch13.xhtml#ch13&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;How to design a good API and why does it matter Video&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=aAb7hSCtvGw&amp;amp;feature=youtu.be&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;https://www.youtube.com/watch?v=aAb7hSCtvGw&amp;amp;feature=youtu.be&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/2158111088525535982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/2158111088525535982' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/2158111088525535982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/2158111088525535982'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/05/weekend-reading-series-links.html' title='Weekend Reading Series - Links'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-178851068407428159</id><published>2020-05-17T20:02:00.011-04:00</published><updated>2020-05-17T23:01:41.549-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Agile"/><category scheme="http://www.blogger.com/atom/ns#" term="architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="Design"/><title type='text'>Compell the business to instruct you to design the right architecture</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;b style=&quot;color: #3367d6; font-size: large;&quot;&gt;If you want the business people to support your architecture effort, you must demonstrate how the architecture serves the business.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;Below is to start approaching it in the below fashion.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#888&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse; border-color: rgb(136, 136, 136); border-width: 1px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;b&gt;&lt;span style=&quot;color: #0f9d58;&quot;&gt;&amp;nbsp;#order of business&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;&lt;span style=&quot;color: #0f9d58;&quot;&gt;&amp;nbsp;Short Definition&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;&lt;span style=&quot;color: #0f9d58;&quot;&gt;&amp;nbsp;An Example&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;min-width: 60px;&quot;&gt;&amp;nbsp;&lt;b&gt;Vision&lt;/b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/td&gt;&lt;td style=&quot;min-width: 60px;&quot;&gt;&amp;nbsp;W&lt;span style=&quot;font-size: large;&quot;&gt;hat the business will receive&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;min-width: 60px;&quot;&gt;&amp;nbsp;&lt;span style=&quot;font-size: large; text-align: center;&quot;&gt;A platform for building applications to support the TradeMe marketplace.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;min-width: 60px;&quot;&gt;&amp;nbsp;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Business&lt;/b&gt;&lt;/span&gt;&amp;nbsp;&lt;b&gt;Objective&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;min-width: 60px;&quot;&gt;&amp;nbsp;W&lt;span style=&quot;font-size: large;&quot;&gt;hy the business wants the vision&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;min-width: 60px;&quot;&gt;&amp;nbsp;&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;droid serif&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 16px;&quot;&gt;&lt;span style=&quot;-webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: black; font-family: times; font-size: large; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;droid serif&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 16px;&quot;&gt;Unify the repositories and applications&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: times; font-size: large; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;droid serif&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 16px;&quot;&gt;Quick turnaround for new requirements.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: times; font-size: large; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;droid serif&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 16px;&quot;&gt;Support a high degree of customization across countries and markets.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: times; font-size: large; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;droid serif&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 16px;&quot;&gt;Supports full business visibility and accountability.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: times; font-size: large; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;droid serif&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 16px;&quot;&gt;Forward looking on technology and regulations.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: times; font-size: large; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;droid serif&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 16px;&quot;&gt;Integrate well with external systems.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: black; font-family: times; font-size: large; text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;droid serif&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 16px;&quot;&gt;Streamline security.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &amp;quot;georgia&amp;quot; , &amp;quot;droid serif&amp;quot; , &amp;quot;times&amp;quot; , serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&amp;nbsp;&lt;b&gt;Mission&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&amp;nbsp;H&lt;span style=&quot;font-size: large;&quot;&gt;ow you will do it&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&amp;nbsp;Design and build a collection of software components that the development team can assemble into applications and features.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;Vision&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;The first order of business is to get all stakeholders to agree on a common vision. The vision must drive everything, from architecture to commitments. Everything that you do later has to serve that vision and be justified by it. Of course, this cuts both ways—which is why it is a good idea to start with the vision. If something does not serve the vision, then it often has to do with politics and other secondary or tertiary concerns. This provides you with an excellent way of repelling irrelevant demands that do not support the agreed-upon vision.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-size: large;&quot;&gt;A good vision is both terse and explicit. You should read it like a legal statement.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Business Objective&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;After agreeing on the vision (and only then), you can itemize the vision to specific objectives. You should reject all objectives that do not serve the vision; you should include all objectives that are essential to support the vision. These two types are usually easy to pick out. When you list objectives, you should adopt a business perspective. You must not allow the engineering or marketing people to own the conversation, or to include technology objectives or specific requirements.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;Mission&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;People are usually too mired in the details and cannot connect the dots. Thus, you should also specify a mission statement (how you will do it).&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;This mission statement deliberately does not identify developing features as the mission. The mission is not to build features—the mission is to build components. It now becomes much easier to justify volatility-based decomposition that serves the mission statement because all the dots are connected:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;blockquote&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;Vision → Objectives → Mission Statement → Architecture&lt;/span&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;In fact, you have just compelled the business to instruct you to design the right architecture. This is a reversal of the typical dynamics, in which the architect pleads with management to avoid functional decomposition.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;It is a lot easier to drive the correct architecture through the business by aligning the architecture with the business’s vision, its objectives, and the mission statement. Once you have them agree on the vision, the objectives, and then the mission statement, you have them on your side. &lt;span style=&quot;color: #3367d6;&quot;&gt;&lt;b&gt;If you want the business people to support your architecture effort, you must demonstrate how the architecture serves the business.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;Reference:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;h1 class=&quot;title t-title&quot; style=&quot;background-color: white; border: 0px; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.15em; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #404040; font-family: &amp;quot;source sans pro&amp;quot;, sans-serif; font-size: small; font-weight: 400;&quot;&gt;Righting Software: A Method for System and Project Design By&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #404040; font-family: source sans pro, sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: 400;&quot;&gt;Juval Löwy&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/178851068407428159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/178851068407428159' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/178851068407428159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/178851068407428159'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/05/importance-of-vision-in-your.html' title='Compell the business to instruct you to design the right architecture'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8440793.post-2238814611166325963</id><published>2020-05-17T19:55:00.021-04:00</published><updated>2020-05-17T22:35:11.769-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="architecture"/><category scheme="http://www.blogger.com/atom/ns#" term="Design"/><category scheme="http://www.blogger.com/atom/ns#" term="study notes"/><title type='text'>System Design Guidelines</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Identify Core Use Cases&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;A core use case represents the essence of the business. The essence of the system is not to add a tradesman or contractor, to create a project, or to pay a tradesman. All of these tasks may be done in any number of ways; they add little business value &lt;i&gt;and do not differentiate the system from the competition&lt;/i&gt;. Instead, the system’s raison d’être is given in the opening one-sentence definition: “TradeMe is a system for matching tradesmen to contractors and projects.” The only use case with any semblance to that point was the Match Tradesman use case&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Even though for design validation you need to support just the core use cases, that does not mean you should ignore the other use cases” far from it. A great way of demonstrating the versatility of your design is to show how easy it will be to support all the other use cases and anything else the business might require of the system.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;You must always transform, clarify, and consolidate the raw data. Early in the design process you may even recognize areas of interaction that will later make mapping the areas to subsystems or layers much more natural.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-size: large;&quot;&gt;It is useful to show the flow of control between roles, organizations, and other responsible entities, using “swim lanes” in your activity diagrams.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;img height=&quot;296&quot; src=&quot;https://learning.oreilly.com/library/view/righting-software-a/9780136524007/graphics/fig05_09.jpg&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Common System&amp;nbsp;Glossary&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;Ensure everyone is on the same page by compiling a short glossary of domain terminology.&amp;nbsp;A good way of starting a glossary is to answer the four classic questions of “who,” “what,” “how,” and “where.” You answer the questions by examining the system overview, the use cases, and customer interview notes, if you have any.&amp;nbsp;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;table border=&quot;1&quot; bordercolor=&quot;#888&quot; cellspacing=&quot;0&quot; style=&quot;border-collapse: collapse; border-color: rgb(136, 136, 136); border-width: 1px;&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;min-width: 60px;&quot;&gt;&amp;nbsp;&lt;b&gt;Questions&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;min-width: 60px;&quot;&gt;&lt;b&gt;&amp;nbsp;Sample Answers&lt;/b&gt;&lt;/td&gt;&lt;td style=&quot;min-width: 60px;&quot;&gt;&lt;b&gt;&amp;nbsp;Comments&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;Who&lt;/td&gt;&lt;td&gt;Tradesmen–&amp;nbsp; Contractors–&amp;nbsp; TradeMe reps–&amp;nbsp; Education centers–&amp;nbsp; Background processes (i.e., scheduler for payment)&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;min-width: 60px;&quot;&gt;&amp;nbsp;What&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;min-width: 60px;&quot;&gt;Membership of tradesmen and contractors–&amp;nbsp; Marketplace of construction projects–&amp;nbsp; Certificates and training for continuing education&lt;/td&gt;&lt;td style=&quot;min-width: 60px;&quot;&gt;&amp;nbsp;It hints strongly at possible subsystems or the swim lanes mentioned previously. You can use the swim lanes and the answers to seed and initiate your decomposition effort as you look for areas of volatility. &lt;br /&gt;This does not preclude having additional subsystems or imply that these will necessarily be all the subsystems needed—you always decompose based on volatility, and if a “what” is not volatile, then it will not merit a component in the architecture.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;How&lt;/td&gt;&lt;td&gt;Searching, Complying with regulations, Accessing resources&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&amp;nbsp;Where&lt;/td&gt;&lt;td&gt;&amp;nbsp;Local database–&amp;nbsp; Cloud–&amp;nbsp; Other systems&lt;/td&gt;&lt;td&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Static Architecture&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;img src=&quot;https://learning.oreilly.com/library/view/righting-software-a/9780136524007/graphics/fig05_14.jpg&quot; /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;The Clients&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;The client tier contains a portal for each type of member, the tradesmen and the contractors. There is also a portal for the education center to issue or validate tradesman credentials and a marketplace application for the back-end users to administer the marketplace. In addition, the client tier contains external processes such as a scheduler or a timer that periodically initiates some behavior with the system. These are included in the architecture for reference, but are not part of the system.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;b&gt;Business Logic Services&lt;/b&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;In the business logic tier are the Membership Manager and Market Manager, encapsulating the respecting volatilities.&amp;nbsp;&lt;/font&gt;&lt;span style=&quot;font-size: large;&quot;&gt;The Education Manager encapsulates the volatility in the execution of use cases related to continuing education such as coordinating training and reviewing the education certificates.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;The Regulation Engine encapsulates the regulation and compliance volatility between different countries and even in the same country over time. The Search Engine encapsulates the volatility in producing a match, something that can be done in an open-ended number of ways, ranging from a simple rate lookup, to safety and quality record considerations, to AI and machine learning techniques for the assignments.&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font size=&quot;4&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Reference&lt;/b&gt;: These are study notes from&amp;nbsp;&lt;a href=&quot;https://learning.oreilly.com/library/view/righting-software-a/9780136524007/ch05.xhtml&quot;&gt;https://learning.oreilly.com/library/view/righting-software-a/9780136524007/ch05.xhtml&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://neeraj-learn.blogspot.com/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://neeraj-learn.blogspot.com/feeds/2238814611166325963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8440793/2238814611166325963' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/2238814611166325963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8440793/posts/default/2238814611166325963'/><link rel='alternate' type='text/html' href='http://neeraj-learn.blogspot.com/2020/05/system-design-guidelines.html' title='System Design Guidelines'/><author><name>Neeraj Singh</name><uri>http://www.blogger.com/profile/15090702370346257018</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg66FEVFs0E0tYNUsEXhHJzThK5lfNz6cyYt4g2ElmUz-wthCOEVqEhHiQ6F1bPhmvbA4UznH0GrIO4x5y2QbKK6qkYj-aUQ6b9YDQPFkBb3jfJEgDFA3XNbDNoW5sZuAQ/s96/neeraj.jpg'/></author><thr:total>0</thr:total></entry></feed>