<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>API on Panji Gautama</title><link>https://panjigautama.com/categories/api/</link><description>Recent content in API on Panji Gautama</description><generator>Hugo</generator><language>en</language><copyright>Copyright © Panji Gautama</copyright><lastBuildDate>Fri, 29 Dec 2023 13:46:50 +0000</lastBuildDate><atom:link href="https://panjigautama.com/categories/api/index.xml" rel="self" type="application/rss+xml"/><item><title>Redis use-cases aside from Cache</title><link>https://panjigautama.com/redis-use-cases-aside-from-cache/</link><pubDate>Fri, 29 Dec 2023 13:46:50 +0000</pubDate><guid>https://panjigautama.com/redis-use-cases-aside-from-cache/</guid><description>&lt;p&gt;&lt;img src="https://panjigautama.com/images/Pixel-Art.gif" alt=""&gt;&lt;/p&gt;
&lt;p&gt;Redis can be more impactful aside from caching. Here are a few other use cases :&lt;br&gt;
1️⃣ As a persistent storage for use cases like shopping carts, user profiles, and social-media-related posts/newsfeeds. Easily sorted set simply by ZRANGE&lt;br&gt;
2️⃣ Tracking state with Bitmaps, easily track and get states with boolean logic with SETBIT and GETBIT&lt;br&gt;
3️⃣ Location Based with Redis geospatial, easily search and add geospatial data with GEOADD &amp;amp; GEOSEARCH. AFAIK it&amp;rsquo;s quite tricky to do this with Postgre&lt;br&gt;
4️⃣ Distributed Lock, i.e., updating inventory stock to handle flash sale traffic&lt;br&gt;
5️⃣ Analytics Funnel with Probabilistic easily store event and or merge with the HyperLogLog&lt;br&gt;
6️⃣ Simple event-driven architecture with Redis Stream or as a Pub/Sub with SUBSCRIBE/PUBLISH commands, which can be seen as a message queue even with LIST&lt;/p&gt;</description></item><item><title>API Key Best Practices</title><link>https://panjigautama.com/api-key-best-practices/</link><pubDate>Sat, 02 Jan 2021 09:49:20 +0000</pubDate><guid>https://panjigautama.com/api-key-best-practices/</guid><description>&lt;p&gt;API keys are required for apps and projects that being used across Mekari platforms, either GCP/AWS/Logging Tools or other third-party services. This document identifies the intended use of API keys, how to protect them as you would other credentials, and which restrictions are appropriate for your projects.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;em&gt;Always try to adhere Principle of least privilege&lt;/em&gt;.&lt;/em&gt;*&lt;/p&gt;
&lt;p&gt;&lt;em&gt;*The principle of least privilege states that only the minimum access necessary to perform an operation should be granted, and that access should be granted only for the minimum amount of time necessary.&lt;/em&gt;&lt;/p&gt;</description></item></channel></rss>