<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: pranav tiwari</title>
    <description>The latest articles on DEV Community by pranav tiwari (@pranavt84).</description>
    <link>https://dev.to/pranavt84</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2408514%2Ff6149b8b-c866-4c42-ba6f-3b154adac63f.jpeg</url>
      <title>DEV Community: pranav tiwari</title>
      <link>https://dev.to/pranavt84</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pranavt84"/>
    <language>en</language>
    <item>
      <title>Kafka Producer Important Properties</title>
      <dc:creator>pranav tiwari</dc:creator>
      <pubDate>Mon, 02 Dec 2024 17:46:27 +0000</pubDate>
      <link>https://dev.to/pranavt84/kafka-producer-important-properties-395k</link>
      <guid>https://dev.to/pranavt84/kafka-producer-important-properties-395k</guid>
      <description>&lt;p&gt;Kafka guarantees ordering within a partition, but this isn’t always the case.&lt;/p&gt;

&lt;p&gt;If you don’t fully understand Kafka producer properties or configure them incorrectly, you could face issues in production.&lt;/p&gt;

&lt;p&gt;For example, if Batch 1 is sent asynchronously and Batch 2 is sent before Batch 1’s acknowledgment, Kafka may deliver Batch 2 first, breaking the order.&lt;/p&gt;

&lt;p&gt;To prevent this, set max.in.flight.requests.per.connection to 1, ensuring Batch 2 isn't sent until Batch 1’s acknowledgment is received.&lt;/p&gt;

&lt;p&gt;If you want to read more about such properties related to Kafka Producer head over to my blog: &lt;a href="https://medium.com/@pranavt84/optimizing-kafka-producer-performance-key-configuration-properties-9212b3d7fa01" rel="noopener noreferrer"&gt;https://medium.com/@pranavt84/optimizing-kafka-producer-performance-key-configuration-properties-9212b3d7fa01&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This will enhance your understanding of Kafka, boosting your confidence when deploying it in production or during interviews.&lt;/p&gt;

</description>
      <category>kafka</category>
      <category>confluent</category>
      <category>kafkaproducer</category>
      <category>systemdesign</category>
    </item>
    <item>
      <title>ReentrantReadWriteLock</title>
      <dc:creator>pranav tiwari</dc:creator>
      <pubDate>Wed, 27 Nov 2024 03:44:05 +0000</pubDate>
      <link>https://dev.to/pranavt84/reentrantreadwritelock-2fd</link>
      <guid>https://dev.to/pranavt84/reentrantreadwritelock-2fd</guid>
      <description>&lt;p&gt;Unlike traditional databases, Java provides a feature through the ReentrantReadWriteLock that allows you to acquire either a read lock or a write lock at a time. &lt;/p&gt;

&lt;p&gt;If you're looking to build a highly performant concurrent application, using the ReentrantReadWriteLock can be a great choice.&lt;/p&gt;

&lt;p&gt;You can learn more about how it works and how to use it in my blog post: &lt;a href="https://medium.com/@pranavt84/understanding-reentrantreadwritelock-in-java-a-controlled-approach-to-thread-management-4368e33a96d6" rel="noopener noreferrer"&gt;Understanding ReentrantReadWriteLock in Java: A Controlled Approach to Thread Management&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you understand its benefits, you'll be in a better position to choose ReentrantReadWriteLock over other alternatives like ReentrantLock and the synchronized keyword.&lt;/p&gt;

&lt;h1&gt;
  
  
  java #multuithreading #concurrency #readlock #writelock #ReentrantReadWriteLock
&lt;/h1&gt;

</description>
      <category>java</category>
      <category>multithreading</category>
      <category>readlock</category>
      <category>writelock</category>
    </item>
    <item>
      <title>ReentrantLock in Java</title>
      <dc:creator>pranav tiwari</dc:creator>
      <pubDate>Fri, 22 Nov 2024 04:44:41 +0000</pubDate>
      <link>https://dev.to/pranavt84/reentrantlock-in-java-2bdm</link>
      <guid>https://dev.to/pranavt84/reentrantlock-in-java-2bdm</guid>
      <description>&lt;p&gt;Always use synchronized in Java? Let's explore the ReentrantLock class (a powerful alternative).&lt;br&gt;
I've written a blog that explains things you need to know about ReentrantLock.&lt;/p&gt;

&lt;p&gt;Once you understand what ReentrantLock is and why it is there, you'll realize why Java is a popular choice for backend programming, especially in highly concurrent applications.&lt;/p&gt;

&lt;h1&gt;
  
  
  java #multithreading #concurrency #concurrentapplications #backend
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://medium.com/@pranavt84/reentrantlock-a-controlled-approach-to-resource-locking-and-thread-management-in-highly-concurrent-f8ce501c059f" rel="noopener noreferrer"&gt;https://medium.com/@pranavt84/reentrantlock-a-controlled-approach-to-resource-locking-and-thread-management-in-highly-concurrent-f8ce501c059f&lt;/a&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>multithreading</category>
      <category>programming</category>
      <category>backend</category>
    </item>
    <item>
      <title>Kafka</title>
      <dc:creator>pranav tiwari</dc:creator>
      <pubDate>Tue, 19 Nov 2024 02:38:33 +0000</pubDate>
      <link>https://dev.to/pranavt84/kafka-e5o</link>
      <guid>https://dev.to/pranavt84/kafka-e5o</guid>
      <description>&lt;p&gt;Many companies extensively use Kafka in their backend system to handle immense loads.&lt;/p&gt;

&lt;p&gt;Today, I explored some key Kafka broker properties essential for anyone working with Kafka. Understanding these settings will significantly deepen your knowledge of how Kafka behaves and operates in a distributed environment.&lt;br&gt;
For more details, check out the blog I wrote. It’s straight to the point—no fluff, just the essentials.&lt;br&gt;
Read the full post here. &lt;a href="https://lnkd.in/gAdk_TMJ" rel="noopener noreferrer"&gt;https://lnkd.in/gAdk_TMJ&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As this is my first blog, I welcome any feedback or suggestions!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
