<?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: Katappa Kautilya</title>
    <description>The latest articles on DEV Community by Katappa Kautilya (@cyberghost2023).</description>
    <link>https://dev.to/cyberghost2023</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%2F1747292%2F40ccffb7-064c-4702-9886-64e8c90fe485.png</url>
      <title>DEV Community: Katappa Kautilya</title>
      <link>https://dev.to/cyberghost2023</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cyberghost2023"/>
    <language>en</language>
    <item>
      <title>Handling large amount of requests with map editing</title>
      <dc:creator>Katappa Kautilya</dc:creator>
      <pubDate>Mon, 08 Jul 2024 12:35:25 +0000</pubDate>
      <link>https://dev.to/cyberghost2023/handling-large-amount-of-requests-with-map-editing-27g5</link>
      <guid>https://dev.to/cyberghost2023/handling-large-amount-of-requests-with-map-editing-27g5</guid>
      <description>&lt;p&gt;I am writing a Golang backend which is hit directly by android app.&lt;br&gt;
I am storing app config data in Elasticsearch and and when a request comes i check in local cache if it is present and if not fetch from Elasticsearch. But i also want to update few fields of response so i am updating the response like&lt;br&gt;
response.Hits.Hits[0].Source["current_time"] = utils.GetCurrentTimeInMillis()&lt;/p&gt;

&lt;p&gt;It is throwing error:concurrent read and write. It can be handled with mutex lock but the number of requests will be approx, 200K per minute and because of this i am getting high api latency.&lt;br&gt;
How can i handle it, can someone help?&lt;/p&gt;

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