<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anil G. on Medium]]></title>
        <description><![CDATA[Stories by Anil G. on Medium]]></description>
        <link>https://medium.com/@whyaneel?source=rss-50f93645dbe0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vdNZF_IwSTFrsjPNUvtELA.png</url>
            <title>Stories by Anil G. on Medium</title>
            <link>https://medium.com/@whyaneel?source=rss-50f93645dbe0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 16:54:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@whyaneel/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Microservice Architecture with Azure Spring Cloud]]></title>
            <link>https://medium.com/@whyaneel/microservice-architecture-with-azure-spring-cloud-3ec215363422?source=rss-50f93645dbe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ec215363422</guid>
            <category><![CDATA[azure-spring-cloud]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[spring-cloud]]></category>
            <category><![CDATA[microservice-architecture]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Anil G.]]></dc:creator>
            <pubDate>Fri, 24 Jul 2020 07:44:34 GMT</pubDate>
            <atom:updated>2020-07-27T13:30:14.531Z</atom:updated>
            <content:encoded><![CDATA[<p>As Microsoft has <a href="https://docs.microsoft.com/en-us/azure/developer/java/spring-framework/"><em>vast documentation</em></a> on how to do each part of the components used in my architecture, I’ll focus more on the quick setup of deploying your <strong>local apps</strong> to <strong>azure spring cloud</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aZktHRAzmn5PfieDzj6Wfg.png" /><figcaption>Microservices Architecture</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*fQeLEGx8YvlXgvKFPa6irw.gif" /><figcaption>Application UI</figcaption></figure><p><strong>The</strong> Microservices Architecture showed here, is to build a Directory App which is basically for searching users through <strong>azsc-search-directory-service </strong>where data will be populated from 3 possible options but not limited to <em>Azure Cache layer/ Azure Postgres Replica / Simple Feign Client (</em>to pull data from existing microservice). In this tutorial, User&#39;s data is pumped with <strong>data.sql</strong> from <strong>azsc-user-directory-service</strong> (ideally they can be added through Admin UI with POST call to the API, and assume data grows exponentially) and gets persisted in Azure Postgres. Out of those 3 options, I choose Feign Client, so that we don’t deviate much with <em>other Azure components</em>, rather focus more on understanding Azure Spring Cloud components. Also, <strong>Gateway</strong> is used for static resources (for quick UI) and routing in this tutorial. <em>Azure Vault</em> is the best place to keep the credentials, which is out of scope for this tutorial.</p><h4><strong>0. Pre-requisites</strong></h4><p>To understand <em>pre-requisites (may take 10 mins), versions</em> used in this tutorial please go through this page <a href="https://github.com/whyaneel/azure-spring-cloud-demo/wiki/Kickstart">https://github.com/whyaneel/azure-spring-cloud-demo/wiki/Kickstart</a></p><p>—Checkout Code</p><pre>git clone <a href="https://github.com/whyaneel/azure-spring-cloud-demo.git">https://github.com/whyaneel/azure-spring-cloud-demo.git</a></pre><p>—Quickly Load Env Variables<br>After you add your Azure Subscription ID to the following script, just run it so that all vars used in tutorial will be loaded</p><pre>source ./setup_env_variables.sh</pre><h4>1. Azure Resources Creation</h4><p>—<em>Create Resource Group and Azure Spring Cloud Instance</em></p><pre>az account set --subscription “$SUBSCRIPTION_ID”</pre><pre>az group create -g “$RESOURCE_GROUP_NAME” -l “$REGION_NAME”</pre><pre>az spring-cloud create -g “$RESOURCE_GROUP_NAME” -n “$SPRING_CLOUD_NAME”</pre><p>—<em>Create Config Server in Azure Spring Cloud</em><br>Use Azure Web Portal to map Github repo <a href="https://github.com/whyaneel/azsc-config-server">azsc-config-server</a> to the config server. For Simplicity, I’ve generated <a href="https://raw.githubusercontent.com/whyaneel/azure-spring-cloud-demo/master/config-server-import.yml">config-server-import.yml</a> file where we’ll mention SpringCloudConfigServerGit- <em>Uri, Username, and Password</em> (<strong>Github PAT</strong>) and import this in Azure Web Portal under <strong><em>Spring Cloud &gt; Config Server</em></strong></p><p>— <em>Create Azure Database for Postgres</em><br>Follow Steps mentioned in (execute one-by-one)</p><pre>./setup_azure_postgres.sh</pre><h4><strong>2. Create Apps (Microservices) in Spring Cloud</strong></h4><pre>az spring-cloud app create -n azsc-user-directory-service</pre><pre>az spring-cloud app create -n azsc-search-directory-service</pre><pre>az spring-cloud app create -n azsc-gateway --is-public true</pre><h4><strong>3. Deploy Apps to Spring Cloud</strong></h4><p>—Compiled Jars are added <em>(so you can just focus on deploying the apps to Azure Spring Cloud), Ideally one has to develop these applications.</em></p><pre>az spring-cloud app deploy -n azsc-user-directory-service --jar-path ./azsc-user-directory-service/build/libs/azsc-user-directory-service-0.0.1-SNAPSHOT.jar</pre><pre>az spring-cloud app deploy -n azsc-search-directory-service --jar-path ./azsc-search-directory-service/target/azsc-search-directory-service-0.0.1-SNAPSHOT.jar</pre><pre>az spring-cloud app deploy -n azsc-gateway --jar-path ./azsc-gateway/target/azsc-gateway-0.0.1-SNAPSHOT.jar</pre><h4><strong>4. Access User Directory Management App</strong></h4><p>If you followed other namings for spring-cloud and gateway, change the below URLs accordingly. That’s why I made them non-clickable.</p><p>UI — https://azsc-from-paloit-azsc-gateway.azuremicroservices.io/index.html</p><p>API — https://azsc-from-paloit-azsc-gateway.azuremicroservices.io/api/admin/users</p><p>API — https://azsc-from-paloit-azsc-gateway.azuremicroservices.io/api/search/users</p><p>Note that above APIs will route to respective Microservices as per <a href="https://github.com/whyaneel/azsc-config-server/blob/master/azsc-gateway.yml"><em>Routing</em></a></p><h4><strong>5. Cleanup Resources</strong></h4><p>—This is to save cost on resources, clean up all resources in one shot once you’re done with the tutorial</p><pre>az group delete --name $RESOURCE_GROUP_NAME --yes</pre><blockquote><strong>Looking for Detailed Approach, see below</strong></blockquote><p><a href="https://github.com/whyaneel/azure-spring-cloud-demo/wiki">whyaneel/azure-spring-cloud-demo</a></p><p><strong>Code Available</strong> — <a href="https://github.com/whyaneel?tab=repositories&amp;q=azsc">https://github.com/whyaneel?tab=repositories&amp;q=azsc</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ec215363422" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unleash The Power of Data With This Quick Guide To Integrate Tableau Dashboards Securely]]></title>
            <link>https://medium.com/paloit/unleash-the-power-of-data-with-this-quick-guide-to-integrate-tableau-dashboards-securely-e4df67ba2b49?source=rss-50f93645dbe0------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4df67ba2b49</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[paloit]]></category>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Anil G.]]></dc:creator>
            <pubDate>Thu, 11 Jun 2020 09:23:26 GMT</pubDate>
            <atom:updated>2020-06-11T09:23:26.716Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Unleash The Power of Data With This Quick Guide To Integrate Tableau Dashboards Securely</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ujQxA1SPECvGI4uKTfxCPg.png" /></figure><p>Big data has become one of the most valuable commodities in the world today, often termed the “new oil” of the digital revolution. This exponential growth has driven businesses to seek new ways to leverage information to make better decisions and solve problems, to truly deliver more value to their customers.</p><p>For instance, an e-commerce company will probably want to use its rapidly growing database to fulfill some of its requirements, not limited to:</p><ul><li>Sales-Profitability &amp; Demand Forecasting (Sales Team)</li><li>Supply Chain Analytics &amp; Inventory Management (Inventory Team)</li><li>Insights Driving A New Product Release Plan (Marketing Team)</li></ul><p>When data grows in volume, so does the quality of generated insights. However, the byproduct that comes along with this expansion is complexity — people will find it harder to visualize the information.</p><p>Take the use case of a New Product Release Plan for example. Let’s say we begin with developing MVPs prior to building the whole product where MVPs comprise basic features. This will help us to quickly reach our customers (audience) so we can get important feedback from them, such as which feature is the most liked, and which country and/or which part of the country shows genuine interest in the product.</p><p>Not only will this feedback help us to prioritize work on the most-liked features and plan our release, it will also help us to define our product and complete our idea in a real-time scenario. If the feedback is from a smaller audience group, it’s easy to visualize them. But what if the audience is 10 million, how then, do we visualize the feedback?</p><p><strong>Data Discovery At Your Fingertips</strong></p><p>In order to make strategic decisions in real-time, companies need interactive dashboards that can fine-tune big data to help them with visualisation and increase productivity. At the same time, access to these dashboards should be limited to the right people when security is a cross-cutting concern.</p><p>Nowadays, more and more companies are turning to Business Intelligence (BI) tools for assistance because of their specialised offerings on designing dashboards and implementing analytics with ease. But with a huge variety of BI tools available in the market including Tableau, QlikSense, Power BI, and MicroStrategy, it is challenging to pick the right tool when you don’t have a pre-existing knowledge on them.</p><p>In this article, I will explain why <strong>Tableau </strong>is one of the most powerful business intelligence tools out there and why I recommend it. I will also guide you along on how you can set up a seamless user experience confidently with the help of trusted authentication, without showing the login page of the Tableau product.</p><p>Note: It would help if you’ve basic knowledge of Tableau Desktop and Tableau Server. It’s also a requirement that you’ve got an existing web portal where there’s a need to integrate dashboards developed (on Tableau) securely.</p><p><strong>Why Tableau?</strong></p><p>Most BI tools offer license-based content viewing with their own authentication to bypass security. When we want to show dashboard content on the company’s web portal which already has an existing authentication mechanism, we can bypass the tool’s OOTB authentication to provide a seamless experience while still ensuring license-based content viewing.</p><p>That being said, when I’ve done some research on these tools, I’ve found that Tableau offers greater simplicity and support, such as:</p><ul><li>Trusted Authentication for a seamless experience</li><li>REST API support for automation</li><li>Product Support</li><li>Back Office (like administration) &amp; Front Office (like website experience) support</li></ul><p><em>In a nutshell, Tableau is all you need to provide a vivid representation of your data.</em></p><p><strong>Seamless Integration</strong></p><p>Moving on to a basic setup, let’s imagine that my development team has created 3 dashboards for their teams as <em>sales-dashboard, inventory-dashboard, </em>and <em>marketing-dashboard,</em> with access limited to respective business teams. Additionally, one of the cross-cutting concerns is that these dashboards should not be exposed to the outside world as they have confidential data.</p><p>The solution is to implement<em> </em><strong>trusted authentication</strong>, which will seamlessly pull the three golden dashboards securely to your web portal. This trusted relationship between Tableau server and your web portal server ensures that when Tableau Server receives requests from you, it assumes that your web portal has already handled whatever authentication is necessary.</p><p><strong>Tableau Terminology</strong><em> </em>(skip this paragraph, if you are already familiar with them)</p><ul><li><em>Site,</em></li><li><em>Project,</em></li><li><em>Workbook,</em></li><li><em>Datasource,</em></li><li><em>View,</em></li><li><em>Dashboard,</em></li><li><em>Users, Groups, Roles, etc.</em></li></ul><p>In the Tableau server, we can configure multiple sites and a site can have multiple projects. Logically, site and project help us to group content related to a specific segment or domain of your web portal. On the other hand, a workbook enables us to connect to a datasource, and a workbook can have various views and dashboards (a combination of views). Users and groups will be given access to these sites and their content. Groups (consisting of users) can be given specific access including roles.</p><p>Our 3 dashboards are created in a site called <strong><em>Boost Revenue</em></strong><em>.</em></p><h3><strong>How to Implement Trusted Authentication? (3 Quick Steps)</strong></h3><blockquote>(1) Add Trusted IP Address to Tableau Server <a href="https://help.tableau.com/current/server/en-us/trusted_auth_trustIP.htm">— how?</a></blockquote><p>Add static IP address (xx.xx.xxx.xxx) of the web portal server in Tableau server to recognize and trust requests. This is a one-time setup and straight forward.</p><blockquote>(2) Get Trusted Ticket <a href="https://help.tableau.com/current/server/en-us/trusted_auth_webrequ.htm">— how?</a></blockquote><p>A<strong> </strong>client-browser will do a GET request for a ticket with the <strong><em>Tableau username — aneel</em></strong> to our web portal server. Our server should be able to send an <em>expected</em> POST request to the Tableau server as below and delegate this <em>trusted-ticket</em> back to the client browser.</p><p><strong>e.g. Trusted Ticket</strong></p><blockquote>Request:</blockquote><pre>POST <a href="http://your-tableau-server/trusted?username=aneel&amp;target_site=Boost+Revenue">http://your-tableau-server/trusted?username=aneel&amp;target_site=Boost+Revenue</a></pre><blockquote>Response:</blockquote><pre>9D1ObyqDQmSIOyQpKdy4Sw==:dg62gCsSE0QRArXNTOp6mlJ5</pre><p>The above <em>trusted-ticket</em> is specific to the user <strong><em>aneel</em></strong> and the site <strong><em>Boost Revenue</em></strong>, so <strong><em>aneel</em></strong> can access only the dashboards within the site which he is given access to. And assuming he is given access to the <strong><em>Sales Team</em></strong> group.</p><blockquote>(3) Redeem Ticket and Display the View <a href="https://help.tableau.com/current/server/en-us/trusted_auth_webURL.htm">— how?</a></blockquote><p>To embed the <strong>Sales Dashboard</strong>, the iframe example snippet is as follows:</p><pre>&lt;iframe src=”http://your-tableau-server<strong>/trusted/9D1ObyqDQmSIOyQpKdy4Sw==:dg62gCsSE0QRArXNTOp6mlJ5/t/Boost+Revenue/views/workbookSales/sales-dashboard</strong>?:embed=yes&quot; width=”800&quot; height=”600&quot;&gt;&lt;/iframe&gt;</pre><p>Dynamic URL breakdown: /<strong>trusted</strong>/TrustedTicket/<strong>t</strong>/SiteName/<strong>views</strong>/WorkbookName/DashboardOrViewName</p><ol><li><strong>TrustedTicket:</strong> It would be different for a user and a site, when we use this ticket in an iframe, it gets redeemed and creates a Tableau server user session and an equivalent cookie in the client-browser, which is valid for 240 mins (session timeout is configurable)</li><li><strong>SiteName:</strong> In case we only have one site which is the default, we can even remove <strong>/t/SiteName</strong> in the URL</li><li><strong>WorkBookName:</strong> Assume we have a few workbooks connected to different data sources <em>workbookSales</em>, <em>workbookInventory</em>, <em>workbookMarketing</em></li><li><strong>DashboardOrViewName: </strong>One of our three dashboards mentioned in the beginning</li></ol><p><strong>Do you know </strong><em>— </em>Once the session is created, we can render the dashboard without <strong>/trusted/TrustedTicket</strong> in the URL even if the user goes away and traverses back to the same dashboard. We see the advantage of this when the user has given access to multiple dashboards.</p><p>I’m going to use the same ticket string as an example to ease the differentiation that’s actually changing in the URL with relation to the workbook and dashboard.</p><p><strong>e.g. Embed Inventory Dashboard</strong></p><pre>/trusted/9D1ObyqDQmSIOyQpKdy4Sw==:dg62gCsSE0QRArXNTOp6mlJ5/t/Boost+Revenue/views/workbookInventory/inventory-dashboard</pre><p><strong>e.g. Embed Marketing Dashboard</strong></p><pre>/trusted/9D1ObyqDQmSIOyQpKdy4Sw==:dg62gCsSE0QRArXNTOp6mlJ5/t/Boost+Revenue/view</pre><p><strong>Overview of How Trusted Authentication Works</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/0*ZhbiLRx4N9jZgO4P" /><figcaption><strong>How Trusted Authentication Works</strong></figcaption></figure><p>In the diagram, the arrows (request-response):</p><p><strong>2, 3</strong> are getting the ticket from Tableau server to web server</p><p><strong>1, 4</strong> delegating ticket back to the client browser</p><p><strong>5, 6</strong> will redeem the ticket which creates a session and fetches the dashboard to iframe and gets displayed to the client</p><p><em>Image Credit:</em><a href="https://help.tableau.com/current/server/en-us/Img/trusted_auth_666x421.png"> https://help.tableau.com/current/server/en-us/Img/trusted_auth_666x421.png</a></p><p><strong>The key takeaway</strong> is to implement trusted authentication to achieve a seamless user experience. During this stage, one of the roadblocks you may encounter is our web portal, which is backed by a proxy server, doesn’t swallow a few characters present in the trusted ticket string, so you have to whitelist them with the proxy server.</p><p><strong>When it comes to best practices</strong>, we can enhance the reliability of the Tableau server by running gateways on multiple nodes and configuring a load balancer to distribute requests across the gateways. We can also implement SSL for HTTPS traffic for data encryption. These are available as articles in Tableau Help and/or also in the Tableau Community.</p><p><strong>Tableau — Harness the Power of Data</strong></p><p>The developed and interactive dashboards in Tableau are now available in your existing web portal for your respective teams to enjoy. The implementation of Tableau will help you and your teams to see and understand data<em> </em>and at the same time,<em> </em>transform the way your business uses data to solve problems and deliver more impactful results.</p><p>On that final note, as the current approach is manual and limited to a fixed no of dashboards (in our case 3), the task is to automate this process of linking new dashboards available in Tableau to reflect in the web portal directly. So the best way to do this is to take advantage of Tableau’s REST API. I’ll produce a follow-up blog post on this. Until then, feel free to reach out to me with questions that you have.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4df67ba2b49" width="1" height="1" alt=""><hr><p><a href="https://medium.com/paloit/unleash-the-power-of-data-with-this-quick-guide-to-integrate-tableau-dashboards-securely-e4df67ba2b49">Unleash The Power of Data With This Quick Guide To Integrate Tableau Dashboards Securely</a> was originally published in <a href="https://medium.com/paloit">PALOIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>