<?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 Tejas Bal on Medium]]></title>
        <description><![CDATA[Stories by Tejas Bal on Medium]]></description>
        <link>https://medium.com/@tejas.bal?source=rss-e69f2a013500------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*aZgnNISwluXWzhrsniQvog.jpeg</url>
            <title>Stories by Tejas Bal on Medium</title>
            <link>https://medium.com/@tejas.bal?source=rss-e69f2a013500------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 10:23:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tejas.bal/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[️‍♂️ Debugging a Spring Boot Property Mystery: When application.yml isn’t what it seems!]]></title>
            <link>https://medium.com/@tejas.bal/%EF%B8%8F-%EF%B8%8F-debugging-a-spring-boot-property-mystery-when-application-yml-isnt-what-it-seems-924744e297c4?source=rss-e69f2a013500------2</link>
            <guid isPermaLink="false">https://medium.com/p/924744e297c4</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Tejas Bal]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 13:01:34 GMT</pubDate>
            <atom:updated>2025-07-23T13:05:45.883Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently, I encountered an intriguing issue while running smoke test in a Spring Boot project. I thought it would be valuable to share my experience, the debugging journey, and the key takeaways for fellow developers. 🚀</p><h3>The Use Case</h3><p>I had a simple requirement: my smoke test needed to check for a property <em>greeting: hello</em> defined in my <em>application.yml</em> file.</p><pre>import org.junit.jupiter.api.Test;<br>import org.springframework.beans.factory.annotation.Value;<br>import org.springframework.boot.test.context.SpringBootTest;<br>import static org.assertj.core.api.Assertions.assertThat;<br><br>@SpringBootTest<br>class GreetingPropertySmokeTest {<br><br>    @Value(&quot;${greeting:#{null}}&quot;)<br>    private String greeting;<br><br>    @Test<br>    void greetingPropertyShouldBeDefinedAndCorrect() {<br>        assertThat(greeting)<br>            .as(&quot;Check if &#39;greeting&#39; property equals hello&quot;)<br>            .isNotNull()<br>            .isEqualTo(&quot;hello&quot;);<br>    }<br>}</pre><h3>The Quick Fix (But Not the Solution)</h3><p>Of course, I could have just added the property directly in the <em>@SpringBootTest</em> annotation:</p><pre>@SpringBootTest(properties = &quot;greeting=hello&quot;)</pre><p>But that’s just a workaround. I wanted to understand why the property wasn’t being picked up from <em>application.yml</em> in the first place.</p><h3>🔍 The Debugging Journey</h3><ul><li>Checked the Logs The logs clearly showed that <em>application.yml</em> was being loaded. So, the file was being read… or was it?</li></ul><pre>Adding config Config resource &#39;class path resource[application.yml]&#39; <br>via location &#39;optional:classpath:/&#39;</pre><ul><li>Intentional Syntax Error To test further, I broke the file on purpose:</li></ul><pre>greeting=hi # &#39;=&#39; is invalid in YAML!</pre><p>I expected the test to fail at startup due to the syntax error. Surprisingly, the smoke test still ran — and the property check failed as before.</p><ul><li>Verified the File Path I double-checked that <em>application.yml </em>was in <em>src/main/resources</em>. Everything looked correct.</li><li>Aha! Multiple application.yml Files? This made me wonder: <em>Is some other application.yml being loaded instead?</em> 🤨</li><li>Checked the Dependencies I reviewed my <em>build.gradle</em> and found this line:</li></ul><pre>implementation project(&#39;:payments-core&#39;)</pre><p>The <em>payments-core</em> module also had an <em>application.yml</em> file — but it did not contain the greeting property.</p><h3>🏆 The Root Cause</h3><p>The real issue was an incorrect dependency. <em>payments-core</em> was a module that had recently been separated out and wasn’t needed as a dependency in my current project (<em>ecommerce-core</em>). By including it, I was unintentionally pulling in its <em>application.yml</em>, which overrode or masked my own configuration.</p><h3>💡 Key Learnings</h3><ul><li>Spring Boot loads <em>application.yml</em> files from all dependencies on the classpath. Be careful with modules that contain their own configuration files!</li><li>Dependency hygiene matters. Remove unnecessary dependencies to avoid unexpected side effects.</li><li>Debugging is about asking the right questions. When things don’t add up, check your assumptions — sometimes, it’s not your code, but your build!</li><li>Intentional breakage can be a powerful debugging tool. Introducing a syntax error helped confirm that my <em>application.yml</em> wasn’t being used.</li></ul><h3>🚀 Takeaway</h3><p>Always be mindful of your project’s dependencies and their resources. A small oversight can lead to big debugging adventures! 🧭</p><p>Have you ever faced a similar Spring Boot or configuration issue? I’d love to hear your stories and tips in the comments! 👇</p><p>#SpringBoot #Debugging #Microservices #Java #Configuration #Learning #TechStories</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=924744e297c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI + Salesforce : How Agentforce Boosts Productivity (But Still Needs a Human Touch)]]></title>
            <link>https://medium.com/@tejas.bal/ai-salesforce-how-agentforce-boosts-productivity-but-still-needs-a-human-touch-9017691b2606?source=rss-e69f2a013500------2</link>
            <guid isPermaLink="false">https://medium.com/p/9017691b2606</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[apex]]></category>
            <category><![CDATA[agentforce]]></category>
            <dc:creator><![CDATA[Tejas Bal]]></dc:creator>
            <pubDate>Sat, 22 Mar 2025 19:20:46 GMT</pubDate>
            <atom:updated>2025-03-22T19:24:22.214Z</atom:updated>
            <content:encoded><![CDATA[<h3>AI + Salesforce : How Agentforce Boosts Productivity (But Still Needs a Human Touch)</h3><p>In this article I am going to use #Salesforce #Agentforce to write prompts to suggest the code needed in Visual Studio Code and Salesforce CLI to create object and import data from <a href="https://www.data.gov.uk/">https://www.data.gov.uk/</a> data set into my developer org.</p><p>Data Set — <a href="https://www.data.gov.uk/dataset/2c80e0ce-ee1c-4f26-ba6f-1e1ae1bd8ee9/approved-food-establishments">https://www.data.gov.uk/dataset/2c80e0ce-ee1c-4f26-ba6f-1e1ae1bd8ee9/approved-food-establishments</a></p><p>Preview Data — <a href="https://www.data.gov.uk/dataset/2c80e0ce-ee1c-4f26-ba6f-1e1ae1bd8ee9/approved-food-establishments/datafile/3253a3db-dbd1-4f55-bf0d-eddd02bfe4e9/preview">https://www.data.gov.uk/dataset/2c80e0ce-ee1c-4f26-ba6f-1e1ae1bd8ee9/approved-food-establishments/datafile/3253a3db-dbd1-4f55-bf0d-eddd02bfe4e9/preview</a></p><p>Columns — AppNo, TradingName, Address1, Address2, Town, Postcode, Country, All_Activities, Cold_Store, CompetentAuthority, GeographicLocalAuthority</p><p><a href="https://github.com/tejas-bal/sfdc-agentforce-experiments/blob/main/prompts/introduction.txt">Introduction Prompt</a></p><pre>I am Salesforce Developer and today and I want help in writing metadata code <br>to create an object and import it into my demo org using Salesforce CLI <br>in Visual Studio Code.</pre><p><a href="https://github.com/tejas-bal/sfdc-agentforce-experiments/blob/main/prompts/customObject.txt">Create Custom Object Prompt</a></p><pre>I want to create a custom object called Approved_Food_Establishments__c <br>with columns AppNo, TradingName, Address1, Address2, Town, Postcode, <br>Country, All_Activities, Cold_Store, CompetentAuthority, <br>GeographicLocalAuthority. <br><br>Suggest how I can do this.</pre><p>Please see the agent response here — <a href="https://github.com/tejas-bal/sfdc-agentforce-experiments/blob/main/prompts/customObjectAgentResponse.txt">Agent Response</a></p><p>Observations:</p><p>Objects folder was already created when I authorized and org and created a new project in VS Code. One step was missing here from the agent, I had to create a folder called Approved_Food_Establishments__c, so I created it, and then created a new file named Approved_Food_Establishments__c.object-meta.xml and put the contents suggested in above prompt response.</p><p>There was an error in first line on the xml suggested by the prompt.</p><p>&lt;CustomObject xmlns=”<a href="http://soap.sforce.com/2006/04/metadata">http://soap.sforce.com/2006/04/metadata</a>&quot;&gt;</p><p>This should be fixed by using https</p><p>&lt;CustomObject xmlns=”<a href="https://soap.sforce.com/2006/04/metadata">https://soap.sforce.com/2006/04/metadata</a>&quot;&gt;</p><p>Rest of the <a href="https://github.com/tejas-bal/sfdc-agentforce-experiments/blob/main/force-app/main/default/objects/Approved_Food_Establishments__c/Approved_Food_Establishments__c.object-meta.xml">file</a> was correct and I could import it and custom object was created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/0*S4_DiziIvfd8OAAB" /></figure><p>What comes next prompt:</p><pre>What are the next steps after creating the custom object to view it in the org?</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/0*tkLCm80Z6uW-m6uO" /></figure><p>Followed the <a href="https://github.com/tejas-bal/sfdc-agentforce-experiments/blob/main/prompts/nextStepResponse.txt">agent response</a> to</p><ul><li>Add the Custom Object to a Tab</li><li>Add the Custom Object Tab to an App</li><li>Set Permissions for the Custom Object</li></ul><p>One step missing (maybe my prompt was not clear enough) in instructions was to setup the field level security in the profile for this custom object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q15vXDNBTf_jwmUJ" /></figure><p>Another step missing was to setup the page layout and how to select fields to display for the records of the Approved Food Establishments custom object after navigating to the tab. I added the fields and now I can view it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mTj_n-2lfoSOJYmi" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4AymY9b3ASO8Qh0W" /></figure><p>Prompt to generate Apex code to create records.</p><pre>Please suggest how to create Apex Class in VSCode to import data <br>into Approved_Food_Establishments__c custom object. <br><br>Should I do any setup to call <br>https://fsaopendata.blob.core.windows.net/opendatacatalog/APMSMar25.csv <br>from Apex code? <br><br>Call the above url that returns csv content.<br><br>Read the response and set the column values on <br>Approved_Food_Establishments__c fields:<br><br>AppNo, TradingName, Address1, Address2, Town, Postcode, Country, <br>All_Activities, Cold_Store, CompetentAuthority, GeographicLocalAuthority</pre><p>As per the <a href="https://github.com/tejas-bal/sfdc-agentforce-experiments/blob/main/prompts/apexClassResponse.txt">response</a> I did the following:</p><ul><li>Set Up Remote Site Settings</li><li>Create the <a href="https://github.com/tejas-bal/sfdc-agentforce-experiments/blob/main/force-app/main/default/classes/ImportApprovedFoodEstablishments.cls">Apex Class</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*GeijGLTA_C2BXS_P" /></figure><p>The step to add ImportApprovedFoodEstablishments.cls-meta.xml was missing, so I created one with the below content:</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;ApexClass xmlns=&quot;https://soap.sforce.com/2006/04/metadata&quot;&gt;<br>    &lt;apiVersion&gt;63.0&lt;/apiVersion&gt;<br>    &lt;status&gt;Active&lt;/status&gt;<br>&lt;/ApexClass&gt;</pre><p>The columns indexes in the Apex code for e.g. given below were incorrect.</p><pre>record.Cold_Store__c = columns[8];<br>record.CompetentAuthority__c = columns[9];<br>record.GeographicLocalAuthority__c = columns[10];</pre><p>Prompt to get the right indexes.</p><pre>The csv file has headers like this<br>AppNo,TradingName,Address1,Address2,Address3,Town,Postcode,Country,<br>All_Activities,Part_A__Section_0__General_activity_establishment,<br>Part_A__Section_I__Meat_of_domestic_ungulates,<br>Part_A__Section_II__Meat_from_poultry_and_lagomorphs,<br>Part_A__Section_III__Meat_of_farmed_game,<br>Part_A__Section_IV__Wild_game_meat,<br>Part_A__Section_V__Minced_meat__meat_preparations_and_mechanically_separated_meat,<br>Part_A__Section_VI__Meat_products,<br>Part_A__Section_VII__Live_bivalve_molluscs,<br>Part_A__Section_VIII__Fishery_products,Part_A__Section_IX__Raw_milk_and_dairy_products,<br>Part_A__Section_X__Eggs_and_egg_products,Part_A__Section_XI__Frog_s_legs_and_snails,<br>Part_A__Section_XII__Rendered_animal_fats_and_greaves,<br>Part_A__Section_XIII__Treated_stomachs__bladders_and_intestines,<br>Part_A__Section_XIV__Gelatine,Part_A__Section_XV__Collagen,Part_A__Section_XVI__Highly_Refined_Product,<br>Part_B__Section_I__Sprouts,Part_A__All_sections_,Part B All sections, <br>Species,Remarks,TSE_Feed_ban_registrations_authorisations,Poultry,Bovine,Caprine,<br>Lagomorphs,Ovine,Porcine,Solipeds,Ratite,Wild_Birds,Wild_Lagomorphs,Wild_Ungulates,<br>Wild_Land_mammals_other_than_Wild_Ungulates_and_Wild_Lagomorphs,Auction_Hall,<br>Collection_Centre,Cutting_Plant,Cold_Store,Dispatch_Centre,Packing_Centre,<br>Fresh_Fishery_Products_Plant,Factory_Vessel,Game_Handling_Establishment,<br>Liquid_Egg_Plant,Mince_Meat_Establishment,Meat_Preparation_Establishment,<br>Mechanically_Separated_Meat_Establishment,Purification_Centre,Producing_plant,<br>Processing_Plant,reefer_vessel,Re_Wrappingand_repackaging_establishment,<br>Slaughterhouse,Tannery,Wholesale_Market,Freezer_Vessel,CompetentAuthority,<br>GeographicLocalAuthority,X,Y,AddressWithheld<br><br>I want to get the index of only the fields AppNo, TradingName, Address1, <br>Address2, Town, Postcode, Country, All_Activities, Cold_Store, <br>CompetentAuthority, GeographicLocalAuthority<br><br>For e.g.record.AppNo__c = columns[0]<br>Give the correct column indexes.</pre><p>The agent <a href="https://github.com/tejas-bal/sfdc-agentforce-experiments/blob/main/prompts/correctIndexResponse.txt">responded</a> with the correct column indexes this time:</p><pre>record.Cold_Store__c = columns[39];<br>record.CompetentAuthority__c = columns[63];<br>record.GeographicLocalAuthority__c = columns[64];</pre><p>Apex code to run in (execute anonymous window) the method to import:</p><pre>ImportApprovedFoodEstablishments importer = <br>new ImportApprovedFoodEstablishments();<br><br>importer.importData();</pre><ul><li>This throws error — System.LimitException: Regex too complicated.</li><li>This error occurs due to csvContent.split(‘\n’) on a large csv file.</li><li>Using the agent force suggested code does not work.</li><li>Asking the agent to fix this and the suggestions given were to use StringTokenizer, splitByLines etc which threw method does not exist errors.</li></ul><p>Fixed the <a href="https://github.com/tejas-bal/sfdc-agentforce-experiments/blob/main/force-app/main/default/classes/FixedImportApex.cls">Apex class</a>, to use indexOf and substring methods to create the records.</p><p>Please note that this is not a perfect Apex code and does not account for performance issues and error handling. This was just an experiment code to see if the happy path to create records work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kuLMNWbTElrJ6m2R" /></figure><h3>🚀 Conclusion: AI + Human = Best Results !</h3><p>Using Salesforce AgentForce to generate Apex code for importing CSV data was a great starting point. While the initial code needed some corrections, it significantly accelerated the development process. This highlights the power of AI-assisted coding — it boosts productivity but still requires human expertise to fine-tune the details.</p><p>AI tools like AgentForce can streamline development, reduce effort, and improve efficiency, but they aren’t perfect (yet!). A skilled developer’s touch ensures the final solution is optimized, error-free, and production-ready.</p><p>🔹 AI-assisted coding = Faster development</p><p>🔹 Human expertise = Accuracy &amp; optimization</p><p>🔹 Together, they create the best outcomes!</p><p>💬 Have you tried AI tools for writing Apex? What was your experience?</p><p>Excited to see how AI continues to evolve in the Salesforce ecosystem! 🚀💡</p><p>#Salesforce #Apex #AgentForce #SalesforceDevelopers</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9017691b2606" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a service with Spring Boot and gRPC]]></title>
            <link>https://medium.com/@tejas.bal/this-articles-explores-how-spring-boot-and-grpc-can-work-together-to-build-a-service-by-defining-a-a73d952f13e9?source=rss-e69f2a013500------2</link>
            <guid isPermaLink="false">https://medium.com/p/a73d952f13e9</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[grpc]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Tejas Bal]]></dc:creator>
            <pubDate>Sun, 02 Mar 2025 17:06:36 GMT</pubDate>
            <atom:updated>2025-03-02T17:08:59.348Z</atom:updated>
            <content:encoded><![CDATA[<p>This articles explores how Spring Boot and gRPC can work together to build a service by defining a proto file, generating Java classes, and implement a Spring Boot gRPC server and Java client. The example uses <a href="https://docs.spring.io/spring-grpc/reference/index.html">Spring gRPC</a> to calculate age based on a given date of birth.</p><h3>Features</h3><ul><li>Implements a simple gRPC service using Protocol Buffers</li><li>Calculates age based on the provided birth date</li><li>Spring Boot integration with gRPC</li></ul><h3>Prerequisites</h3><p>Ensure you have the following installed:</p><ul><li>IntelliJ</li><li>Java 21</li><li>Gradle</li></ul><h3>Getting Started</h3><p>Clone the <a href="https://github.com/tejas-bal/SpringGrpcExample.git">Repository</a></p><p>Build and run the application</p><pre>./gradlew build</pre><pre>./gradlew bootRun</pre><p>Testing the gRPC Service</p><p>Install gRPC client:</p><pre>brew install grpcurl</pre><p>Request:</p><pre>grpcurl -d &#39;{&quot;day&quot;:12, &quot;month&quot;:12, &quot;year&quot;: 1987}&#39; -plaintext localhost:9090 AgeService.CalculateAge</pre><p>Response:</p><pre>{<br>  &quot;message&quot;: 37<br>}</pre><h3>Understanding the modules</h3><p>age-proto</p><p>This module defines the rpc in <a href="https://github.com/tejas-bal/SpringGrpcExample/blob/main/age-proto/src/main/proto/age.proto">age-proto/src/main/proto/age.proto</a></p><p>The age service defines the age request that contains day, month and year of birth and the age response has the calculated age. See <a href="https://protobuf.dev/">Protocol Buffers Documentation</a> on how to use the protocol buffer language to structure your protocol buffer data, including .proto file syntax.</p><pre>syntax = &quot;proto3&quot;;</pre><pre>option java_multiple_files = true;<br>option java_package = &quot;com.example.proto&quot;;<br>option java_outer_classname = &quot;AgeProto&quot;;</pre><pre>service AgeService {<br>  rpc CalculateAge (AgeRequest) returns (AgeReply) {<br>  }<br>}</pre><pre>message AgeRequest {<br>  int32 day = 1;<br>  int32 month = 2;<br>  int32 year = 3;<br>}</pre><pre>message AgeReply {<br>  int32 message = 1;<br>}</pre><h3>Breakdown of the Proto File</h3><p>Syntax Declaration</p><pre>syntax = &quot;proto3&quot;;</pre><p>Specifies that this file uses ProtoBuf version 3 (proto3), which is the latest and more efficient version compared to proto2.</p><p>Java-Specific Options</p><pre>option java_multiple_files = true; <br>option java_package = &quot;com.example.proto&quot;; <br>option java_outer_classname = &quot;AgeProto&quot;;</pre><p>java_multiple_files = true</p><ul><li>Generates separate Java classes for each message and service instead of nesting them in one class.</li></ul><p>java_package = “com.example.proto”</p><ul><li>Specifies the Java package name for the generated classes.</li></ul><p>java_outer_classname = “AgeProto”</p><ul><li>Defines the outer wrapper class (if java_multiple_files were false, everything would be inside AgeProto.java).</li></ul><p>Defining the gRPC Service</p><pre>service AgeService { rpc CalculateAge (AgeRequest) returns (AgeReply) { } }</pre><p>Defines a gRPC service named AgeService.</p><p>Contains a remote procedure call (RPC) named CalculateAge, which:</p><ul><li>Takes an AgeRequest as input (birth date).</li><li>Returns an AgeReply (calculated age).</li></ul><p>AgeRequest Message (Request Payload)</p><pre>message AgeRequest { int32 day = 1; int32 month = 2; int32 year = 3; }</pre><p>Defines the input format for the CalculateAge RPC.</p><p>Contains three integer fields:</p><ul><li>day (field 1) → Birth day.</li><li>month (field 2) → Birth month.</li><li>year (field 3) → Birth year.</li></ul><p>AgeReply Message (Response Payload)</p><pre>message AgeReply { int32 message = 1; }</pre><p>Defines the output format for the CalculateAge RPC.</p><p>Contains a single integer field:</p><ul><li>message (field 1) → Stores the calculated age.</li></ul><h3>How the gRPC Call Works</h3><p>Client sends a request with day=12, month=12, year=1987.</p><p>gRPC Server receives the request and calculates the age.</p><p>Server responds with an AgeReply containing the computed age (e.g., 37).</p><p>./gradlew build generates following classes from the above age.proto file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/0*-puD9_1Dxa6sOcMh" /></figure><h3>Breakdown of Gradle Tasks</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A0NpNzIvIPSUnq_A" /></figure><p>This task to generate java classes from proto is defined along with the dependencies in <a href="https://github.com/tejas-bal/SpringGrpcExample/blob/main/age-proto/build.gradle">build.gradle</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xnGPiYcAwQOZYb30" /></figure><p>The dependency “org.springframework.grpc:spring-grpc-spring-boot-starter” is used from the <a href="https://docs.spring.io/spring-grpc/reference/index.html">Spring gRPC project</a> that aims to streamline the development of gRPC applications.</p><p>age-server</p><p>This is the gRPC server that listens for incoming requests and routes them to the service implementation in the <a href="https://github.com/tejas-bal/SpringGrpcExample/blob/main/age-server/src/main/java/com/example/AgeService.java">AgeService.java</a> class that has the logic to calculate the age from the day, month and year provided in the request. This class is annotated with the spring @Service annotation and extends AgeServiceGrpc.AgeServiceImplBase class which is generated as shown above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q2cwNWmtWAtc7PAa" /></figure><p>To get access to the generated classes the following dependency is added in <a href="https://github.com/tejas-bal/SpringGrpcExample/blob/main/age-server/build.gradle">server build.gradle</a></p><pre>implementation project(&#39;:age-proto&#39;)</pre><p><a href="http://ageservicetest.java/">AgeServiceTest.java</a> validates the calculateAge gRPC method, ensuring that it correctly computes a person’s age based on the provided birth date.</p><h3>Key Components of the Test</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZVlUsF0aUkVSlvx1" /></figure><pre>@SpringBootTest(classes = {AgeServiceTest.TestConfig.class})</pre><ul><li>Loads the Spring Boot application context for testing.</li><li>Registers the custom gRPC stub configuration (TestConfig).</li></ul><pre>@EnableAutoConfiguration</pre><ul><li>Automatically configures the necessary Spring Boot components, including gRPC dependencies.</li></ul><pre>@Autowired AgeServiceGrpc.AgeServiceBlockingStub ageServiceBlockingStub;</pre><ul><li>Injects a blocking gRPC stub, which is used to make synchronous calls to the gRPC server.</li><li>This stub is defined in the TestConfig inner class.</li></ul><pre>@Test<br>public void testAgeCalculate()</pre><ul><li>Creates an AgeRequest with the birth date (12-Dec-1987).</li><li>Calls the calculateAge gRPC method via ageServiceBlockingStub.</li><li>Asserts the response to check if the computed age is 37 (assuming the current year is 2024).</li></ul><pre>static class TestConfig</pre><ul><li>Uses @TestConfiguration, ensuring that this configuration is only loaded during testing.</li><li>Defines a gRPC stub bean using AgeServiceGrpc.newBlockingStub().</li><li>Connects to a local gRPC server on port 9090 (assumes the test server is running).</li></ul><p>This test runs in the gradle build as we have the below task in the server build.gradle</p><pre>tasks.named(&#39;test&#39;) {<br>    useJUnitPlatform()<br>}</pre><p>age-client</p><p>This module has <a href="https://github.com/tejas-bal/SpringGrpcExample/blob/main/age-client/src/main/java/com/example/ClientApp.java">ClientApp.java</a> sample class that acts as a gRPC client that connects to a gRPC server and requests an age calculation by sending a birth date (12-Dec-1980). The calculateAge() method can be parameterized to accept the day, month and year rather than hard coding them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2sZhRtlddJx0Bzvn" /></figure><p>The class:</p><ul><li>Declares a blocking gRPC stub, which is used for synchronous communication with the gRPC server.</li><li>Accepts a gRPC channel as a parameter.</li><li>Initializes the blocking stub, allowing the client to make blocking (synchronous) calls to the gRPC server.</li></ul><p>The calculateAge method:</p><ul><li>Builds an AgeRequest with the birth date (12-Dec-1980).</li><li>Calls calculateAge() on the gRPC server using the blockingStub.</li><li>Receives an AgeReply containing the computed age and returns it.</li></ul><p>The main method:</p><ul><li>Creates a gRPC channel to connect to the server running on localhost:9090.</li><li>Instantiates the ClientApp, passing the channel to it.</li><li>Calls calculateAge(), retrieves the age, and logs it.</li><li>Handles errors gracefully using try-catch.</li></ul><h3>IntelliJ screenshots after running the server and client</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RZwtia0LGAbhgZDy" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xJIFFH6QfonQUhJL" /></figure><p>Server Logs:</p><pre>2025-02-09T21:07:03.413-05:00  INFO 63430 --- [ault-executor-0] com.example.AgeService                    : Request Birth Date: 1980-12-12</pre><pre>2025-02-09T21:07:03.414-05:00  INFO 63430 --- [ault-executor-0] com.example.AgeService                   : Calculated Age: 44</pre><h3>Key Takeaways:</h3><ul><li>gRPC provides a faster and more efficient alternative to REST for microservices.</li><li>Spring Boot + gRPC makes integration seamless with auto-configuration.</li><li>Protobuf ensures lightweight and strongly typed message exchange.</li><li>Using gRPC stubs, clients can easily communicate with services.</li></ul><p>As modern applications continue to evolve, gRPC offers a scalable and high-performance solution for inter-service communication. Whether you’re building a real-time system, a distributed microservices architecture, or an event-driven application, gRPC is a powerful tool to consider.</p><p>💬 What’s Next? Have you used gRPC in your projects? Share your thoughts and experiences in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a73d952f13e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comparing Blocking vs Non-Blocking HTTP Clients in Spring: A Performance Analysis]]></title>
            <link>https://medium.com/@tejas.bal/comparing-blocking-vs-non-blocking-http-clients-in-spring-a-performance-analysis-97d764a7e49f?source=rss-e69f2a013500------2</link>
            <guid isPermaLink="false">https://medium.com/p/97d764a7e49f</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Tejas Bal]]></dc:creator>
            <pubDate>Mon, 30 Dec 2024 04:19:51 GMT</pubDate>
            <atom:updated>2024-12-30T04:19:51.359Z</atom:updated>
            <content:encoded><![CDATA[<p>In spring boot application development, performance and scalability are key priorities. One of the most common scenarios where these factors come into play is when making HTTP requests to external APIs. We have an application (<a href="https://github.com/tejas-bal/spring-debugging/tree/main/WeatherService">WeatherService Git Repository)</a> that needs to fetch weather data for a list of different cities. This data is obtained from <a href="https://api.open-meteo.com/v1/forecast?latitude=52.52&amp;longitude=13.41&amp;hourly=temperature_2m">Weather API</a>, and to do so, we need to send multiple HTTP requests. Depending on whether we use a blocking or non-blocking HTTP client, the time taken to fetch all data can vary significantly. In this post, we’ll focus on the differences in execution times between using a RestClient (blocking) and a WebClient (non-blocking), analyzing their behavior based on log output from the underlying threads.</p><h3>Setup: Spring Beans for HTTP Clients</h3><p>We start with an AppConfig class that defines two different beans for making HTTP requests.</p><pre>@Bean<br>public RestClient restClient() {<br>    return RestClient.builder()<br>            .baseUrl(&quot;https://api.open-meteo.com&quot;)<br>            .build();<br>}</pre><pre>@Bean<br>public WebClient webClient() {<br>    return WebClient.builder()<br>            .baseUrl(&quot;https://api.open-meteo.com&quot;)<br>            .build();<br>}</pre><p>The RestClient is a blocking client, and the WebClient is a non-blocking client. Both are configured to interact with the same weather API (https://api.open-meteo.com), which provides forecast data for various cities.</p><p>We also define a map of coordinates representing multiple cities.</p><pre>@Bean<br>public Map&lt;Double, Double&gt; coordinates() {<br>    return Map.ofEntries(<br>            Map.entry(35.6895, 139.6917),  // Tokyo<br>            Map.entry(-33.8688, 151.2093), // Sydney<br>            // ... (more cities here)<br>    );<br>}</pre><p>See <a href="https://github.com/tejas-bal/spring-debugging/blob/main/WeatherService/src/main/java/com/weather/AppConfig.java">AppConfig.java</a></p><h3>Non-Blocking Service (WebClient)</h3><p>Here is the code for the non-blocking service using WebClient:</p><pre>public Mono&lt;Forecast&gt; fetchData(Double latitude, Double longitude) {<br>    <br>String uri = &quot;/v1/forecast?latitude=&quot; + latitude + &quot;&amp;longitude=&quot; + longitude + &quot;&amp;hourly=temperature_2m&quot;;</pre><pre>    return webClient.get()<br>            .uri(uri)<br>            .retrieve()<br>            .bodyToMono(Forecast.class);<br>}</pre><p>The Mono return type indicates that the method is non-blocking. The WebClient allows the request to proceed asynchronously, freeing up the thread to handle other tasks while waiting for the response.</p><p>See <a href="https://github.com/tejas-bal/spring-debugging/blob/main/WeatherService/src/main/java/com/weather/NonBlockingService.java">NonBlockingService.java</a></p><h3>Blocking Service (RestClient)</h3><p>In contrast, the blocking service using RestClient looks like this:</p><pre>public Forecast fetchData(Double latitude, Double longitude) {<br>    <br>String uri = &quot;/v1/forecast?latitude=&quot; + latitude + &quot;&amp;longitude=&quot; + longitude + &quot;&amp;hourly=temperature_2m&quot;;<br>   <br> return restClient.get()<br>            .uri(uri)<br>            .retrieve()<br>            .body(Forecast.class);<br>}</pre><p>The method blocks until it receives the response, meaning that the current thread cannot handle any other requests during the API call. This results in a synchronous and blocking execution.</p><p>See <a href="https://github.com/tejas-bal/spring-debugging/blob/main/WeatherService/src/main/java/com/weather/BlockingService.java">BlockingService.java</a></p><h3>Performance Test: Logging Thread Information</h3><p>Run the command after cloning the <a href="https://github.com/tejas-bal/spring-debugging">Git Repository</a></p><pre>cd WeatherService<br>./gradlew clean build --info</pre><p>Above command builds the WeatherService module and runs the <a href="https://github.com/tejas-bal/spring-debugging/blob/main/WeatherService/src/test/java/com/weather/SmokeTest.java">SmokeTest.java</a>. Now, let’s take a look at the logs generated when both clients are used to fetch data for 35 cities.</p><p>Below are the logs:</p><p>RestClient Logs (Blocking Client):</p><p><a href="https://github.com/tejas-bal/spring-debugging/blob/main/WeatherService/src/main/java/com/weather/RestClientRunner.java">RestClientRunner.java</a></p><pre>[Test worker] com.weather.RestClientRunner: RestClientRunner has started!<br>[Test worker] com.weather.RestClientRunner: Got weather data for 35 cities<br>[Test worker] com.weather.RestClientRunner: Time to get weather for <br>all cities using blocking rest client is : 4481 ms</pre><p>WebClient Logs (Non-Blocking Client):</p><p><a href="https://github.com/tejas-bal/spring-debugging/blob/main/WeatherService/src/main/java/com/weather/WebClientRunner.java">WebClientRunner.java</a></p><pre>[Test worker] com.weather.WebClientRunner: WebClientRunner has started!<br>[ctor-http-nio-2] com.weather.WebClientRunner: All API calls completed!<br>[ctor-http-nio-2] com.weather.WebClientRunner: Got weather data for 35 cities<br>[ctor-http-nio-2] com.weather.WebClientRunner: Time to get weather for <br>all cities using non-blocking web client is : 483 ms</pre><h3>Key Insights:</h3><blockquote><em>Execution Time Difference:</em></blockquote><p>The RestClient (blocking) takes 4481 ms to complete all the requests for 35 cities.</p><p>The WebClient (non-blocking) takes 483 ms — this is nearly a 9x speed improvement!</p><blockquote><em>Threading Behavior:</em></blockquote><p>For RestClient, the logs show that the task is executed by a single thread (e.g., Test worker), blocking the thread while waiting for each API response.</p><p>For WebClient, the logs show the use of http-nio threads. These threads allow the application to continue processing other requests while waiting for responses from the API, leading to a significant reduction in total time.</p><p>In the context of Spring WebFlux and WebClient, http-nio threads refer to the threads used by the non-blocking I/O (NIO) model that underpins the server’s handling of HTTP requests and responses. Specifically, these threads are part of the Netty server, which is commonly used by Spring WebFlux for non-blocking and asynchronous operations.</p><h3>Why WebClient Is Faster:</h3><blockquote><em>Non-blocking I/O:</em></blockquote><p>WebClient uses non-blocking I/O, meaning that when a request is made, it doesn’t block the current thread while waiting for the response. Instead, it can initiate other tasks in parallel. The underlying Netty server processes requests asynchronously, using fewer threads and utilizing resources more efficiently.</p><blockquote><em>Thread Reuse:</em></blockquote><p>RestClient, being blocking, requires a dedicated thread for each request. In contrast, WebClient doesn’t need a new thread for every request, as it leverages an event loop to handle multiple requests concurrently on a smaller set of threads.</p><blockquote><em>Resource Utilization:</em></blockquote><p>With RestClient, threads are tied up waiting for the API responses, causing inefficiencies. For WebClient, while a thread is waiting for data from the API, other tasks can be processed, leading to a much more efficient use of system resources.</p><h3>Conclusion:</h3><p>When choosing between RestClient and WebClient in a Spring application, consider the nature of your tasks. If your application needs to handle a large number of concurrent HTTP requests or requires scalability, WebClient (non-blocking) is the better choice. The performance improvements are clear, as demonstrated by the logs and execution times in this article.</p><p>By switching from a blocking to a non-blocking client, we’ve not only reduced the overall time for the operation but also improved the efficiency of thread usage. This makes WebClient a more suitable option for high-performance, scalable applications, especially in modern micro-services architectures where I/O-bound tasks are common.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97d764a7e49f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How a simple mistake in handling concurrent requests can break a Spring Boot Application]]></title>
            <link>https://medium.com/@tejas.bal/how-a-simple-mistake-in-handling-concurrent-requests-can-break-a-spring-boot-application-2346c8f68751?source=rss-e69f2a013500------2</link>
            <guid isPermaLink="false">https://medium.com/p/2346c8f68751</guid>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Tejas Bal]]></dc:creator>
            <pubDate>Sun, 29 Dec 2024 01:16:22 GMT</pubDate>
            <atom:updated>2024-12-29T01:18:48.340Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s fast-paced development world, performance and reliability are crucial. When building micro-services, handling multiple requests concurrently is often necessary to meet the demands of modern applications. However, in parallel processing, especially in multi-threaded environments, thread safety becomes a critical concern. This is just a simple example to demonstrate how a mistake in handling concurrent requests can break the Spring Boot Application.</p><h3>The Use Case: Handling Multiple Requests</h3><p>An application is designed to process a simple addition task via a REST endpoint. The business logic behind the /v1/add endpoint involves receiving a list of integers, performing a summation, and returning the result. The sum is calculated by a service that simulates heavy processing by introducing a delay of 5 seconds.</p><p>The challenge faced is ensuring that multiple requests can be handled concurrently without interference, as these requests need to be processed asynchronously. This is a perfect use case for multi-threading: we can submit multiple requests in parallel using ExecutorService and test the application’s behavior under load.</p><h3>Application Code</h3><p><a href="https://github.com/tejas-bal/spring-debugging/tree/main/AdditionModule">Github Repository</a></p><p><a href="https://github.com/tejas-bal/spring-debugging/blob/main/AdditionModule/src/main/java/com/example/controller/AddController.java">AddController</a>, <a href="https://github.com/tejas-bal/spring-debugging/blob/main/AdditionModule/src/main/java/com/example/service/AddService.java">AddService</a>, <a href="https://github.com/tejas-bal/spring-debugging/blob/main/AdditionModule/src/test/java/com/example/AddControllerTest.java">AddControllerTest</a></p><p>Clone the repository, run the <a href="https://github.com/tejas-bal/spring-debugging/blob/main/AdditionModule/src/main/java/com/example/Application.java">Application</a> and hit the controller with the curl command given below:</p><h3>Request</h3><pre>curl -X POST http://localhost:8080/v1/add \<br>-H &quot;Content-Type: application/json&quot; \<br>-d &#39;{<br>  &quot;values&quot;: [2, 3]<br>}&#39;</pre><h3>Response</h3><pre>{&quot;message&quot; : 5}</pre><h3>Passing Test</h3><pre>/**<br> * Request body has values 2 and 3, expectation is that response is 2 + 3 = 5<br> * Single request works correctly<br> */<br>@Test<br>public void testController_singleRequest() throws Exception {<br>    Request request = new Request();<br>    request.setValues(List.of(2, 3));<br>    Response response = new Response(5);<br>    mockMvc.perform(post(&quot;/v1/add&quot;)<br>            .contentType(MediaType.APPLICATION_JSON)<br>            .content(objectMapper.writeValueAsString(request)))<br>            .andExpect(status().isOk())<br>            .andExpect(content().json(objectMapper.writeValueAsString(response)));<br>}</pre><h3>The Issue:</h3><p>Everything seemed to work as expected initially. Then I ran two requests in separate terminal tabs and the response was incorrect for request in the left tab. Then I used ExecutorService to execute two requests simultaneously in my test and the test failed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qE7_Arh10O_VQR-k" /></figure><pre>@Test<br>@SuppressWarnings(&quot;all&quot;)<br>public void testController_multipleRequests() throws Exception {<br>    <br>    Request request1 = new Request();<br>    request1.setValues(List.of(2, 3));<br>    Response response1 = new Response(5);<br><br>    Request request2 = new Request();<br>    request2.setValues(List.of(1, 8));<br>    Response response2 = new Response(9);<br><br>    ExecutorService executorService = Executors.newFixedThreadPool(2);<br><br>    Future&lt;?&gt; future1 = executorService.submit(() -&gt; {<br>        try {<br>            mockMvc.perform(post(&quot;/v1/add&quot;)<br>                            .contentType(MediaType.APPLICATION_JSON)<br>                            .content(objectMapper.writeValueAsString(request1)))<br>                    .andExpect(status().isOk())<br>                    .andExpect(content().json(objectMapper.writeValueAsString(response1)));<br>        } catch (Exception e) {<br>            // swallow<br>        }<br>    });<br><br>    Future&lt;?&gt; future2 = executorService.submit(() -&gt; {<br>        try {<br>            mockMvc.perform(post(&quot;/v1/add&quot;)<br>                            .contentType(MediaType.APPLICATION_JSON)<br>                            .content(objectMapper.writeValueAsString(request2)))<br>                    .andExpect(status().isOk())<br>                    .andExpect(content().json(objectMapper.writeValueAsString(response2)));<br>        } catch (Exception e) {<br>           // swallow<br>        }<br>    });<br><br>    future1.get();<br>    future2.get();<br><br>    executorService.shutdown();<br>}</pre><p>Each request will submit data for summation, and the expected result is a simple sum of the numbers in the request:</p><ul><li>First Request: 2 + 3 = 5</li><li>Second Request : 1 + 8 = 9</li></ul><p>However, the test fails with an unexpected result:</p><pre>java.lang.AssertionError: message <br>Expected: 5 <br>     got: 9</pre><h3>Steps to reproduce</h3><pre>git clone https://github.com/tejas-bal/spring-debugging.git</pre><pre>cd AdditionModule</pre><pre>./gradlew build</pre><pre>Observe test errors</pre><p>One more way to reproduce the issue is to run the app using command ./gradlew bootRun and hit the controller with curl command simultaneously from separate terminal tabs as shown in the picture above.</p><h3>Root cause analysis</h3><p>Upon further investigation, I realized that the issue arose from the way the AddService was designed. The service class was sharing an instance variable (request) to store the input data for each request:</p><pre>@Service<br>public class AddService {<br><br>    private Request request;<br><br>    public Response execute(Request request) throws Exception {<br>        this.request = request;<br>        return addNumbers();<br>    }<br><br>    private Response addNumbers() throws Exception {<br>        // Simulating a time delay<br>        Thread.sleep(5000);<br>        Integer sum = this.request.getValues().stream().reduce(Integer::sum).get();<br>        return new Response(sum);<br>    }<br>}</pre><p>The problem here is that the request object is being shared between multiple threads. When two requests are executed concurrently, they will both update the same instance variable (request) in the AddService. This leads to the unintended overwriting of the request data between requests, causing them to interfere with each other.</p><h3>The Resolution: Removing Shared State</h3><p>To resolve the issue, we need to ensure that each request is handled independently, without sharing state between threads. The solution is straightforward: instead of using a shared instance variable for the request object, modify the service to use method-local variables. This ensures that each request has its own instance of the data it needs to process.</p><p>Broken AddService:</p><pre>@Service<br>public class AddService {<br><br>    private Request request;<br><br>    public Response execute(Request request) throws Exception {<br>        this.request = request;<br>        return addNumbers();<br>    }<br><br>    private Response addNumbers() throws Exception {<br>        // Introduce a delay of 5 seconds (slow backend system simulation)<br>        Thread.sleep(5000);<br>        Integer sum = this.request.getValues().stream().reduce(Integer::sum).get();<br>        return new Response(sum);<br>    }<br>}</pre><p>Here’s the corrected version of the AddService:</p><pre>@Service<br>public class AddService {<br><br>    public Response execute(Request request) throws Exception {<br>        return addNumbers(request);<br>    }<br><br>    private Response addNumbers(Request request) throws Exception {<br>        // Introduce a delay of 5 seconds (slow backend system simulation)<br>        Thread.sleep(5000);<br>        Integer sum = request.getValues().stream().reduce(Integer::sum).get();<br>        return new Response(sum);<br>    }<br>}</pre><p>By eliminating the shared request instance variable, each request now works with its own data, and the results no longer interferes with each other and the test passes successfully.</p><h3>Key Takeaways</h3><ol><li>Thread Safety in Shared Resources: When handling concurrent requests, ensure that shared resources, such as instance variables, are not modified by multiple threads simultaneously. This can lead to race conditions and unpredictable behavior.</li><li>Statelessness is Key: Services should be stateless, meaning they should not rely on instance variables to store request-specific data. Instead, pass all necessary data through method parameters, ensuring each request is isolated.</li><li>Testing Concurrent Requests: When testing multi-threaded applications, it’s important to account for the possibility of race conditions and shared state. Unit and integration tests should be designed to check the behavior of services under load and with concurrent requests.</li></ol><h3>Conclusion</h3><p>This example shows the importance of ensuring thread safety and statelessness in services handling concurrent requests. By removing shared state in the AddService, we are able to process multiple requests concurrently without any issues.</p><p>If you’re building a multi-threaded service, take care to design for thread safety early on — this will save you from complex issues and help your applications scale efficiently and reliably.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2346c8f68751" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Trailhead — Platform Developer II — Use Custom Metadata Types in Formulas, Default Values, and…]]></title>
            <link>https://medium.com/@tejas.bal/trailhead-platform-developer-ii-use-custom-metadata-types-in-formulas-default-values-and-8b37d8ed630a?source=rss-e69f2a013500------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b37d8ed630a</guid>
            <category><![CDATA[salesforce-productivity]]></category>
            <category><![CDATA[trailblazercommunity]]></category>
            <category><![CDATA[trailblazer]]></category>
            <category><![CDATA[trailhead]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Tejas Bal]]></dc:creator>
            <pubDate>Tue, 28 Jun 2022 17:31:50 GMT</pubDate>
            <atom:updated>2022-06-28T17:31:50.256Z</atom:updated>
            <content:encoded><![CDATA[<h3>Trailhead — Platform Developer II — Use Custom Metadata Types in Formulas, Default Values, and Validation Rules</h3><p>Let’s blaze the Platform Developer II trail mix together !</p><p><strong>Module</strong><br>Use Custom Metadata Types in Formulas, Default Values, and Validation Rules</p><p><strong>Trail<br></strong><a href="https://trailhead.salesforce.com/en/users/strailhead/trailmixes/prepare-for-your-salesforce-platform-developer-ii-credential">https://trailhead.salesforce.com/en/users/strailhead/trailmixes/prepare-for-your-salesforce-platform-developer-ii-credential</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FsXrYqP7bMWM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsXrYqP7bMWM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FsXrYqP7bMWM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0b81a90a8b7e5a9dd1bf790e162241a9/href">https://medium.com/media/0b81a90a8b7e5a9dd1bf790e162241a9/href</a></iframe><p>For more videos on trailhead sessions, please subscribe to my YouTube <a href="https://www.youtube.com/channel/UC3M3CQhWSRPEL0EZCTuev0A">channel</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b37d8ed630a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Trailhead — Platform Developer II — Create and Manage Custom Metadata Types]]></title>
            <link>https://medium.com/@tejas.bal/trailhead-platform-developer-ii-create-and-manage-custom-metadata-types-877f3a028348?source=rss-e69f2a013500------2</link>
            <guid isPermaLink="false">https://medium.com/p/877f3a028348</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-productivity]]></category>
            <category><![CDATA[trailblazercommunity]]></category>
            <category><![CDATA[trailhead]]></category>
            <category><![CDATA[trailblazer]]></category>
            <dc:creator><![CDATA[Tejas Bal]]></dc:creator>
            <pubDate>Thu, 23 Jun 2022 18:14:11 GMT</pubDate>
            <atom:updated>2022-06-23T18:14:11.378Z</atom:updated>
            <content:encoded><![CDATA[<h3>Trailhead — Platform Developer II — Create and Manage Custom Metadata Types</h3><p>Let’s blaze the Platform Developer II trail mix together !</p><p><strong>Module</strong><br>Create and Manage Custom Metadata Types</p><p><strong>Trail<br></strong><a href="https://trailhead.salesforce.com/en/users/strailhead/trailmixes/prepare-for-your-salesforce-platform-developer-ii-credential">https://trailhead.salesforce.com/en/users/strailhead/trailmixes/prepare-for-your-salesforce-platform-developer-ii-credential</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F9NWlRx5tR50%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D9NWlRx5tR50&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F9NWlRx5tR50%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7266eea0a8448068c5ec73092d647448/href">https://medium.com/media/7266eea0a8448068c5ec73092d647448/href</a></iframe><p>For more videos on trailhead sessions, please subscribe to my YouTube <a href="https://www.youtube.com/channel/UC3M3CQhWSRPEL0EZCTuev0A">channel</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=877f3a028348" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Trailhead — Platform Developer II — Company Wide Org Settings]]></title>
            <link>https://medium.com/@tejas.bal/trailhead-platform-developer-ii-company-wide-org-settings-dec9562b3f89?source=rss-e69f2a013500------2</link>
            <guid isPermaLink="false">https://medium.com/p/dec9562b3f89</guid>
            <category><![CDATA[trailhead]]></category>
            <category><![CDATA[trailblazer]]></category>
            <category><![CDATA[trailblazercommunity]]></category>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[salesforce-productivity]]></category>
            <dc:creator><![CDATA[Tejas Bal]]></dc:creator>
            <pubDate>Thu, 23 Jun 2022 18:09:52 GMT</pubDate>
            <atom:updated>2022-06-23T18:10:58.619Z</atom:updated>
            <content:encoded><![CDATA[<h3>Trailhead — Platform Developer II — Company Wide Org Settings</h3><p>Let’s blaze the Platform Developer II trail mix together !</p><p><strong>Module</strong><br>Company Wide Org Settings</p><p><strong>Trail<br></strong><a href="https://trailhead.salesforce.com/en/users/strailhead/trailmixes/prepare-for-your-salesforce-platform-developer-ii-credential">https://trailhead.salesforce.com/en/users/strailhead/trailmixes/prepare-for-your-salesforce-platform-developer-ii-credential</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FA-NdcZYShWk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DA-NdcZYShWk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FA-NdcZYShWk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/148754f4b0c5798940b7953219560b27/href">https://medium.com/media/148754f4b0c5798940b7953219560b27/href</a></iframe><p>For more videos on trailhead sessions, please subscribe to my YouTube <a href="https://www.youtube.com/channel/UC3M3CQhWSRPEL0EZCTuev0A">channel</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dec9562b3f89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring Boot | Visual Studio Code | Random Coding Session]]></title>
            <link>https://medium.com/@tejas.bal/spring-boot-visual-studio-code-random-coding-session-9fa5c9549d1a?source=rss-e69f2a013500------2</link>
            <guid isPermaLink="false">https://medium.com/p/9fa5c9549d1a</guid>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[visual-studio-code]]></category>
            <category><![CDATA[youtube]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Tejas Bal]]></dc:creator>
            <pubDate>Wed, 22 Jun 2022 17:13:13 GMT</pubDate>
            <atom:updated>2022-06-22T17:13:13.503Z</atom:updated>
            <content:encoded><![CDATA[<p>Random coding at night is my hobby and I just can’t stop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EJCSc0OxtB7wtCR0sOjMIg.png" /></figure><blockquote>In this video I show an example of how to create a Spring Boot Web application in Visual Studio Code. Use case is to fetch data from CSV file, map it to a Java object and provide JSON responses to some GET requests</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F2sJbvSDFUog%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D2sJbvSDFUog&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F2sJbvSDFUog%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2bc0beda3bf42a41421ae360402e01d2/href">https://medium.com/media/2bc0beda3bf42a41421ae360402e01d2/href</a></iframe><p>For more videos on random coding sessions, please subscribe to my YouTube <a href="https://www.youtube.com/channel/UC3M3CQhWSRPEL0EZCTuev0A">channel</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9fa5c9549d1a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating Indian Banks Fixed Deposit Interest Rates Data in Salesforce]]></title>
            <link>https://medium.com/@tejas.bal/integrating-indian-banks-fixed-deposit-interest-rates-data-in-salesforce-e183c01e5c82?source=rss-e69f2a013500------2</link>
            <guid isPermaLink="false">https://medium.com/p/e183c01e5c82</guid>
            <category><![CDATA[no-code]]></category>
            <category><![CDATA[no-code-development]]></category>
            <category><![CDATA[salesforce-productivity]]></category>
            <category><![CDATA[banks]]></category>
            <category><![CDATA[salesforce]]></category>
            <dc:creator><![CDATA[Tejas Bal]]></dc:creator>
            <pubDate>Sun, 19 Jun 2022 14:03:59 GMT</pubDate>
            <atom:updated>2022-06-19T14:03:59.228Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gb02lOVl8Mqs4h8c-hgGwQ.png" /></figure><p>I was browsing through fixed deposit interest rates offered by different banks in India and thought it would be great to visualize this data. Power of Salesforce came to mind.</p><blockquote>In just 20 minutes I was able to prepare the data, import it in Salesforce, map it to a custom object and create report and dashboard to visualize the interest rates.</blockquote><blockquote>With zero code.</blockquote><p>Here is the video, hope you like it.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FZ8m2Odscrb8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZ8m2Odscrb8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FZ8m2Odscrb8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c4f0261b511dfe1098f326de1e6dc2a/href">https://medium.com/media/4c4f0261b511dfe1098f326de1e6dc2a/href</a></iframe><p>For more interesting content around Salesforce Integrations please subscribe to my YouTube <a href="https://lnkd.in/dfH4rX_7">channel</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e183c01e5c82" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>