<?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 Vikash Gupta on Medium]]></title>
        <description><![CDATA[Stories by Vikash Gupta on Medium]]></description>
        <link>https://medium.com/@vikashis?source=rss-af6573de7113------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*bnZ4S2zIrL4s8aNP.</url>
            <title>Stories by Vikash Gupta on Medium</title>
            <link>https://medium.com/@vikashis?source=rss-af6573de7113------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 10:43:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vikashis/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[React — finally starting with a framework]]></title>
            <link>https://vikashis.medium.com/react-finally-starting-with-a-framework-88b6e7c352f9?source=rss-af6573de7113------2</link>
            <guid isPermaLink="false">https://medium.com/p/88b6e7c352f9</guid>
            <dc:creator><![CDATA[Vikash Gupta]]></dc:creator>
            <pubDate>Thu, 16 Jul 2026 06:18:23 GMT</pubDate>
            <atom:updated>2026-07-16T06:18:23.397Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Problem</strong></p><p>React is fundamentally a UI library, not a comprehensive application framework. In modern web development, users expect high-performance experiences that require features like Server-Side Rendering (SSR), optimized data-fetching, and code-splitting.<br>Developers were expected to manually piece together complex bundlers, routing libraries, and compilation steps.</p><p><strong>Solution</strong></p><p>Consider using a framework that support all the features needed to deploy and scale your app in production</p><p><em>Recommended framework — Next.js</em><br>Takes full advantage of React’s architecture to enable full-stack React apps.<br>Natively includes routing, data fetching, code-splitting, and application performance improvements out of the box.</p><pre>npx create-next-app@latest</pre><p><strong>How to choose between — full-stack framework (like Next.js) and a single-page app tool (like Vite) ?</strong></p><p>Answer below questions with matrix reference</p><ol><li>What type of application are you building (e.g., e-commerce, dashboard, SaaS)?</li><li>Does it need to be indexed by Google?</li><li>Do you already have a separate backend built?</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*27ZPJZCerxG7r4iqhugxbw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88b6e7c352f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ASPIRE.NET]]></title>
            <link>https://vikashis.medium.com/aspire-net-ab126c5500f0?source=rss-af6573de7113------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab126c5500f0</guid>
            <category><![CDATA[aspire]]></category>
            <dc:creator><![CDATA[Vikash Gupta]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 07:22:03 GMT</pubDate>
            <atom:updated>2026-06-12T07:22:03.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*ps-VoY7L4G40n0XEEOd8wQ.png" /></figure><p>From complexity to clarity in building cloud native apps</p><p><strong>WHY ASPIRE?</strong></p><p>Picture your app as a set of services, databases, and frontends — when they’re deployed, they all work together seamlessly. But every time you develop them they need to be individually started and connected. With Aspire, you get a unified toolchain that eliminates complex configs and makes local debugging effortless. Instantly launch and debug your entire app with a single command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XaXZN4Rel66bTM40fMmnng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*npKH0DjqgplOBStulvKNVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hIbVqOMIRmHdm6ier8m29A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mErxJt_F1vTLRKsIynV2gw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rUbMGBdhig5VknTcZjXIAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xq88etEnRAOawqsuj8Jrbw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*83mGNE9_vcaPl1ZnMpf5Bw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QXvhvjkTPUUj4kaXLV44CQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K9pig_igy0cgsIVkQYaKRQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fjz2oQPzk0Ze3O4-t37rKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wKYOdz1vxtGdSuPWMBb7AA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Nsl4XLZaaTI0o_xSUazvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yM7PpCVBBvmblL2fWC9HJw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f-uDiXBwJckAAZSjZsiScg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gtOJq28RG9csB_isgQksHA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab126c5500f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create image with vertex AI & generate text based on image and prompt]]></title>
            <link>https://vikashis.medium.com/create-image-with-vertex-ai-generate-text-based-on-image-and-prompt-68aa8ba3985b?source=rss-af6573de7113------2</link>
            <guid isPermaLink="false">https://medium.com/p/68aa8ba3985b</guid>
            <dc:creator><![CDATA[Vikash Gupta]]></dc:creator>
            <pubDate>Wed, 06 Aug 2025 20:32:51 GMT</pubDate>
            <atom:updated>2025-08-06T20:32:51.043Z</atom:updated>
            <content:encoded><![CDATA[<pre>from google import genai<br>from google.genai import types<br>from PIL import Image<br>from io import BytesIO<br>import base64<br>from google.genai.types import HttpOptions, ModelContent, Part, UserContent<br><br>def generate_bouquet_image(<br>    project_id: str, location: str, output_file: str, prompt: str<br>) -&gt; vertexai.preview.vision_models.ImageGenerationResponse:<br>    &quot;&quot;&quot;Generate an image using a text prompt.<br>    Args:<br>      project_id: Google Cloud project ID, used to initialize Vertex AI.<br>      location: Google Cloud region, used to initialize Vertex AI.<br>      output_file: Local path to the output image file.<br>      prompt: The text prompt describing what you want to see.&quot;&quot;&quot;<br><br>    vertexai.init(project=project_id, location=location)<br><br>    model = ImageGenerationModel.from_pretrained(&quot;imagen-3.0-generate-002&quot;)<br><br>    images = model.generate_images(<br>        prompt=prompt,<br>        # Optional parameters<br>        number_of_images=1,<br>        seed=1,<br>        add_watermark=False,<br>    )<br><br>    images[0].save(location=output_file)<br><br>    return images<br><br>def analyze_bouquet_image(path):<br>    with open(path, &#39;rb&#39;) as f:<br>        image_bytes = f.read()<br><br>    client = genai.Client(<br>        vertexai=True,<br>        project=&#39;qwiklabs-gcp-01-25e95c643e27&#39;,<br>        location=&#39;europe-west1&#39;,<br>        http_options=HttpOptions(api_version=&quot;v1&quot;))<br><br>    response = client.models.generate_content_stream(<br>        model=&quot;gemini-2.0-flash-001&quot;,<br>        contents=[<br>            types.Part.from_bytes(<br>                data=image_bytes,<br>                mime_type=&#39;image/jpeg&#39;,<br>            ),<br>            &#39;Generate birthday wishes based on the image passed.&#39;<br>        ]<br>    )<br>    for chunk in response:<br>        print(chunk.text)<br><br>generate_bouquet_image(<br>project_id=&#39;qwiklabs-gcp-00-abb9d4e5b7d1&#39;,<br>location=&#39;us-central1&#39;,<br>output_file=  &#39;/home/student/image.jpeg&#39;,<br>prompt=&#39;Create an image containing a bouquet of 2 sunflowers and 3 roses&#39;,<br>)<br>    <br>analyze_bouquet_image(&#39;/home/student/image.jpeg&#39;)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68aa8ba3985b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prompt design in Vertex AI]]></title>
            <link>https://vikashis.medium.com/prompt-design-in-vertex-ai-f2aef1ba7a8c?source=rss-af6573de7113------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2aef1ba7a8c</guid>
            <category><![CDATA[genai-exchange-program]]></category>
            <dc:creator><![CDATA[Vikash Gupta]]></dc:creator>
            <pubDate>Wed, 30 Jul 2025 11:56:51 GMT</pubDate>
            <atom:updated>2025-07-30T11:56:51.324Z</atom:updated>
            <content:encoded><![CDATA[<p>A prompt is a natural language request submitted to a language model to receive a response. Prompts can contain questions, instructions, contextual information, and examples to guide the model.Components of a prompt</p><p>You can include whatever information you want in a prompt that you think is important for the task at hand. Generally, prompt content fall within one of the following components:</p><ul><li><a href="https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/introduction-prompt-design#input">Task (required)</a></li><li><a href="https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/introduction-prompt-design#system_instructions">System instructions (optional)</a></li><li><a href="https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/introduction-prompt-design#few_shot_examples">Few-shot examples (optional)</a></li><li><a href="https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/introduction-prompt-design#contextual_information">Contextual information (optional)</a></li></ul><h3>Few-shot examples</h3><p>Few-shot examples are examples that you include in a prompt to show the model what getting it right looks like. Few-shot examples are especially effective at dictating the style and tone of the response and for customizing the model’s behavior.</p><h3>Task-specific guidance</h3><p>To learn about task-specific guidance for common use cases check out the following pages:</p><ul><li><a href="https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/design-multimodal-prompts">Multimodal prompts</a></li><li><a href="https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/prompt-design-strategies">Overview of prompting strategies</a></li><li><a href="https://cloud.google.com/vertex-ai/generative-ai/docs/chat/chat-prompts">Chat prompts</a></li><li><a href="https://cloud.google.com/vertex-ai/generative-ai/docs/image/img-gen-prompt-guide">Image generation and editing prompts</a></li></ul><p>Below link has more details</p><p><a href="https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/introduction-prompt-design">https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/introduction-prompt-design</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2aef1ba7a8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create & Consume a Streaming API]]></title>
            <link>https://vikashis.medium.com/create-consume-a-streaming-api-b5d5035e5a3d?source=rss-af6573de7113------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5d5035e5a3d</guid>
            <dc:creator><![CDATA[Vikash Gupta]]></dc:creator>
            <pubDate>Wed, 30 Jul 2025 06:15:06 GMT</pubDate>
            <atom:updated>2025-07-30T06:15:06.628Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Need for a streaming api</strong></p><p>A streaming API is essential for applications that require real-time data updates and continuous data feeds. Here are some reasons why you might need a streaming API:</p><p>1. <strong>Real-time Data</strong>: If your application needs to process data as it happens (e.g., live sports scores, stock market updates, or social media feeds), a streaming API is crucial.</p><p>2. <strong>Efficiency</strong>: Streaming APIs allow for the continuous flow of data, reducing the need for constant polling and thereby saving bandwidth and reducing latency.</p><p>3. <strong>Scalability</strong>: They are designed to handle high volumes of data at scale, which is essential for applications with large user bases or those processing significant amounts of data.</p><p>4. <strong>Event-driven Architecture</strong>: Streaming APIs enable event-driven architectures, which can improve responsiveness and efficiency by allowing applications to react to data changes as they occur.</p><p>5. <strong>User Experience</strong>: For applications like chat apps or gaming, streaming APIs provide a smoother and more engaging user experience by delivering updates instantly.</p><p>6. <strong>Data Synchronization</strong>: In applications where it’s critical to keep data synchronized across multiple devices or platforms, streaming APIs can ensure consistency in real-time.</p><p>7. <strong>Reduced Server Load</strong>: By pushing updates only when changes occur, streaming APIs can reduce the server load compared to polling-based approaches, which frequently check for updates.</p><p>If your application or service aligns with any of these needs, implementing a streaming API is likely a good choice.</p><blockquote>Below are samples for Streaming API &amp; Client</blockquote><p><em>Server API</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*uDwedDdkRCzeka0PD8Oj0g.jpeg" /></figure><p><em>Client</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dcpaC5-2ZUWbe4y1V3lAzQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5d5035e5a3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design for large file upload/download from browser]]></title>
            <link>https://vikashis.medium.com/design-for-large-file-upload-download-from-browser-b68fc6c03586?source=rss-af6573de7113------2</link>
            <guid isPermaLink="false">https://medium.com/p/b68fc6c03586</guid>
            <dc:creator><![CDATA[Vikash Gupta]]></dc:creator>
            <pubDate>Sat, 03 Aug 2024 17:17:35 GMT</pubDate>
            <atom:updated>2024-08-03T17:17:35.060Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Technology </strong>— Javascript(UI), Azure Blob(file storage), C#</p><p>Core solution involves directly uploading/downloading from the browser in a secured way. (To avoid latency in transfer to apis)</p><p>Also upload/download to take place in parallel chunks for quicker completion</p><p>Design</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*EyoT3-pg60TCvm-lZbRiBw.png" /></figure><ol><li>Javascript code calls the custom API to get the uri to upload/download</li><li>Custom api fetches the sas uri for the file with create(for upload) or read(for download) for a limited period from the azure blob storage</li><li>Javascript uses @azure/blob library to upload/download file in chunks usin the sas uri fetched in step 2</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b68fc6c03586" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuration Framework In Azure For .Net]]></title>
            <link>https://vikashis.medium.com/configuration-framework-in-azure-for-net-8a6e29dfcaf3?source=rss-af6573de7113------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a6e29dfcaf3</guid>
            <dc:creator><![CDATA[Vikash Gupta]]></dc:creator>
            <pubDate>Sat, 03 Aug 2024 16:25:18 GMT</pubDate>
            <atom:updated>2024-08-03T16:42:56.220Z</atom:updated>
            <content:encoded><![CDATA[<h3>Configuration Framework In Azure For .Net</h3><p>Configuration are of 2 types</p><ul><li><em>config → </em>Stored in azure app config</li><li><em>secrets → Stored in azure key vault</em></li></ul><p>Azure components</p><ul><li>App Config → Has entries for config. Has entries of reference to secrets</li><li>Key vault → Has secrets</li><li>Redis cache → Configs labelled shared are cached to redis cache</li><li>C# ConfigProvider module → Connects to the App config/Cache to fetch the values for config keys</li></ul><p>Design</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*ZiXLWVsldp3EFMSPetlSSA.png" /></figure><ol><li>.Net application passes the key for which value is needed to Config provider</li></ol><p>2.1 Config provider checks with cache module if the key exists. If yes returns it.</p><p>3. 1 If the key is labelled as shared then checked in redis cache.</p><p>3.2 If not labelled shared then checked in environment variable.</p><p>2.2 If the key is not cached it is fetched from the azure app config. Then cached to either redis or environment variable(local cache)</p><p>Note: Azure app config is loaded with secrets as well. Access needs to be restricted to app config too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a6e29dfcaf3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Call Graph API with Token]]></title>
            <link>https://vikashis.medium.com/call-graph-api-with-token-1fbccb698537?source=rss-af6573de7113------2</link>
            <guid isPermaLink="false">https://medium.com/p/1fbccb698537</guid>
            <category><![CDATA[graph-api]]></category>
            <category><![CDATA[microsoft-graph-api]]></category>
            <dc:creator><![CDATA[Vikash Gupta]]></dc:creator>
            <pubDate>Thu, 13 Oct 2022 07:48:38 GMT</pubDate>
            <atom:updated>2022-10-13T07:48:38.646Z</atom:updated>
            <content:encoded><![CDATA[<p>Steps:</p><ol><li>Get Token</li><li>2. Use Token to connect to Graph API</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*K9GKljkIoMsaB9Ip2lIW7A.png" /></figure><p><strong>Prerequisites </strong>: Create app registration and note the ClientId, TenantId, Secret. Required Api permissions need to be set in the app registration.</p><p><strong>Step 1:</strong> Make a POST call to <a href="http://https//login.microsoft.com/TenantId/Oauth/token">Https://login.microsoft.com/TenantId/Oauth/token</a> with body</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*vQKUR8wEaWoVVsf1y7LXZw.png" /></figure><p>Get the access_token in the response</p><p><strong>Step 2: </strong>Make a Graph API call with the header containing the token</p><pre>Authorization : Bearer &lt;access_token&gt;</pre><p>Reference: <a href="https://www.youtube.com/watch?v=DIIYZUzNk5E">https://www.youtube.com/watch?v=DIIYZUzNk5E</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fbccb698537" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes — Design Patterns]]></title>
            <link>https://vikashis.medium.com/kubernetes-design-patterns-bba60290efa9?source=rss-af6573de7113------2</link>
            <guid isPermaLink="false">https://medium.com/p/bba60290efa9</guid>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Vikash Gupta]]></dc:creator>
            <pubDate>Thu, 21 Jul 2022 07:23:09 GMT</pubDate>
            <atom:updated>2022-07-21T07:23:09.799Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kubernetes — Design Patterns</h3><p>Some intresting patterns / design patterns adopted in kubernetes:</p><p><strong>State Pattern:</strong><br>State/change of state is stored in etcd. Other processes react to these change of states</p><p><strong>Single Responsible pattern:</strong><br>Each of the API, COntroller, kubelet have their own responsibility. Making them modular and easily maintainable</p><p><strong>Master slave design pattern</strong> with Master and worker nodes.</p><p><strong>HA </strong>with load balancing of master nodes &amp; creating internal pod load balancing with services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*_-KNlqRN9c6_uBPKROET2A.png" /><figcaption>KUBERNETES COMPONENTS</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bba60290efa9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Configuration — Cloud Native Way]]></title>
            <link>https://vikashis.medium.com/build-configuration-cloud-native-way-304dc2cabb41?source=rss-af6573de7113------2</link>
            <guid isPermaLink="false">https://medium.com/p/304dc2cabb41</guid>
            <category><![CDATA[configuration-management]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[builder-pattern]]></category>
            <dc:creator><![CDATA[Vikash Gupta]]></dc:creator>
            <pubDate>Sat, 18 Dec 2021 13:47:58 GMT</pubDate>
            <atom:updated>2021-12-18T13:52:36.394Z</atom:updated>
            <content:encoded><![CDATA[<h3>Build Configuration — Cloud Native Way</h3><p>Cloud native configs for applicaitons need to go beyond centralised config repository. Ideal situation can be to accomadate multiple config sources in a incremental fashion.</p><p><strong>Builder design pattern </strong>comes to the rescue here. It enables creation of configs based on multiple config source’s specified(config sources can be both centralised or local). For example config source1: has 10 key/values , source2: has 12 key/values. Builder can be used to build a composite config with 22 keys from the varied sources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*iHSsGVkGnt8AKLBheukT0A.png" /></figure><p>In the Microsoft world this can be acheived with the config builder — <a href="https://docs.microsoft.com/en-us/aspnet/config-builder">https://docs.microsoft.com/en-us/aspnet/config-builder</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*ayHYZbogH5CQBwIKjS2Bsw.png" /></figure><p>In the above diagrem the key’s in Azure app configuration are from the central config and available to all app config’s. The key’s in Appservice configuration are available specific to the application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=304dc2cabb41" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>