<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Golang on Rizky Note's</title><link>https://rizkynotes.com/en/tags/golang/</link><description>Recent content in Golang on Rizky Note's</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 06 Feb 2025 09:46:35 +0700</lastBuildDate><atom:link href="https://rizkynotes.com/en/tags/golang/index.xml" rel="self" type="application/rss+xml"/><item><title>Connection Pool in Backend Development: Basic Concept, Benefits, and Implementation</title><link>https://rizkynotes.com/en/posts/connection-pool-in-backend-development-basic-concept-benefits-and-implementation/</link><pubDate>Thu, 06 Feb 2025 09:46:35 +0700</pubDate><guid>https://rizkynotes.com/en/posts/connection-pool-in-backend-development-basic-concept-benefits-and-implementation/</guid><description>&lt;h5 id="photo-by-christine-tutunjian-on-unsplash">Photo by &lt;a href="https://unsplash.com/@buying_thyme?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Christine Tutunjian&lt;/a> on &lt;a href="https://unsplash.com/photos/assorted-color-balloons-7oLuQ0ZEQ9A?utm_content=creditCopyText&amp;utm_medium=referral&amp;utm_source=unsplash">Unsplash&lt;/a>&lt;/h5>
&lt;p>Connection Pooling is a mechanism that creates and manages a pool of database connections that can be used by applications. This concept is important in managing connections to the database with the aim of optimizing resource use and improving the performance of applications that frequently interact with the database.&lt;/p>
&lt;p>Instead of creating a new connection every time it is needed (which is expensive in terms of time and resources), connection pools allow applications to borrow/use existing connections and return them to the pool when they are finished using them. That&amp;rsquo;s why it&amp;rsquo;s called &lt;strong>connection pool&lt;/strong>.&lt;/p></description></item><item><title>Mastering Enums in Go</title><link>https://rizkynotes.com/en/posts/mastering-enums-in-go/</link><pubDate>Tue, 31 Dec 2024 15:18:47 +0700</pubDate><guid>https://rizkynotes.com/en/posts/mastering-enums-in-go/</guid><description>&lt;h5 id="image-by">&lt;em>Image by &lt;a href="https://unsplash.com/@sloppyperfectionist">Hans-Peter Gauster&lt;/a> from &lt;a href="https://unsplash.com/photos/stack-of-jigsaw-puzzle-pieces-3y1zF4hIPCg">Unsplash&lt;/a>&lt;/em>&lt;/h5>
&lt;p>Let&amp;rsquo;s say we are building an E-commerce API that will receive several orders, each order process has several statuses such as &lt;em>Pending, Processed, Shipped, Delivered, Cancelled&lt;/em>. And our application receives input strings which will be stored in the database, for example the status is Processed, received Process, Processing or something else that causes data inconsistencies. Here Enum has an important role.&lt;/p>
&lt;p>In Golang enums unlike other languages ​​such as Java or C# which offer built-in support for enums, Go takes a different approach. In Go, enums are not a native language feature, but developers have several techniques that can be used to achieve similar functionality.&lt;/p></description></item><item><title>How to Handle Time Zones and Sync Your Software on the Server Side Using Go</title><link>https://rizkynotes.com/en/posts/how-to-handle-time-zones-and-sync-your-software-on-the-server-side-using-go/</link><pubDate>Tue, 01 Oct 2024 09:36:41 +0700</pubDate><guid>https://rizkynotes.com/en/posts/how-to-handle-time-zones-and-sync-your-software-on-the-server-side-using-go/</guid><description>&lt;p>When your application starts on a large scale, the increase in users will increase. What is very likely to happen is that the user&amp;rsquo;s location is not only in the same area, it could be in another area that has a different time zone. So as a Backend developer, things related to handling time zone differences are very important to think about.&lt;/p>
&lt;p>I recently came across an issue involving time zones. Let&amp;rsquo;s be honest, dealing with dates and times is one of the most complicated areas a human being has to deal with. And this was an opportunity for me to learn how to properly handle dates and times on the server side.&lt;/p></description></item></channel></rss>