<?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 Aytunç Can Kır on Medium]]></title>
        <description><![CDATA[Stories by Aytunç Can Kır on Medium]]></description>
        <link>https://medium.com/@aytunccankir?source=rss-2cbc4f7d3b06------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*rqK71gi5V0XWINEV.jpg</url>
            <title>Stories by Aytunç Can Kır on Medium</title>
            <link>https://medium.com/@aytunccankir?source=rss-2cbc4f7d3b06------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 05:18:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aytunccankir/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[Is RediSearch really fast? A PoC Experience]]></title>
            <link>https://medium.com/@aytunccankir/is-redisearch-really-fast-a-poc-experience-645aab83222f?source=rss-2cbc4f7d3b06------2</link>
            <guid isPermaLink="false">https://medium.com/p/645aab83222f</guid>
            <category><![CDATA[redisearch]]></category>
            <category><![CDATA[versus]]></category>
            <category><![CDATA[poc]]></category>
            <category><![CDATA[comparison]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <dc:creator><![CDATA[Aytunç Can Kır]]></dc:creator>
            <pubDate>Mon, 29 May 2023 12:00:27 GMT</pubDate>
            <atom:updated>2023-05-30T11:23:22.403Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hiebu7uClwC4TP8N9Nq7-Q.png" /></figure><p>Trendyol Tech, a team that is dedicated to learning, experimenting with new technologies, and quickly implementing what we need. At regular intervals, we strive to develop proof of concepts (PoC) to contribute to both ourselves and the team. The data obtained from PoC results directly influences our technology selection.</p><p>In this article, I will discuss another PoC experience we had with <a href="https://redis.com/">Redis Labs’</a> RediSearch module. We integrated RediSearch into one of our applications and started comparing it with ElasticSearch. RediSearch is a search engine module with similar features to ElasticSearch. There are existing comparisons between these two projects, but we wanted to see the results by experimenting with a live application of ours.</p><p>Below, I have included some comparisons from the Redis Labs team, followed by our own comparisons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U8wX6nm1aRIGb0VE2Rnhhw.png" /><figcaption>Table shows that RediSearch built its index 58% faster.</figcaption></figure><p>RediSearch built its index in 221 seconds versus 349 seconds for Elasticsearch, or 58% faster. <br>As you can see in the figure, RediSearch created its index 58% faster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QEDe-HY51W9sCL9glUg7Qg.png" /></figure><p>RediSearch is 4 times faster here as well. <br>You can find detailed comparisons in the source below.</p><p><strong>Source: </strong><a href="https://redislabs.com/blog/search-benchmarking-redisearch-vs-elasticsearch/">https://redislabs.com/blog/search-benchmarking-redisearch-vs-elasticsearch/</a></p><h3>PoC Results</h3><p>We used <strong>jredisearch 1.8.0</strong> version in our application. We conducted our comparisons with ES on bulk index and index. Additionally, we have an endpoint for easily searching documents. We wanted to migrate this structure to RediSearch and observe the changes in response time.</p><p>First, we started our comparison with a complete reindex. All our tests were performed on 12k documents. In RediSearch, it took 14k ms to index all documents in sync, while ES, which we compared it against, was a bit slower in this regard. While thinking about whether we can further increase this difference, we performed an async test on RediSearch and saw that the process was completed in 3036 ms.</p><p>When I do performance test by sending 12000 documents to both ElasticSearch and RediSearch.</p><p><strong>Versions</strong><br>Redisearch: 1.6.13<br>Elasticsearch: 6.6.0</p><h4><strong>RediSearch Results</strong></h4><p><strong>index</strong></p><blockquote>Sync Indexing time for 12000 documents — 14275ms <br>Async Indexing time for 12000 documents — 3036ms</blockquote><p><strong>search</strong></p><pre>FT.SEARCH rules &quot;@supplier:$supplierId @barcode:$barcode&quot;</pre><blockquote>Average Time per Response — 1ms</blockquote><h4><strong>ElasticSearch Results</strong></h4><p><strong>index</strong></p><blockquote>Sync Indexing time for 12000 documents — 80540ms<br>Async Indexing time for 12000 documents — 20045ms</blockquote><p><strong>search</strong></p><pre>GET rules/_search<br>{<br>   &quot;query&quot;:{<br>      &quot;bool&quot;:{<br>         &quot;filter&quot;:[<br>            {<br>               &quot;term&quot;:{<br>                  &quot;supplierId&quot;:&quot;$supplierId&quot;<br>               }<br>            },<br>            {<br>               &quot;term&quot;:{<br>                  &quot;barcode&quot;:&quot;$barcode&quot;<br>               }<br>            }<br>         ]<br>      }<br>   }<br>}</pre><blockquote>Average Time per Response — 5ms</blockquote><p>Note that I did the performance test in my local machine.</p><p>Another remarkable point was that RediSearch was 9 times faster than ES when indexing documents one by one. For example, while RediSearch completed its task in 1ms per document, ES took around 13–14ms, with an average of 9ms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oyFOtF2DJT5xhIdTS7bk1Q.png" /></figure><p>RediSearch vs. ElasticSearch It is worth mentioning the query structure for RediSearch because it has a slightly different syntax compared to the general structure. <br>Additionally, it has a “LIMIT” and “OFFSET” structure. We can easily convert the results returned from the search into a page structure.</p><pre>FT.SEARCH myIndex &quot;@supplierId:$supplierId @barcode:$barcode <br>LIMIT $limit OFFSET $offset&quot;</pre><p><strong>Conclusion</strong><br>We were quite impressed with the indexing and search speeds of RediSearch through this PoC. We will continue to delve deeper into it and share more with you. Looking forward to our next article.</p><p>If you want to stay informed about technology, we are <a href="https://twitter.com/trendyoltech">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=645aab83222f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KONG Api Gateway ve Konga Kurulumu]]></title>
            <link>https://medium.com/@aytunccankir/kong-api-gateway-ve-konga-kurulumu-4e7d34e23808?source=rss-2cbc4f7d3b06------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e7d34e23808</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[kong]]></category>
            <category><![CDATA[konga]]></category>
            <category><![CDATA[api-gateway]]></category>
            <dc:creator><![CDATA[Aytunç Can Kır]]></dc:creator>
            <pubDate>Fri, 23 Nov 2018 21:20:54 GMT</pubDate>
            <atom:updated>2019-04-05T11:52:56.306Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://konghq.com/"><em>KONG</em></a>, clientlar ve mikro-servisler arasındaki iletişimi end-pointleri aracılığıyla güvenli bir şekilde yöneten open-source, ölçeklenebilir, nginx üzerinde çalışan ve lua ile yazılmış bir api gateway ürünüdür.<br>Kong’u diğerlerinden ayıran eklentilerin başında <a href="https://docs.konghq.com/hub/#logging"><strong>logging</strong></a>, rate limit ve en önemlisi <a href="https://docs.konghq.com/hub/kong-inc/correlation-id/"><strong>correlation ID</strong></a><strong> </strong>(Mikro-servis mimarisinde bir servisten başka bir servise giden istekler üzerindeki akışı izlememize yarar.) eklentileri gelmekte.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n64W7N3QPSEuwEAkg3cKGQ.png" /></figure><p>Hap bilgi verdiğimize göre artık <a href="https://konghq.com/">KONG</a> ve <a href="https://github.com/pantsel/konga">Konga</a> kurulumuna başlayabiliriz.</p><p>İlk olarak terminal üzerinden docker-kong projesini localimize indiriyoruz.</p><ol><li>$ git clone https://github.com/ackir/docker-kong.git</li><li>Terminal üzerinden proje dizinine gidip compose klasörüne geçiyoruz ve sırasıyla aşağıdaki komutları çalıştırıyoruz.</li></ol><p>$ cd /compose</p><p>$ docker-compose up -d</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NJ2XudzVW66kQ3B-2HIaWw.png" /></figure><p>Artık KONG ve Konga’yı sistemimize kurmuş olduk.</p><p>Aşağıdaki komut ile docker containerlarında ayakta olan uygulamalarımızı görebiliriz.</p><p>$ docker ps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1kVYA0RmUZcWVIuuC2ucvQ.png" /></figure><p>Şimdi sıra localimizde ayağa kaldırdığımız api gateway’i servisimize bağlamaya geldi :)</p><p>Browser’dan localhost:8010&#39;a gidiyoruz. Konga bizi register ekranı ile karşılıyor olacak. username — email — password (en az 6 karakter) bilgileri girdikten sonra karşımıza login form gelecek.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bLuktMIiuOLppwuAooCP7w.png" /><figcaption>login</figcaption></figure><p>Başarılı login sonrası buradayız:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i7H2zpQvF4aGV1qvdfhP-g.png" /><figcaption>kong admin connection</figcaption></figure><p>Burada, manuel kong admin apiyi bağlamamız gerekiyor. Name alanını istediğiniz gibi doldurabilirsiniz ancak admin url alanınalocalhost:8001 yazmanız gerekiyor.</p><p>Bu aşamayıda başarıyla tamamladıktan sonra sol tarafta yer alan <strong>connections</strong> sayfasını açarsanız, yukarıda tanımladığımız instance’ın aktif olmadığını görceksiniz. Aktif edelim:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vNLria3Lgib6rC3ABSwjBg.png" /></figure><p>Snapshots</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cRJebEVgbSRpMnFN4mUYYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*is3xbGICFtnbO4vzmiK0xQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oq-sgZwmyC1b-_1wFq6Ykw.png" /></figure><p><strong>Service ve Route Ekleme</strong></p><p><strong>Services</strong> sayfasına gidelim ve yeni bir servis ekleyelim. Formu aşağıdaki gibi dolduralım:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3tlSHk3Xrfj7T0nqmPJiBQ.png" /></figure><p>Değişiklikleri kaydedelim ve servisimizin eklendiğini görelim:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0L6_p0kk8AzpzXNhktPSGw.png" /></figure><p>Şimdi sıra yeni eklediğimiz servise bir route eklemekte: Eklediğimiz servise tıklayıp açılan pencereden <strong>Route</strong> alanına gelelim:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V1uqMYUc4fns_nH9eS8dEA.png" /></figure><p><strong>Add Route</strong> botunana tıklayıp açılan formu aşağıdaki gibi dolduralım:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UdhcrjJmzobUPFxWy23LHA.png" /></figure><p>Değişikleri kaydettiğimizde eklediğimiz route karşımızda.</p><p>Şimdi api gateway üzerinden eklediğimiz servise erişme vakti! :)</p><p>Eklediğimiz fake rest apinin servislerine <a href="https://github.com/typicode/jsonplaceholder#how-to">buradan</a> ulaşabilirsiniz:</p><pre>$ curl -i -H &quot;apikey: {{api-key}}&quot; <a href="http://localhost:8000/json/users">http://localhost:8000/json/user</a>s  </pre><p><strong>Browser</strong> üzerinden de isteğimize yanıt alabiliriz:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8bxk_aTCKTSikVJiAmXMpg.png" /></figure><p>Buraya kadar;</p><p>Kong &amp; <em>Konga’yı</em> başarılı bir şekilde birbirine bağladık ve api gateway aracılığıyla <em>jsonplaceholder</em> API’sine erişmeyi başardık.</p><p>Daha sonraki story’lerde görüşmek üzere…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e7d34e23808" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>