<?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 Nazım Marul on Medium]]></title>
        <description><![CDATA[Stories by Nazım Marul on Medium]]></description>
        <link>https://medium.com/@nazmmarul?source=rss-69f33460e7cb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Nazım Marul on Medium</title>
            <link>https://medium.com/@nazmmarul?source=rss-69f33460e7cb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 15:26:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nazmmarul/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[Hexagonal Architecture Tutorial 101]]></title>
            <link>https://medium.com/@nazmmarul/hexagonal-architecture-tutorial-101-5406ae59006c?source=rss-69f33460e7cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/5406ae59006c</guid>
            <category><![CDATA[hexagonal-architecture]]></category>
            <dc:creator><![CDATA[Nazım Marul]]></dc:creator>
            <pubDate>Wed, 02 Oct 2024 07:26:09 GMT</pubDate>
            <atom:updated>2024-10-02T07:26:09.679Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*5cOY0FuSEqg8FpxsxRoi8Q.png" /></figure><p>In this article, we’ll take a closer look at Hexagonal Architecture. Also known as <em>Ports and Adapters</em>, Hexagonal Architecture is a way to structure your code so that the core business logic is separated from external systems like databases, web services, or user interfaces. This approach helps keep your code flexible, easier to test, and more maintainable over time. Introduced by Alistair Cockburn, the idea is to make your system adaptable to change by isolating the core from any dependencies on outside technology. This article is just the beginning of a deeper dive into how Hexagonal Architecture works and why it’s useful.</p><h3><strong>What is Hexagonal Architecture?</strong></h3><p>Business logic is at the core of Hexagonal Architecture, which is decoupled from external systems through ports (interfaces). Adapters are then implemented to handle the actual interactions with external systems like databases, message brokers, or external services. These ports and adapters allow you to swap external components without affecting the business logic.</p><p>Imagine the application as a hexagon, where each side represents a “port” or an interface to an external system. These ports are abstract, meaning the core logic doesn’t know whether it’s interacting with a web service or a database. The adapters handle these specifics, thus allowing flexibility in switching out technologies later on without impacting the main logic.</p><h3>Ports</h3><p>Ports can be thought of as “doorways” through which the application communicates with the outside world. They are interfaces that define the services that the application either provides or requires. There are two types of ports: Primary (Driving) ports define how external systems interact with the application, while Secondary (Driven) ports specify how the application interacts with external systems.</p><h3>Adapters</h3><p>Adapters are concrete implementations of ports. They “adapt” the application’s abstract port definitions to real technologies. For example, a REST API adapter converts an input port to HTTP requests, while a database adapter translates an output port to SQL queries. This way, the application doesn’t need to know which technologies are being used, and these technologies can be easily swapped out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EZBtlny6G8qnamOImH0lhw.png" /></figure><h3><strong>Why Use Hexagonal Architecture?</strong></h3><ul><li><strong>Modularity:</strong> Because the Hexagonal Architecture separates the business logic from the outside world, various components of the system can be changed independently. For example, to change the database technology, it is enough to update only the adapter, the main business logic is not affected.</li><li><strong>Testability:</strong> Thanks to the abstraction of external dependencies, you can test the business logic without the need for external systems. Mocking ports with mock objects is enough to check the correctness of the generated data.</li><li><strong>Flexibility:</strong> By centralizing the business logic, this structure allows the application to evolve independently from the outside world. You can replace different technologies or infrastructure components without touching the business logic.</li></ul><h3><strong>Advantages and Disadvantages of Hexagonal Architecture</strong></h3><h4>Advantages</h4><ol><li><strong>Independence:</strong> Since the central business logic of the application is independent of external systems, changes to these systems do not affect the main code.</li><li><strong>Easy Maintenance:</strong> Since the adapters that connect to external systems are separated from the business logic, the code becomes more readable and easier to maintain.</li><li><strong>Adaptability:</strong> It is easy to migrate to different technologies, for example, replacing a database(PostgreSQL) with NoSQL is only possible by changing the adapter layer.</li></ol><h4>Disadvantages</h4><ol><li><strong>Initial Investment:</strong> Setting up this structure requires more initial effort. Ports and adapters must be defined and completely abstracted from the business logic.</li><li><strong>Additional Layers:</strong> Adapters and ports add an additional layer of abstraction, which can create unnecessary complexity in small projects.</li><li><strong>Learnability:</strong> Hexagonal architecture is initially more difficult to adopt, especially for teams that are used to working with simpler structures. Because it is more complex than the N-tier architecture, it can take time for new developers to adapt to it.</li></ol><p>Hexagonal architecture offers clear advantages like flexibility, independence from external systems, and easier maintenance, making it ideal for larger, complex projects that may need to evolve over time. However, it also requires a significant initial investment and adds complexity, which can be unnecessary for smaller projects. If your project is large-scale and you foresee frequent changes in technology or external dependencies, Hexagonal architecture could be a great fit. On the other hand, for smaller teams or simpler applications, the complexity and steep learning curve may outweigh the benefits.</p><h3><strong>Differences with N-Layer Architecture</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2CLXi79dCrr-ESBSKaRJxA.png" /></figure><p>In traditional layered architecture, different layers are tightly coupled, meaning any change in one part of the system often requires modifications across multiple layers. This can make the system harder to maintain and evolve. In contrast, Hexagonal Architecture decouples these dependencies by using interfaces. This allows you to isolate changes, making it easier to implement new functionality without affecting the entire system. Instead of modifying layers throughout the structure, you simply adjust or implement the necessary interfaces, keeping the core business logic untouched and more adaptable to change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DgFTNLX2gVsMX9bfIRaCqA.png" /></figure><h3>Result</h3><p>In this article, we focused on the theoretical foundations of Hexagonal Architecture and how it can bring flexibility, independence and modularity to projects. However, this article is just the beginning. In the next article, I will go into more detail about how this architecture can be applied, how to implement it with practical examples, and what steps to follow in real-world projects. Moving from theory to practice, we will continue to explore how you can use the benefits of Hexagonal Architecture directly in your projects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5406ae59006c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yeni Başlayanlar İçin AWS Glue Eğitimi]]></title>
            <link>https://medium.com/@nazmmarul/yeni-ba%C5%9Flayanlar-i%CC%87%C3%A7in-aws-glue-e%C4%9Fitimi-f3e17c6e3e6c?source=rss-69f33460e7cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3e17c6e3e6c</guid>
            <category><![CDATA[aws-glue]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[amazon]]></category>
            <dc:creator><![CDATA[Nazım Marul]]></dc:creator>
            <pubDate>Fri, 20 Aug 2021 06:18:42 GMT</pubDate>
            <atom:updated>2021-08-20T12:47:53.253Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u_Kqz-3eoSX4lhftj1nh8A.jpeg" /></figure><p>Bu yazıda size <a href="https://testinium.com/">Testinium</a> projelerinde sıkça kullandığımız AWS Glue’nun, ne işe yaradığını, neden AWS Glue’nun diğer benzer servislere göre daha güçlü olduğundan bahsedeceğim. Daha iyi anlaşılması için uygulama yapmayı da eksik etmeyeceğiz. Hadi başlayalım.</p><h3>AWS Glue Nedir?</h3><p>Verileri ayıklamak, dönüştürmek ve yüklemek amacıyla geliştirilmiş sunucusuz bir araçtır. Bu işlem ETL olarak adlandırılır. AWS Glue, işletmelerin verileri tek bir kaynaktan çıkarmasına, verileri dönüştürmesine ve ardından hepsini buluttan bir veri ambarına yüklemesine olanak tanır. Aynı zamanda tam olarak kendi kendini yöneten bir hizmettir, yani biz kullanıcılar olarak herhangi bir bulut altyapısını yönetmek zorunda değiliz, her şey Amazon tarafından halledilir. Böylece enerji ve para maliyetinden avantaj sağlarız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*HbPeuyfMeSa2Nefh_3vVIg.png" /></figure><h3>AWS Glue bileşenleri nelerdir?</h3><p><strong>Data Source: </strong>ETL için verilerin yüklendiği, girdi olarak sağlanan veri deposuna veri kaynağı denir.</p><p><strong>Data Catalog:</strong> Bir bölgedeki tüm hizmetler arasında paylaşılan AWS Glue’nun merkezi veri deposudur. Katalog, AWS Glue ortamınızı yönetmek için tablo tanımları, iş tanımları ve diğer kontrol bilgilerine sahiptir.</p><p><strong>Crawlers: </strong>Veri deposundan(s3) veri şemasını alan bir programdır. Crawler, veri biçimlerini tanımlamak için özel veya yerleşik sınıflandırıcılar kullanır ve katalogdaki veri tablolarını doldurur.</p><p><strong>Database and Table:</strong> Katalogdaki bir veri tabanı, bir dizi ilişkili tablodur. Her tablo yalnızca sütun adları, veri türü tanımları, bölüm bilgileri gibi verilerin veri bilgilerine sahiptir ve gerçek veriler veri deposunda kalır. Veri tabanındaki bir veya daha fazla tablo, bir ETL işinde kaynak tarafından kullanılır.</p><p><strong>Job and Triggers:</strong> Bir iş, dönüşüm komut dosyasından, veri kaynaklarından ve veri hedeflerinden oluşur. İşlerimizi python veya Apache Spark ile tanımlayabiliriz. İş çalıştırmaları, programlanabilen veya olaylar tarafından tetiklenebilen tetikleyiciler tarafından başlatılır.</p><h3>AWS Glue neden bu kadar iyi?</h3><p>1.<strong> Daha hızlı veri entegrasyonu</strong></p><p>AWS Glue, çok çeşitli AWS hizmetleriyle entegre edilmiştir. Bu yüzden ETL iş yüklerini çıkarma, temizleme, normalleştirme, birleştirme, yükleme ve yürütme dâhil olmak üzere veri hazırlamak amacıyla birlikte çalışmak için daha hızlı çözüm sunar.</p><p>2.<strong> Uygun maliyetli</strong></p><p>Sunucusuz çalışır. Yani tedarik edilecek ve yönetilecek bir altyapısı yoktur. AWS Glue, veri entegrasyon işlerinizi yürütmek için gerekli kaynakları sağlar, yapılandırır ve ölçeklendirir. Yalnızca işleriniz çalışırken kullandığınız kaynaklar için ödeme yaparsınız.</p><p>3. <strong>Verileri otomatikleştirir</strong></p><p>AWS Glue, ETL işlerini oluşturmak, sürdürmek ve çalıştırmak için önemli miktarda çabayı otomatik hale getirir. Veri kaynaklarınızı tarar, veri biçimlerini tanımlar, şemalar ve dönüşümler önerir. Veri dönüştürmelerinizi ve yükleme işlemlerinizi yürütmek için kodu otomatik olarak oluşturur.</p><h3>Uygulamaya başlarken</h3><p>Bu uygulamada yeni başlayanlar için uygun bir yol izleyeceğiz. AWS Glue’da ilk Crawler’ımızı oluşturacak, çalıştıracak ve oluşturduğu tabloya bakacağız. Bir Crawler temel olarak bir çok veri deposundan veri toplamımızı ve ardından tablo oluşturmamıza olanak sağlar. Biz bugün veri deposu olarak S3&#39;ü kullanacağız. Nasıl çalıştığını görmek için uygulamamıza başlayalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*7rX7ZWjrYWZ4HxE_l0ph1Q.png" /></figure><h4>Hazırlık</h4><p>Uygulamaya başlamadan birkaç ön hazırlığı yapmalıyız.</p><ol><li><strong>AWS Hesap Açma</strong> → Bu eğitim için AWS hesabına sahip olmamız gerek. Hesap oluşturmak için <a href="https://portal.aws.amazon.com/billing/signup#/start"><em>buraya</em></a> tıklayın.</li><li><strong>AWS Glue için IAM Rolü oluşturma</strong> → IAM konsoluna <a href="https://console.aws.amazon.com/iam/home?region=us-east-2#/home"><em>gidin</em></a>. Sol taraftaki “Roles<strong>”</strong> öğesine tıkladıktan sonra açılan pencereden “Create rol” kısmına tıklayıp Glue için rol oluşturmaya başlayınız. <em>AWSGlueServiceRole</em> ve S3FullAccess izinlerini vermeyi unutmayınız.</li><li><strong>S3 bucket oluşturma</strong> → Bu eğitimi tamamlamak için bir depoya ihtiyacımız var. Biz bu eğitimde s3&#39;ü kullanmayı tercih ettik. AWS yönetim konsolundan S3&#39;e <a href="https://s3.console.aws.amazon.com/s3/home?region=eu-central-1#"><em>gidin</em></a> ve “Create bucket” öğesine tıklayın. Bucket oluşturmayı tamamladıktan sonra bir klasör oluşturup AWS Glue ile tablo oluşturmak istediğiniz veriyi buraya yükleyin.</li></ol><p>Hazırlık işlemlerini bitirdiğimize göre artık uygulamamıza başlayabiliriz.</p><h4>Crawler oluşturalım</h4><p>AWS Glue konsoluna <a href="https://eu-central-1.console.aws.amazon.com/glue/home?region=eu-central-1#"><em>gidin</em></a>. Daha sonra sol taraftaki “Crawler” öğesine tıklayın. Açılan pencereden “Add crawler” a tıklayın.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lcMtBI9DIjtyawcwPMjeCQ.png" /></figure><p>Öncelikle bir isim koymakla başlıyoruz. Daha sonra “Next” e tıklıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8oko4slHGu73CryV5Udqxg.png" /></figure><p>Burada iki seçenek karşımıza çıkıyor.</p><ol><li>Crawler kaynak türünü veri kaynağı olarak seçiyoruz.</li><li>Crawler tekrar başlatıldığında bütün dosyaları tekrardan taramasını seçiyoruz.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E3S5qKwledvx2DSVkIkhww.png" /></figure><p>Veri deposu olarak S3&#39;ü seçeceğimizi uygulamanın hazırlık kısmında belirtmiştik. Daha sonra S3&#39; deki hangi klasörü Crawler yardımıyla taramamız gerektiğini belirtiyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LxY9Q8hdV6Eq285n5ZBY-w.png" /></figure><p>Birden fazla veri deposuna ihtiyacımız olmadığı için “No” diyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7-Yr5FsmP2uEMUNN9HhvjQ.png" /></figure><p>Hazırlık kısmında oluşturduğumuz IAM rolünü burada kullanacağız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xKjWZZKQfPrVAlI0HJ5ZnA.png" /></figure><p>Burada ise Crawler’ı ne sıklıkla çalıştırmak istediğimizi seçmemiz gerekiyor. Kendi isteğimiz üzerine çalışmasını istediğimiz için “Run on Demand” ı seçiyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fPyi4HX38_Etftbh1vou9Q.png" /></figure><p>Crawler oluşturma kısmındaki son adıma geldik. Şimdi “Add Database” butonuna tıklayarak yeni bir database oluşturup onu seçiyoruz ve “Next” diyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OmNySI2hl2MFVCGTDZhIyQ.png" /></figure><p>Böylece belirtilen S3 bucket’ındaki tüm dosyaları okuyan bir Glue Crawler oluşturmuş olduk.</p><h4>Crawler çalıştıralım</h4><p>Oluşturduğunuz Crawler’ı seçin ve daha sonra “Run crawler” a basın. Biraz uzun sürebilir o yüzden bitene kadar bekleyiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NbI79nMwuxWa2Wd9YPKIiA.png" /></figure><p>Çalışma işlemi bittikten sonra solda bulunan “Tables” a tıklayınız ve sizin için oluşturulan tablonun içine giriniz. Aşağıya doğru kaydırdığınızda veriler ile ilgili bilgileri de göreceksiniz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bBlLaIUD3M4QgZh4JRxbsw.png" /></figure><h3>Tebrikler!</h3><p>İlk AWS Glue uygulamanızı başarıyla tamamladınız. Glue Crawler oluşturup, çalıştırdınız. Ama daha Glue ile yapılacak çok şey var. Mesela oluşturduğumuz tablolara Amazon Athena yardımıyla sorgu yazabiliriz. Biz <a href="https://testinium.com/functional-test-automation/testinium-ai">Testinium AI</a>, <a href="https://loadium.com/">Loadium</a> ve <a href="https://oobeya.io/">Oobeya</a> projelerinde bunu sıkça kullanıyoruz. Bu konuda merakınız varsa Amazon Athena ile ilgili yazıma<a href="https://medium.com/@nazmmarul/aws-athenaya-g%C3%BCzel-bir-ba%C5%9Flang%C4%B1%C3%A7-yap%C4%B1yoruz-caa4f89adc61"> <em>buradan</em></a> ulaşabilirsiniz. Diğer eğitimlerde görüşmek üzere sağlıcakla kalın.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3e17c6e3e6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Athena’ya Güzel Bir Başlangıç Yapıyoruz.]]></title>
            <link>https://medium.com/@nazmmarul/aws-athenaya-g%C3%BCzel-bir-ba%C5%9Flang%C4%B1%C3%A7-yap%C4%B1yoruz-caa4f89adc61?source=rss-69f33460e7cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/caa4f89adc61</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[aws-athena]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[amazon-web-services]]></category>
            <dc:creator><![CDATA[Nazım Marul]]></dc:creator>
            <pubDate>Fri, 20 Aug 2021 06:16:39 GMT</pubDate>
            <atom:updated>2021-08-20T12:46:19.811Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*mo9OIVaKYzy7Ak96RY7KBQ.jpeg" /></figure><p>Bu yazıda size <a href="https://testinium.com/">Testinium</a> projelerinde sıkça kullandığımız AWS Athena’nın ne olduğunu, ne işe yaradığını ve neden diğer servislerden daha öne çıktığı hakkında konuşacağız. Makalenin ilerleyen kısımlarında ise S3 bucket’a veri yükleyeceğiz. Daha sonra standart SQL komutlarını kullanarak Athena ile sorgu yazacağız.</p><h3>AWS Athena Nedir?</h3><p>Büyük miktarda veri ile uğraşırken bu verileri sorgulamak ve analiz etmek için bir araca ihtiyaç vardır. İşte burada Athena devreye giriyor. Kısacası Amazon Athena’yı S3&#39;deki verilere sorgu yazmamıza olanak veren bir servis olarak adlandırabiliriz. Athena’nın en iyi yanlarından biri ise standart SQL’i desteklediğinden, başka bir sorgu dili öğrenmemize gerek kalmamasıdır. Athena sunucusuz çalıştığı için altyapı yönetmemize gerek yoktur ve sadece sorgu başına ücret öderiz.</p><p>Verileri sorgulamak ve sonuçları görselleştirmek için kullandığımız Athena’nın Amazon S3 ile entegrasyonu kolaydır. Yapmamız gereken tek şey standart SQL sorgumuzu yazdıktan sonra saniyeler içinde teslim edilen sonuçları okumaktır.</p><h3>Athena’nın Avantajları</h3><h4>Kullanımı kolay</h4><p>AWS Athena konsolunun ara yüzü basittir. Sorgu yazarken standart SQL’i desteklediğinden kullanımı kolaydır.</p><h4>Çeşitli formatları destekler</h4><ul><li>CSV</li><li>JSON</li><li>Avro</li><li>ORC</li><li>Parquet</li></ul><p>ORC ve Parquet sütunlu depolama birimleri olduğu için daha az yer kaplayıp daha fazla veriyi içinde tutar. Bu da Athena’nın sorgu başına maliyetini düşürür.</p><h4>Sunucusuz çalışır</h4><p>Herhangi bir altyapı yapılandırmadan veya yönetmeden verileri hızla sorgulayabiliriz. Ayrıca veri sayısı arttıkça sorguların başarısızlığı veya yazılım güncellemeleri gibi konuları düşünmenize gerek kalmayacaktır.</p><h4>Hızlı performans</h4><p>Athena, sorguları paralel olarak çalıştırabilir ve saniyeler içinde sonuçları gösterir. Sorgular karmaşık olsa veya sorguladığı veri çok olsa bile performansından ödün vermez.</p><h3>Athena maliyet modeli</h3><h4>Sorgu başına para öderiz</h4><ul><li>1 TB boyutundaki sorgu için 5 dolar ödenir</li><li>DDL ve hatalı sorgular için ücret ödenmez.</li><li>İptal edilen sorgular için okuduğu veri kadar ücret ödersiniz.</li></ul><h4>Nasıl tasarruf edebiliriz</h4><ul><li>Yukarıda bahsettiğim sütunlu depolama formatlarını kullanmalıyız. Böylece daha çok veriyi daha az ücret karşılığında sorgulayabiliriz.</li><li>Tam olarak konum vererek S3&#39;de hangi klasöre sorgu yapmak istediğimizi belirtmeliyiz yoksa ihtiyacımız olmayan verilere de sorgu yapmış oluruz. Bu da maliyeti arttırır.</li></ul><h3>Uygulamaya Başlarken</h3><p>Aşağıdaki diyagrama baktığımızda Amazon Athena operasyonunun tamamını görmüş oluyoruz. Bizde uygulamamızı bu diyagrama uygun olarak yapacağız. Hiç merak etmeyin bu eğitim yeni başlayanlar için hazırlanmıştır. Daha iyi anlaşılması için her şeyi adım adım anlatacağım.</p><p>İlk olarak Amazon servislerinden yararlanabilmek için bir Amazon hesabı açmamız gerekiyor. Hesabı oluşturduktan sonra verilerimizi yükleyebileceğimiz bir S3 deposuna ihtiyacımız var. S3 depomuzun içine sorgu yazmak istediğimiz dosyayı yüklüyoruz. Şimdi Athena ile verilerimizle ilgili sorgu yazmaya hazırız. Genel anlamda neler yapacağımızı özetlediğimize göre uygulamamıza başlayalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*3uOIhTJ7Ad7UzzpuSkTloA.png" /></figure><h4>Hazırlık</h4><ol><li><strong>AWS Hesap Açma</strong> → Bu eğitim için AWS hesabına sahip olmamız gerek. Hesap oluşturmak için <a href="https://portal.aws.amazon.com/billing/signup#/start"><em>buraya</em></a> tıklayın.</li><li><strong>S3 Bucket Oluşturma</strong> → Bu eğitimi tamamlamak için bir depoya ihtiyacımız var. Biz bu eğitimde s3&#39;ü kullanmayı tercih ettik. AWS yönetim konsolundan S3&#39;e <a href="https://s3.console.aws.amazon.com/s3/home?region=eu-central-1#"><em>gidin</em></a> ve “Create bucket” öğesine tıklayın. bucket’ı oluşturmayı tamamladıktan sonra bir klasör oluşturup AWS Athena ile sorgu oluşturmak istediğiniz veriyi buraya yükleyin.</li></ol><p>Hazırlık işlemlerini bitirdiğimize göre uygulamamıza devam edebiliriz.</p><h4>Tablo oluşturma</h4><p>Şimdi s3&#39;deki verilerimizi kullanarak tablo oluşturmayı öğreneceğiz.</p><p>Athena’nın konsoluna gidin. Sol taraftaki “Create table” seçeneğine tıklayın. Karşınıza aşağıdaki gibi bir ara yüz çıkacak. İstenilen yerleri doldurunuz. Dikkat etmeniz gereken yer ise S3&#39;deki hangi veriye sorgu yapacağınızı doğru bir şekilde belirtmek.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MPeyxGWNRlL2KekFKNhWJw.png" /></figure><p>Burada ise hangi S3&#39; e hangi formatta veri yüklediğinizi belirtmeniz gerekiyor. Benimki CSV formatında olduğu için onu seçiyorum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fa3AxcT-Z0iwl51y7OvjWA.png" /></figure><p>Daha sonra ise tablomuz için sütun adları ve türlerini belirtmeliyiz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gaLG26eopDVM1BqGxe-Ehg.png" /></figure><p>Tablo oluşturma işlemlerini başarıyla bitirdik. Şimdi sorgu yazma zamanı.</p><p>Burada medium_athena tablomuzdan on tane ile limitleyerek değerleri getirmek istediğimizi belirten sorguyu yazıyoruz. Sonra “Run query” ye basıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q36wUfTAmzlbFQgCmHoIyA.png" /></figure><p>Sorgumuzun sonucu ise aşağıdaki gibi gözüküyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-_-IbdzO7GcHxHHnzMePiA.png" /></figure><p>Şimdi bir senaryo üzerinden ilerleyelim. Bizim elimizde İstanbul’un parkları ile ilgili bir veri seti var. Biz bu veri setini kullanarak İstanbul’da kaç park olduğunu nasıl bulabiliriz? Şimdi bunu gösterelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4IS0jmckACXeK9LIRUnc-g.png" /></figure><h3>Tebrikler!</h3><p>İlk AWS Athena uygulamanızı başarıyla tamamladınız. Biz <a href="https://testinium.com/functional-test-automation/testinium-ai">Testinium AI</a>, <a href="https://loadium.com/">Loadium</a> ve <a href="https://oobeya.io/">Oobeya</a> projelerinde Athena’yı sıkça kullanıyoruz. Athena’nın daha ileri seviye konularını öğrenmek için takipte kalmayı unutmayın. Diğer bir eğitim yazısında Testinium AI için geliştirdiğimiz bir proje hakkında konuşacağız. Bunun haricinde diğer Amazon Web Servis’leri hakkında daha fazla bilgi almak istiyorsanız. Amazon Glue eğitimime <a href="https://medium.com/@nazmmarul/yeni-ba%C5%9Flayanlar-i%CC%87%C3%A7in-aws-glue-e%C4%9Fitimi-f3e17c6e3e6c"><em>buradan</em></a> ulaşabilirsiniz. Diğer eğitimlerde görüşmek üzere sağlıcakla kalın.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=caa4f89adc61" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>