<?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 Cansu Candan on Medium]]></title>
        <description><![CDATA[Stories by Cansu Candan on Medium]]></description>
        <link>https://medium.com/@cansucandan?source=rss-c85f1a0cc476------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0rPu0jHSMGUYbLXTIiBXoA.jpeg</url>
            <title>Stories by Cansu Candan on Medium</title>
            <link>https://medium.com/@cansucandan?source=rss-c85f1a0cc476------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:44:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cansucandan/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[Kinesis Data Streams with Java]]></title>
            <link>https://cansucandan.medium.com/kinesis-data-streams-with-java-6c3268ab719c?source=rss-c85f1a0cc476------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c3268ab719c</guid>
            <category><![CDATA[kinesis]]></category>
            <category><![CDATA[data-streaming]]></category>
            <category><![CDATA[real-time-streaming-data]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Cansu Candan]]></dc:creator>
            <pubDate>Wed, 06 Sep 2023 14:29:08 GMT</pubDate>
            <atom:updated>2023-09-06T18:18:53.754Z</atom:updated>
            <content:encoded><![CDATA[<h4>What is Data Streaming ?</h4><p>Data streaming, also known as stream processing or event streaming, involves the continuous transmission of data as it’s generated. This approach allows for real-time processing and analysis, providing immediate insights.</p><p>There are use cases for event streaming like multiplayer games, real-time fraud detection, and social media feeds, to stock trading platforms and GPS trackin.</p><h4>What is AWS Kinesis Data Streams?</h4><p>AWS Kinesis is a serverless streaming service that can be used to build highly scalable event-driven applications. It allows you to ingest various types of real-time data, such as video, audio, logs, clickstreams, and IoT telemetry, for purposes like machine learning, analytics, and more. Amazon Kinesis enables you to process and analyze data as it arrives, offering real-time responsiveness instead of waiting for all data to accumulate before processing begins.</p><p>Amazon Kinesis Data Streams is a serverless streaming data service that simplifies the capture, processing, and storage of data streams at any scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SrRHEsG67hNLJg2VAgN70Q.png" /></figure><h3>Key Concepts</h3><h4>Kinesis Data Stream</h4><p>Kinesis Data Streams enables real-time processing of streaming big data. It provides ordering of records, as well as the ability to read and/or replay records in the same order to multiple Amazon Kinesis Applications.</p><h4>Data Record</h4><p>A <em>data record</em> is the unit of data stored in a Kinesis data stream. Data records are composed of a sequence number, a partition key, and a data blob, which is an immutable sequence of bytes. Kinesis Data Streams does not inspect, interpret, or change the data in the blob in any way. A data blob can be up to 1 MB.</p><h4>AWS SDK:</h4><p>Aws SDK has two APIs for writing: putRecord API, putRecords API</p><h4>Producer</h4><p>Producers put records into Amazon Kinesis Data Streams. For example, a web server sending log data to a stream is a producer.</p><h4>Consumer</h4><p>Consumers get records from Amazon Kinesis Data Streams and process them. These consumers are known as Amazon Kinesis Data Streams Application.</p><h4>Shard</h4><p>A shard is a uniquely identified sequence of data records in a stream. A stream is composed of one or more shards, each of which provides a fixed unit of capacity. Each shard can support up to 5 transactions per second for reads, up to a maximum total data read rate of 2 MB per second and up to 1,000 records per second for writes, up to a maximum total data write rate of 1 MB per second (including partition keys). The data capacity of your stream is a function of the number of shards that you specify for the stream. The total capacity of the stream is the sum of the capacities of its shards.</p><p>If your data rate increases, you can increase or decrease the number of shards allocated to your stream.</p><h4>Partition Key</h4><p>A partition key is used to group data by shard within a stream. Kinesis Data Streams segregates the data records belonging to a stream into multiple shards. It uses the partition key that is associated with each data record to determine which shard a given data record belongs to. Partition keys are Unicode strings, with a maximum length limit of 256 characters for each key. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards using the hash key ranges of the shards. When an application puts data into a stream, it must specify a partition key. A record with a particular Partition Key goes to a specific Shard throughout the life of the Shard. This is how order of records are maintained in the Shard. AWS guarantees the order of consuming to always be the same in which the records were inserted.</p><h4>Sequence Number</h4><p>Each data record has a sequence number that is unique per partition-key within its shard. Kinesis Data Streams assigns the sequence number after you write to the stream with client.putRecords or client.putRecord. Sequence numbers for the same partition key generally increase over time. The longer the time period between write requests, the larger the sequence numbers become.</p><p>In this article, I’ll explain how we can build a simple AWS Kinesis data stream pipeline.</p><p>In this scenario, the purposes are:</p><ul><li><strong>Step 1:</strong> Create AWS S3 Bucket, AWS Glue Database and create delivery stream using Kinesis Data Firehouse</li><li><strong>Step 2:</strong> Generate random iot data or get from API service</li><li><strong>Step 3:</strong> Create kinesis data stream and write this data to s3 using Kinesis Firehouse and Glue Data Catalog</li><li><strong>Step 4: </strong>Writing parquet data into an S3 bucket as monthly</li></ul><p><strong>Step 1: </strong>Create AWS S3 Bucket, AWS Glue Database and create delivery stream using Kinesis Data Firehouse</p><ol><li><strong>Create a maven project</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*J3ToVD08E4OpVGM-38M8IQ.png" /></figure><p><strong>2. Create s3 bucket on AWS</strong></p><pre>AWS S3 -&gt; Buckets -&gt; Create Bucket</pre><p><strong>3. Create AWS Glue Database</strong></p><pre>AWS Glue -&gt; Databases -&gt; Create Database</pre><p><strong>4. Create AWS Glue Table</strong></p><pre>AWS Glue -&gt; Tables -&gt; Create Table</pre><p>Set table properties:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vxhy8Ujl4tn2HYPFWyRmvw.png" /></figure><p>Choose or define schema:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*iG5KzBImV3btkEOnz62yMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eUulCFRSJFUe-kSSZwyIig.png" /></figure><p>Review and create:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RaE_0hZ5KdSiD4ern3NXEw.png" /></figure><p><strong>5. Create AWS Kinesis Firehouse:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*axuJ0omYarsc0mhxD5psSA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*uzNECp4MPxl3gqO-VVWykw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*gpBrOA5r4mwzO25Fd9-Kgw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*ASuzfxAtcKPqvAMxCeuOrg.png" /></figure><p><strong>Step 2:</strong> Generate random iot data or get from API service</p><p>1. Generate random iot data</p><pre>package org.example;<br>import java.io.FileWriter;<br>import java.io.IOException;<br>import java.time.LocalDateTime;<br>import java.time.format.DateTimeFormatter;<br>import java.util.Random;<br>public class GenerateTimeSeriesData {<br> private static final String CSV_FILE_PATH = &quot;./iot_data.csv&quot;;<br> private static final int ROW_COUNT = 10000;<br>private static final int min = 100000; // Minimum 6-digit value<br> private static final int ASSET_ID_COUNT = 12;<br> private static final int max = 999999; // Maximum 6-digit value<br>public static void generateAndWriteCsvData() {<br>try (FileWriter writer = new FileWriter(CSV_FILE_PATH)) {<br> //Create header row<br> writer.write(&quot;Timestamp,AssetID, Value\n&quot;);<br>//Generate and write data rows<br> Random random = new Random();<br> DateTimeFormatter formatter = DateTimeFormatter.ofPattern(&quot;yyyy-MM-dd HH:mm:ss&quot;);<br><br>for (int i = 0; i &lt; ROW_COUNT; i++) {<br> int assetId = random.nextInt(ASSET_ID_COUNT) + 100000; // Generate 6-digit asset ID<br> LocalDateTime timestamp = LocalDateTime.now().minusSeconds(random.nextInt(60 * 60 * 24 * 365)); // Random date within the past year<br> double value = random.nextDouble();<br> String row = timestamp.format(formatter) + &quot;,&quot;+assetId+ &quot;,&quot;+ value +&quot;\n&quot;;<br> writer.write(row);<br><br> }<br> writer.close(); // Ensure the CSV file is properly closed<br> System.out.println(&quot;CSV file created successfully.&quot;);<br>} catch (IOException e) {<br> e.printStackTrace();<br> }<br> }<br>}</pre><p>2. Read Csv File</p><pre>package org.example;<br><br>import com.opencsv.CSVReader;<br>import com.opencsv.exceptions.CsvException;<br><br>import java.io.FileReader;<br>import java.io.IOException;<br>import java.util.ArrayList;<br>import java.util.List;<br><br>public class CsvReader {<br><br>    private static final String CSV_FILE_PATH = &quot;./iot_data.csv&quot;;<br><br>    public static List&lt;PDMItem&gt; readCsvFile() throws IOException, CsvException {<br>        List&lt;PDMItem&gt; pdmItems = new ArrayList&lt;&gt;();<br><br>        try (CSVReader reader = new CSVReader(new FileReader(CSV_FILE_PATH))) {<br>            List&lt;String[]&gt; csvData = reader.readAll();<br><br>            boolean isFirstRow = true;<br><br>            // Assuming the CSV structure is: assetDate, assetID, assetValue<br>            for (String[] row : csvData) {<br>                if (isFirstRow) {<br>                    isFirstRow = false;<br>                    continue; // Skip the header row<br>                }<br><br>                if (row.length &gt;= 3) {<br>                    String assetDate = row[0];<br>                    String assetID = row[1];<br>                    double assetValue;<br><br>                    try {<br>                        assetValue = Double.parseDouble(row[2]);<br>                    } catch (NumberFormatException e) {<br>                        // Handle the case where the asset value is not a valid double<br>                        // You can choose to skip the row or handle the error as per your requirements<br>                        System.out.println(&quot;Invalid asset value: &quot; + row[2]);<br>                        continue; // Skip the row with an invalid asset value<br>                    }<br><br>                    PDMItem pdmItem = new PDMItem(assetDate, assetID, assetValue);<br>                    pdmItems.add(pdmItem);<br>                }<br>            }<br>        }<br><br>        return pdmItems;<br><br>    }<br>}</pre><p>3. PDMItem Class</p><pre>package org.example;<br><br>import com.fasterxml.jackson.annotation.JsonProperty;<br>import com.google.common.base.Objects;<br><br>public class PDMItem {<br><br>    @JsonProperty(&quot;asset_date&quot;)<br>    private String assetdate;<br><br>    @JsonProperty(&quot;asset_id&quot;)<br>    private String assetid;<br><br>    @JsonProperty(&quot;asset_value&quot;)<br>    private double assetvalue;<br><br>    public PDMItem(){};<br>    public PDMItem(String asset_date,String asset_id , double asset_value) { <br>        this.assetdate = asset_date;<br>        this.assetid = asset_id;<br>        this.assetvalue = asset_value;<br>    }<br><br>    public String getAssetdate() {<br>        return assetdate;<br>    }<br><br>    public void setAssetdate(String assetdate) {<br>        this.assetdate = assetdate;<br>    }<br><br>    public String getAssetid() {<br>        return assetid;<br>    }<br><br>    public void setAssetid(String assetid) {<br>        this.assetid = assetid;<br>    }<br><br>    public double getAssetvalue() {<br>        return assetvalue;<br>    }<br><br>    public void setAssetvalue(double assetvalue) {<br>        this.assetvalue = assetvalue;<br>    }<br><br>    @Override<br>    public String toString() {<br>        return String.format(&quot;{Date=&#39;%s&#39;, asset_id=&#39;%s&#39;,  Value=%f}&quot;,<br>                assetdate, assetid, assetvalue);<br>    }<br><br>    @Override<br>    public boolean equals(Object o) {<br>        if (this == o) return true;<br>        if (o == null || getClass() != o.getClass()) return false;<br>        PDMItem orderItem = (PDMItem) o;<br>        return  Double.compare(orderItem.assetvalue, assetvalue) == 0 &amp;&amp;<br>                Objects.equal(assetdate, orderItem.assetdate) &amp;&amp;<br>                Objects.equal(assetid, orderItem.assetid) ;<br>    }<br><br>    @Override<br>    public int hashCode() {<br>        return Objects.hashCode(assetdate, assetid, assetvalue);<br>    } <br>}</pre><p>4. PDM Class</p><pre>package org.example;<br><br>import com.fasterxml.jackson.annotation.JsonProperty;<br>import com.google.common.base.Objects;<br><br>import java.util.ArrayList;<br>import java.util.Arrays;<br>import java.util.List;<br><br>public class PDM {<br>    @JsonProperty(&quot;asset_items&quot;)<br>    private List&lt;PDMItem&gt; pdmItems = new ArrayList&lt;&gt;();<br><br>    public PDM(List&lt;PDMItem&gt; pdmItems) {<br>        this.pdmItems = pdmItems;<br><br>    }<br><br>    public List&lt;PDMItem&gt; getPdmItems() {<br>        return pdmItems;<br>    }<br><br>    public void setPdmItems(List&lt;PDMItem&gt; pdmItems) {<br>        this.pdmItems = pdmItems;<br>    }<br><br>    @Override<br>    public String toString() {<br>        return String.format(&quot;Asset{PdmItems=%s}&quot;,<br>                 Arrays.toString(pdmItems.toArray()));<br>    }<br><br>    @Override<br>    public boolean equals(Object o) {<br>        if (this == o) return true;<br>        if (o == null || getClass() != o.getClass()) return false;<br>        PDM pdm = (PDM) o;<br>        return Objects.equal(pdmItems, pdm.pdmItems);<br>    }<br><br>    @Override<br>    public int hashCode() {<br>        return Objects.hashCode(pdmItems);<br>    }<br>}<br><br></pre><p><strong>Step 3:</strong> Create kinesis data stream and write this data to s3 using Kinesis Firehouse and Glue Data Catalog</p><p>Write Records — Kinesis Streams API with AWS SDK</p><p>AWS SDK provides few APIs to manage and insert data records. Most notable being <em>PutRecord</em> and <em>PutRecords. </em>The <em>PutRecords</em> operation sends multiple records to your stream per HTTP request, and the singular <em>PutRecord </em>operation sends records to your stream one at a time (a separate HTTP request is required for each record). You should prefer using <em>PutRecords </em>for most applications because it will achieve higher throughput per data producer.</p><p>A sample code for <em>PutRecord</em></p><pre>package org.example;<br><br>import com.fasterxml.jackson.core.JsonProcessingException;<br>import com.fasterxml.jackson.databind.ObjectMapper;<br>import com.opencsv.exceptions.CsvException;<br>import org.apache.log4j.LogManager;<br>import org.apache.log4j.Logger;<br>import software.amazon.awssdk.core.SdkBytes;<br>import software.amazon.awssdk.core.exception.SdkClientException;<br>import software.amazon.awssdk.regions.Region;<br>import software.amazon.awssdk.services.kinesis.KinesisClient;<br>import software.amazon.awssdk.services.firehose.FirehoseClient;<br>import software.amazon.awssdk.services.firehose.model.PutRecordRequest;<br>import software.amazon.awssdk.services.firehose.model.Record;<br>import software.amazon.awssdk.services.firehose.model.PutRecordResponse;<br><br><br>import java.io.IOException;<br>import java.time.LocalDate;<br>import java.time.LocalDateTime;<br>import java.time.format.DateTimeFormatter;<br>import java.util.List;<br>import java.util.UUID;<br><br>public class PutRecordApp {<br><br>    static final Logger logger = LogManager.getLogger(PutRecordApp.class);<br>    static final ObjectMapper objMapper = new ObjectMapper();<br><br>    public static void main( String[] args ) throws IOException, CsvException {<br>        logger.info(&quot;Starting PutRecord Producer&quot;);<br>        String streamName = &quot;&quot;; //<br><br>        // Instantiate the client<br>        var client = KinesisClient.builder().build();<br><br>        var firehoseClient = FirehoseClient.builder()<br>                .region(Region.US_EAST_1)  // Specify your desired region<br>                .build();<br><br>        // Add shutdown hook to cleanly close the client when program terminates<br>        Runtime.getRuntime().addShutdownHook(new Thread(() -&gt; {<br>            logger.info(&quot;Shutting down program&quot;);<br>            client.close();<br>        }, &quot;producer-shutdown&quot;));<br><br><br>        List&lt;PDMItem&gt; pdmItems = CsvReader.readCsvFile();<br>        for (PDMItem pdmItem : pdmItems) {<br><br>            logger.info(String.format(&quot;Generated %s&quot;, pdmItem));<br>            try {<br>                // Construct a single PutRecord request<br>                var putRequest = PutRecordRequest.builder()<br>                        .deliveryStreamName(streamName)<br>                        .record(Record.builder()<br>                                .data(SdkBytes.fromByteArray(objMapper.writeValueAsBytes(pdmItem)))<br>                                .build())<br>                        .build();<br><br>                PutRecordResponse response = firehoseClient.putRecord(putRequest);<br>                logger.info(&quot;Successfully sent data to Kinesis Data Firehose. Record ID: &quot; + response.recordId());<br>            } catch (SdkClientException e) {<br>                logger.error(&quot;Failed to send data to Kinesis Data Firehose.&quot;, e);<br>            } catch (JsonProcessingException e) {<br>                throw new RuntimeException(e);<br>            }<br><br>            // Introduce an artificial delay for demonstration purposes / visual tracking of logging<br>            try {<br>                Thread.sleep(300);<br>            } catch (InterruptedException e) {<br>                e.printStackTrace();<br>            }<br>        }<br>    }<br><br>}</pre><p><strong>Step 4: </strong>Writing parquet data into an S3 bucket as monthly</p><ol><li>Create kinesis data stream</li></ol><pre>aws kinesis create-stream - stream-name kinesis-data-stream - shard-count 2</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xJJnmSKX7TB_npm1eawscQ.png" /></figure><p>2. Maven build to build Java project</p><pre>mvn clean package</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*-Z13jRiM-Znq2XHHdUm2ZQ.png" /></figure><p>3. Run Java project jar file with dependencies</p><pre>java -jar target/aws-kinesis-putrecord-jar-with-dependencies.jar kinesis-data-stream</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*URJPEzRdwx95_Q6RY0dGdQ.png" /></figure><p>4. Write parquet file in AWS S3 Bucket</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F8iR5_9k-nhYNlHejhElig.png" /></figure><h3>Conclusion</h3><p>Real-time data streaming has become indispensable to analyze and process data in real time instead of waiting hours, days, or weeks to get answers.</p><p>With AWS real-time data streaming services, we built AWS Kinesis Data Stream pipeline. This pipeline ingests how to produce record using AWS real-time services. We created dummy data and we produced each data as record with AWS Kinesis. We used AWS Firehouse delivery stream is a resource that enables you to transport data between a specified source and a specified destination. Then we used AWS Glue Database to write record as parquet to S3.</p><p>Feel free to contact me if there is a problem or share with me if you have a better solution. 😉</p><h3>Resources:</h3><ul><li><a href="https://www.confluent.io/learn/data-streaming/">What Is Data Streaming? How Real-Time Data Works</a></li><li><a href="https://medium.com/@himanshu66/aws-kinesis-data-streams-cdec4adb9450">AWS Kinesis Data Streams</a></li><li><a href="https://aws.amazon.com/kinesis/">Process and Analyze Streaming Data - Amazon Kinesis - Amazon Web Services</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c3268ab719c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Apache Flink ile Streaming Veri Transferi]]></title>
            <link>https://cansucandan.medium.com/apache-flink-ile-streaming-veri-transferi-ad99e5596f5d?source=rss-c85f1a0cc476------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad99e5596f5d</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[veri-bilimi]]></category>
            <category><![CDATA[yapay-zeka]]></category>
            <dc:creator><![CDATA[Cansu Candan]]></dc:creator>
            <pubDate>Mon, 08 Nov 2021 07:11:20 GMT</pubDate>
            <atom:updated>2021-11-16T19:05:48.484Z</atom:updated>
            <content:encoded><![CDATA[<p>Bugün stream verilerinin işlenmesinde sıklıkla kullanılan Apache Flink’ten bahsedeceğim. Günümüzde mobil cihazlardan, girdiğimiz web sitelerinden, sensörlerden, kullanıcının etkileşime girdiği çoğu teknolojiden veri akışı sağlanmaktadır. “Yeni altın” veya “yeni petrol” hangi anlamda ifade edilirse edilsin <strong>veri </strong>artık günümüzde değerli bir hazine olarak yerini almış durumda.</p><p>Big Data dünyasında kendimi geliştirirken Apache Flink ile karşılaştım. Nedir bu Flink derken basit örneklerle Flink’e bir giriş yaptım. Apache Flink’ten kısaca bahsettikten sonra Kafka’dan veri okuyup HDFS’e veri yazma işlemini değineceğim. Lafı uzatmadan Flink nedir bir göz atalım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QOUCWqPGZPCYgYWuAi9uNw.png" /></figure><h3><strong>Apache Flink Nedir?</strong></h3><p>Apache Flink akan verileri işlemeyi sağlayan yani streaming yapan çekirdeği Java ve Scala ile yazılmış dağıtık bir veri akış platformudur. Flink <em>cluster ortamlarında</em>, <em>bellek içi hızda</em> ve <em>herhangi ölçeklendirmede</em> çalışabilir.</p><p>Flink dağıtık bir sistemdir ve bağımsız bir cluster olarak çalışabileceği gibi Hadoop YARN, Apache Mesos ve Kubernetes gibi yaygın cluster kaynak yöneticileriyle de çalışabilir. Flink’in özel operatörleri sayesinde her türlü <strong>stream </strong>verileri işleyebilir. Flink <strong>sınırlı</strong>, <strong>sınırsız</strong>, <strong>gerçek zamanlı</strong> veya <strong>kayıtlı </strong>verileri işleyebilme kapasitesine sahiptir.</p><p>Veri işlemede Flink ile rekabet içinde olan Spark da bulunmaktadır. Spark da streaming işlemlerini kolayca gerçekleştirebilir ancak tam bir stream gerçekleştirdiği söylenemez. Spark, Flink’in aksine verileri batch olarak işler. Ancak Spark’ın Scala ve Python dilleri ile kolayca entegre edilmesi Spark’ın geliştiriciler tarafından biraz daha sevilmesini sağlamıştır.</p><h3>Apache Flink vs Apache Spark Streaming</h3><ul><li>Her ikisi de Apache Foundation organizasyonu tarafından geliştirilmiş açık kaynaklı araçlardır.</li><li>Her biri tek başına kullanılabilir ancak genellikle Hadoop YARN, Hadoop HDFS, Apache Kafka gibi büyük veri ortamlarıyla entegre edilirler.</li><li>Spark hem batch hem de stream olarak veriyi işler, ancak Flink salt bir streaming gerçekleştirir. Yani Flink tam streaming yaparken, gelen verileri anında işleyebilirken, Spark kullanıcının ihtiyacına bağlı olarak saniyelik, dakikalık, saatlik gibi istenilen sürede veriyi alır ve işler.</li><li>Bir kaynağa göre Spark’ın lanse edilen <strong>hız </strong>özelliği programları bellekte Hadoop MapReduce’dan 100 kata kadar veya diskte 10 kata kadar daha hızlı çalıştırılabildiği ile öne çıkmaktadır. Flink batch processing işleminde benzer performans sergilerken, streaming işleminde daha düşük gecikme sergiler.</li><li>Flink ve Spark, daha kolay, daha hızlı ve daha akıllı veri işleme özellikleri sunmak için günden güne geliştirilmeye devam ettiğini görüyoruz.</li><li>Sonuç olarak en iyi framework sorusuna yanıt ise “ihtiyaçlarınıza hangisi daha uygun?” sorusuna bağlıdır.</li></ul><h3>Apache Flink ile HDFS’e Veri Transferi</h3><p>Bu örnekte ilk olarak Kafka topik ortamına veri ekleyip ardından HDFS ortamına transferini gerçekleştireceğiz.</p><p>İlk olarak gerekli kütüphaneleri import etmemiz gerekiyor.</p><pre>import java.util.Properties;<br>import org.apache.avro.Schema;<br>import org.apache.flink.api.common.ExecutionConfig;<br>import org.apache.flink.api.common.functions.MapFunction;<br>import org.apache.flink.api.common.serialization.SimpleStringEncoder;<br>import org.apache.flink.api.common.serialization.SimpleStringSchema;<br>import org.apache.flink.runtime.state.StateBackend;<br>import org.apache.flink.runtime.state.filesystem.FsStateBackend;<br>import org.apache.flink.streaming.api.datastream.DataStream;<br>import org.apache.flink.streaming.api.environment.CheckpointConfig;<br>import org.apache.flink.streaming.api.environment.CheckpointConfig.ExternalizedCheckpointCleanup;<br>import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;<br>import org.apache.flink.streaming.api.functions.sink.filesystem.RollingPolicy;<br>import org.apache.flink.streaming.api.functions.sink.filesystem.StreamingFileSink;<br>import org.apache.flink.streaming.api.functions.sink.filesystem.rollingpolicies.DefaultRollingPolicy;<br>import org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer;<br>import org.apache.flink.core.fs.Path;</pre><p>App adında bir class oluşturduk. Ben IntellijIdea IDE’sini kullanarak Java ortamında programı gerçekleştirdim. <em>getExecutionEnvironment() </em>ile programı local ortamda yürütecek bir ortam hazırlar. <em>checkpoint </em>ile ise Kafka’da bulunan son kaldığımız yerden itibaren veriyi almamıza sağlar. Kafka’da veri okumak amacıyla bir <em>consumer </em>oluşturulur. Producer kullanarak oluşturduğumuz topiğe veri atacağız. Son olarak ise belirttiğimiz path’e <em>StreamingFileSink </em>ile veri transfer etme işlemini gerçekleştiriyoruz.</p><pre>public class App {<br>    public static void main(String[] args) {<br>        final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();</pre><pre>env.setParallelism(1);</pre><pre>// checkpoint<br>        env.enableCheckpointing(10_000);<br>        env.setStateBackend((StateBackend) new FsStateBackend(&quot;file:///tmp/flink/checkpoints&quot;));<br>CheckpointConfig config = env.getCheckpointConfig();<br>        config.enableExternalizedCheckpoints(ExternalizedCheckpointCleanup.DELETE_ON_CANCELLATION);</pre><pre>Properties props = new Properties();<br>props.setProperty(&quot;bootstrap.servers&quot;, &quot;localhost:9092&quot;);<br>props.put(&quot;group.id&quot;, &quot;test&quot;);<br>props.put(&quot;enable.auto.commit&quot;, &quot;true&quot;);<br>props.put(&quot;auto.commit.interval.ms&quot;, &quot;1000&quot;);<br>//props.put(&quot;key.deserializer&quot;, &quot;org.apache.kafka.common.serialization.StringDeserializer&quot;);<br>        //props.put(&quot;value.deserializer&quot;, &quot;org.apache.kafka.common.serialization.StringDeserializer&quot;);</pre><pre>ExecutionConfig executionConfig = env.getConfig();<br>        executionConfig.disableForceKryo();<br>        executionConfig.enableForceAvro();</pre><pre>//    HDFS  E YAZMA KISMI<br>        FlinkKafkaConsumer&lt;String&gt; consumer = new FlinkKafkaConsumer&lt;&gt;(&quot;my_topic_name&quot;, new<br>                SimpleStringSchema(), props);</pre><pre>DataStream&lt;String&gt; stream = env.addSource(consumer);</pre><pre>stream.map(new MapFunction&lt;String, String&gt;() {<br>            private static final long<br>                    serialVersionUID = -6867736771747690202L;</pre><pre><a href="http://twitter.com/Override">@Override</a><br>            public String map(String value) throws Exception {<br>                return<br>                        &quot;Stream Value: &quot; + value;<br>            }<br>        }).print();</pre><pre>RollingPolicy&lt;String, String&gt; rollingPolicy =<br>                DefaultRollingPolicy.create().withRolloverInterval(15_000) .build();</pre><pre>final StreamingFileSink&lt;String&gt; sink = StreamingFileSink<br>                .forRowFormat(new Path(&quot;hdfs://localhost:9000/projects&quot;),<br>                        new SimpleStringEncoder&lt;String&gt;(&quot;UTF-8&quot;))<br>                .withRollingPolicy(rollingPolicy)<br>                        .build();</pre><pre>stream.addSink(sink);</pre><pre>env.execute();</pre><pre>// HDFS&#39;E YAZMA KISMI BURADA BİTTİ</pre><p>İlgili bağımlılıklar aşağıdaki gibidir:</p><pre>&lt;dependency&gt;<br>      &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;<br>      &lt;artifactId&gt;flink-connector-base&lt;/artifactId&gt;<br>      &lt;version&gt;1.13.2&lt;/version&gt;<br>    &lt;/dependency&gt;</pre><pre>&lt;!-- <a href="https://mvnrepository.com/artifact/org.apache.flink/flink-java">https://mvnrepository.com/artifact/org.apache.flink/flink-java</a> --&gt;<br>    &lt;dependency&gt;<br>      &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;<br>      &lt;artifactId&gt;flink-java&lt;/artifactId&gt;<br>      &lt;version&gt;1.13.2&lt;/version&gt;<br>    &lt;/dependency&gt;</pre><pre>&lt;!-- <a href="https://mvnrepository.com/artifact/org.apache.flink/flink-connector-kafka">https://mvnrepository.com/artifact/org.apache.flink/flink-connector-kafka</a> --&gt;<br>    &lt;dependency&gt;<br>      &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;<br>      &lt;artifactId&gt;flink-connector-kafka_2.12&lt;/artifactId&gt;<br>      &lt;version&gt;1.13.2&lt;/version&gt;<br>    &lt;/dependency&gt;</pre><pre>&lt;!-- <a href="https://mvnrepository.com/artifact/org.apache.flink/flink-streaming-java">https://mvnrepository.com/artifact/org.apache.flink/flink-streaming-java</a> --&gt;<br>    &lt;dependency&gt;<br>      &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;<br>      &lt;artifactId&gt;flink-streaming-java_2.12&lt;/artifactId&gt;<br>      &lt;version&gt;1.13.2&lt;/version&gt;</pre><pre>&lt;/dependency&gt;</pre><pre>&lt;!-- <a href="https://mvnrepository.com/artifact/org.apache.flink/flink-connector-filesystem">https://mvnrepository.com/artifact/org.apache.flink/flink-connector-filesystem</a> --&gt;<br>    &lt;dependency&gt;<br>      &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;<br>      &lt;artifactId&gt;flink-connector-filesystem_2.12&lt;/artifactId&gt;<br>      &lt;version&gt;1.11.4&lt;/version&gt;<br>      &lt;scope&gt;compile&lt;/scope&gt;<br>    &lt;/dependency&gt;</pre><pre>&lt;!-- <a href="https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common">https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-common</a> --&gt;<br>    &lt;dependency&gt;<br>      &lt;groupId&gt;org.apache.hadoop&lt;/groupId&gt;<br>      &lt;artifactId&gt;hadoop-common&lt;/artifactId&gt;<br>      &lt;version&gt;3.3.1&lt;/version&gt;<br>    &lt;/dependency&gt;<br>    &lt;!-- <a href="https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-hdfs">https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-hdfs</a> --&gt;<br>    &lt;!-- <a href="https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-client">https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-client</a> --&gt;<br>    &lt;dependency&gt;<br>      &lt;groupId&gt;org.apache.hadoop&lt;/groupId&gt;<br>      &lt;artifactId&gt;hadoop-client&lt;/artifactId&gt;<br>      &lt;version&gt;3.3.0&lt;/version&gt;<br>    &lt;/dependency&gt;<br>    &lt;!-- <a href="https://mvnrepository.com/artifact/org.apache.flink/flink-clients">https://mvnrepository.com/artifact/org.apache.flink/flink-clients</a> --&gt;<br>    &lt;dependency&gt;<br>      &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;<br>      &lt;artifactId&gt;flink-clients_2.12&lt;/artifactId&gt;<br>      &lt;version&gt;1.13.2&lt;/version&gt;<br>    &lt;/dependency&gt;</pre><pre>&lt;!-- <a href="https://mvnrepository.com/artifact/org.apache.flink/flink-avro-confluent-registry">https://mvnrepository.com/artifact/org.apache.flink/flink-avro-confluent-registry</a> --&gt;<br>    &lt;dependency&gt;<br>      &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;<br>      &lt;artifactId&gt;flink-avro-confluent-registry&lt;/artifactId&gt;<br>      &lt;version&gt;1.13.2&lt;/version&gt;<br>    &lt;/dependency&gt;</pre><pre>&lt;!-- <a href="https://mvnrepository.com/artifact/org.apache.flink/flink-clients">https://mvnrepository.com/artifact/org.apache.flink/flink-clients</a> --&gt;</pre><pre>&lt;!-- <a href="https://mvnrepository.com/artifact/org.apache.flink/flink-parquet">https://mvnrepository.com/artifact/org.apache.flink/flink-parquet</a> --&gt;<br>    &lt;dependency&gt;<br>      &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;<br>      &lt;artifactId&gt;flink-parquet_2.12&lt;/artifactId&gt;<br>      &lt;version&gt;1.14.0&lt;/version&gt;<br>    &lt;/dependency&gt;<br>    &lt;dependency&gt;<br>      &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;<br>      &lt;artifactId&gt;flink-connector-kafka-0.10_2.11&lt;/artifactId&gt;<br>      &lt;version&gt;1.5.0&lt;/version&gt;<br>    &lt;/dependency&gt;</pre><p>Kafka’da topic oluşturma:</p><pre>./kafka-topics.sh --create --topic my_topic_name --bootstrap-server localhost:9092</pre><p>Kafka topiğe veri atma işlemi aşağıdaki gibidir. Burada veri üretme işlemi olacağı için <em>producer </em>kullanıyoruz.</p><pre>./kafka-console-producer.sh --broker-list localhost:9092 --topic my_topic_name</pre><h3>Sonuç:</h3><p>Apache Flink salt bir stream işlemlerini gerçekleştirebilir. Yani real time verileri işleyebilir. Aynı zamanda verileri başka bir ortama taşıyabilmeyi de sağlar. Hız konusunda oldukça ön plana çıkar. Dağıtık çalışabilmesi sebebiyle performansta ciddi iyileşmeler gözlemlenir. Çoğu e-ticaret firmaları müşterilerine hızlı çıktılar sunabilmek için Apache Flink’i kullanmaktadır.</p><p>Bir problem olması durumunda benimle bağlantı kurmaktan veya daha iyi bir çözümünüz var ise benimle paylaşmaktan çekinmeyin. 😉</p><p>Kaynaklar:</p><ul><li><a href="https://flink.apache.org/">Apache Flink® - Stateful Computations over Data Streams</a></li><li><a href="https://spark.apache.org/">Apache Spark™ - Unified Engine for large-scale data analytics</a></li><li><a href="https://www.woodmark.de/en/blog-detail/apache-spark-vs-apache-flink-2.html">Apache Spark vs. Apache Flink</a></li><li><a href="https://womaneng.com/kafka-flink-storm-platformlari/">KAFKA - FLINK - STORM PLATFORMLARI - Woman Engineer</a></li></ul><p><a href="https://tr.theastrologypage.com/importance-apache-flink-processing-streaming-data">https://tr.theastrologypage.com/importance-apache-flink-processing-streaming-data</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad99e5596f5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spark Cluster Üzerine Java-Spark Projesi’nin Submit Edilmesi]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/devopsturkiye/spark-cluster-%C3%BCzerine-java-spark-projesinin-submit-edilmesi-19a333acd290?source=rss-c85f1a0cc476------2"><img src="https://cdn-images-1.medium.com/max/624/1*YBzpinu1cJH_7lzLBnfXcg.jpeg" width="624"></a></p><p class="medium-feed-snippet">Bu yaz&#x131;mda &#x130;ngilizce kaynak olarak bile bulamad&#x131;&#x11F;&#x131;m ve Java jar dosyas&#x131;n&#x131;n olu&#x15F;turulmas&#x131;ndan, spark ile de Hadoop Yarn&#x2019;a/opsiyonlara nas&#x131;l&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/devopsturkiye/spark-cluster-%C3%BCzerine-java-spark-projesinin-submit-edilmesi-19a333acd290?source=rss-c85f1a0cc476------2">Continue reading on Devops &amp; AI Türkiye☁️   ☸️ »</a></p></div>]]></description>
            <link>https://medium.com/devopsturkiye/spark-cluster-%C3%BCzerine-java-spark-projesinin-submit-edilmesi-19a333acd290?source=rss-c85f1a0cc476------2</link>
            <guid isPermaLink="false">https://medium.com/p/19a333acd290</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[yapay-zeka]]></category>
            <dc:creator><![CDATA[Cansu Candan]]></dc:creator>
            <pubDate>Fri, 20 Aug 2021 06:27:00 GMT</pubDate>
            <atom:updated>2021-08-20T18:40:22.351Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Apache Spark ile Veri Transferi]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/devopsturkiye/apache-spark-ile-veri-transferi-d9543fb8e0b7?source=rss-c85f1a0cc476------2"><img src="https://cdn-images-1.medium.com/max/1200/1*M4hcYO2hPv3hzhkcuz8QuQ.png" width="1200"></a></p><p class="medium-feed-snippet">Bir m&#xFC;hendis her zaman optimal ve basit &#xE7;&#xF6;z&#xFC;mler geli&#x15F;tirebilmeli. Zaman her insan i&#xE7;in de&#x11F;erli bir kavramd&#x131;r. M&#xFC;hendis i&#xE7;in ise alt&#x131;n&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/devopsturkiye/apache-spark-ile-veri-transferi-d9543fb8e0b7?source=rss-c85f1a0cc476------2">Continue reading on Devops &amp; AI Türkiye☁️   ☸️ »</a></p></div>]]></description>
            <link>https://medium.com/devopsturkiye/apache-spark-ile-veri-transferi-d9543fb8e0b7?source=rss-c85f1a0cc476------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9543fb8e0b7</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[apache-spark]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Cansu Candan]]></dc:creator>
            <pubDate>Wed, 11 Aug 2021 18:24:05 GMT</pubDate>
            <atom:updated>2021-08-31T05:12:45.463Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Katmanlı Mimari Nedir?]]></title>
            <link>https://medium.com/devopsturkiye/katmanl%C4%B1-mimari-nedir-84d097b674c2?source=rss-c85f1a0cc476------2</link>
            <guid isPermaLink="false">https://medium.com/p/84d097b674c2</guid>
            <category><![CDATA[katmanlı-mimari]]></category>
            <category><![CDATA[yazilim-gelistirme]]></category>
            <category><![CDATA[bilgisayar]]></category>
            <category><![CDATA[yazılım-geliştirme]]></category>
            <category><![CDATA[yazılım]]></category>
            <dc:creator><![CDATA[Cansu Candan]]></dc:creator>
            <pubDate>Mon, 22 Feb 2021 18:02:21 GMT</pubDate>
            <atom:updated>2021-02-23T05:21:20.042Z</atom:updated>
            <content:encoded><![CDATA[<p>Bir geliştirici için hayatı proje geliştirmekle, kodlamakla geçiyor. Fakat yazılım dünyasında kodlama yaparken tek amacımız projenin çalışabiliyor olmasıdır. Peki sürekli değişen ve gelişen bir ekosistemde projeyi hazırladığımız bir kurum veya kişinin sonradan eklemek istedikleri olamaz mı?</p><p>Bu yazımda başarılı bir proje oluşturabilmek için dikkat edilmesi gerekilen hususlar ve mimari yaklaşımından bahsedeceğim.</p><p>Yazılım dünyasında sürdürülebilirlik çok önemlidir. Sürdürülebilirlikten kasıt kodumuzun değişime direnç göstermemesi, prensiplere uygun olması, temiz kod ile yazılması ve dokümantasyonu olmasıdır. Her ne kadar gelişigüzel kod yazarken asıl amacımız kodun çalışması olsa da aslında bir developer(geliştirici) için bu yanlıştır. Yazdığımız bir kodun, geliştirdiğimiz bir projenin <strong>okunabilirliği (readability)</strong>, <strong>anlaşılabilirliği </strong>, tekrar kullanılabilirliği (<strong>reusability</strong>), bakım yapılabilirliği( <strong>maintainability</strong>) çok önemlidir. Bu yüzden projemizi belirli formatlarda geliştirmeliyiz. Bu açıdan mimari yaklaşımlardan yararlanırız. Projemizi belirli kütüphanelere (library) ayırarak projenin daha düzenli geliştirilmesini ve projenin daha derli toplu olmasını sağlar. Bu da geliştiriciler için kodun okunabilirliğini de arttırmaktadır.</p><p><strong>Katmanlı mimaride temel olarak üç katman vardır;</strong></p><ol><li>Sunum Katmanı (Presentation Layer)</li><li>İş Katmanı (Business Layer)</li><li>Veri Katmanı (Data Access Layer)</li></ol><p>Günümüzde artan gereksinimlerden dolayı servis odaklı gibi mimarilerin gelişmesi ile bu üç katmanlı mimari Çok(n)-Katmanlı mimari haline gelmiştir.</p><p>Sunum Katmanı, Arayüz Katmanı olarak da bilinir. Kurum gereksinimlerine göre katmanlar artabilmektedir de.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*MSmpndkRsrNXFao0RlyU2A.png" /></figure><p>Bu katmanları daha da açarsak;</p><p><strong>Veri Katmanı’ </strong>nda sadece veriye erişim işlemleri gerçekleştirilir. Yani veri tabanı bağlantıları bu katmanda gerçekleştirilir. Veri tabanı bağlantısının yanı sıra ekleme, silme, güncelleme ve veri tabanından veri çekme gibi işlemler bu katmanda yapılmaktadır. Bu katmanda iş kodları, cross-cutting işlemleri gibi işlemler gerçekleştirilmez.</p><p><strong>İş</strong> <strong>Katmanı’ </strong>nda ise sadece iş kodları yazılır yani iş kuralları burada yazılır. Ancak Business katmanı da Data Access Katmanından yararlanır. Data Access’te çektiğimiz verileri Business katmanda işleriz. Böylelikle projemizde bağımlılıkları ortadan kaldırmış, projenin okunabilirliği ve geliştirilebilirliği daha açık hale getirmiş oluruz.</p><p><strong>Sunum Katmanı</strong> ise MVC uygulaması, Windows Form uygulaması, Android Mobil Uygulama gibi uygulamaların arayüz katmanıdır. Yani kullanıcıyla etkileşime geçilen işlemler bu katmanda gerçekleştirilir. Bu katmanda kullanıcıdan gelen verileri Business ile Data katmanına yönlendirir.</p><p>Katman sayısı ihtiyaçlara göre değişiklik gösterir. Servis olmayan bir mimari için 4 katman yeterlidir. Fazladan katman olmasının performansla bir alakası yoktur.</p><p><strong>Kaynaklar:</strong></p><p><a href="https://www.youtube.com/watch?v=S_YNRNoJM4o&amp;t=1065s&amp;ab_channel=EnginDemiro%C4%9F">https://www.youtube.com/watch?v=S_YNRNoJM4o&amp;t=1065s&amp;ab_channel=EnginDemiro%C4%9F</a></p><ul><li><a href="https://www.journaldev.com/2583/spring-aop-example-tutorial-aspect-advice-pointcut-joinpoint-annotations">Spring AOP Example Tutorial - Aspect, Advice, Pointcut, JoinPoint, Annotations, XML Configuration - JournalDev</a></li><li><a href="https://www.tutorialspoint.com/springaop/springaop_core_concepts.htm">Spring AOP - Core Concepts</a></li></ul><p><a href="https://medium.com/kodcular/katmanl%C4%B1-mimari-9fb34ef8c376">https://medium.com/kodcular/katmanl%C4%B1-mimari-9fb34ef8c376</a></p><p><strong>“Yapay Zeka nedir”</strong> başlıklı bloğumu okumak için 👇</p><p><a href="https://cansucandan.medium.com/yapay-zeka-nedir-2cfe9aae4331">Yapay Zeka Nedir?</a></p><p><strong>“</strong><a href="https://cansucandan.medium.com/yapay-zeka-artificial-intelligence-uygulama-%C3%B6rnekleri-ve-i%CC%87%C5%9F-olanaklar%C4%B1-34542ee916a3?source=your_stories_page-------------------------------------"><strong>Yapay Zeka(Artificial Intelligence) Uygulama Örnekleri ve İş Olanakları</strong></a><strong>” </strong>başlıklı yazım okumak için 👇</p><p><a href="https://cansucandan.medium.com/yapay-zeka-artificial-intelligence-uygulama-%C3%B6rnekleri-ve-i%CC%87%C5%9F-olanaklar%C4%B1-34542ee916a3">Yapay Zeka(Artificial Intelligence) Uygulama Örnekleri ve İş Olanakları</a></p><p><strong>“Veri Bilimi (Data Science) Nedir? Nasıl Öğrenilebilir ve Kullanılan Diller Nelerdir?”</strong> başlıklı yazım için:👇</p><p><a href="https://cansucandan.medium.com/veri-bilimi-data-science-nedir-nas%C4%B1l-%C3%B6%C4%9Frenilebilir-ve-kullan%C4%B1lan-diller-nelerdir-3b28f1d96c44">Veri Bilimi (Data Science) Nedir? Nasıl Öğrenilebilir ve Kullanılan Diller Nelerdir?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84d097b674c2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devopsturkiye/katmanl%C4%B1-mimari-nedir-84d097b674c2">Katmanlı Mimari Nedir?</a> was originally published in <a href="https://medium.com/devopsturkiye">Devops &amp; AI Türkiye☁️ 🐧 🐳 ☸️</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bilgisayar Biliminde Bilinmesi Gereken Terimler]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/devopsturkiye/bilgisayar-biliminde-bilinmesi-gereken-terimler-573e525790d?source=rss-c85f1a0cc476------2"><img src="https://cdn-images-1.medium.com/max/1079/1*8t47n4GPTWeHO1_dyojk0w.png" width="1079"></a></p><p class="medium-feed-snippet">Benimde zamanla &#xF6;&#x11F;rendi&#x11F;im, daha &#xF6;&#x11F;renmeye devam etti&#x11F;im ve yaz&#x131;l&#x131;m/bili&#x15F;im d&#xFC;nyas&#x131;nda s&#x131;kl&#x131;kla kar&#x15F;&#x131;la&#x15F;t&#x131;&#x11F;&#x131;m&#x131;z terimlerden bahsedece&#x11F;im&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/devopsturkiye/bilgisayar-biliminde-bilinmesi-gereken-terimler-573e525790d?source=rss-c85f1a0cc476------2">Continue reading on Devops &amp; AI Türkiye☁️   ☸️ »</a></p></div>]]></description>
            <link>https://medium.com/devopsturkiye/bilgisayar-biliminde-bilinmesi-gereken-terimler-573e525790d?source=rss-c85f1a0cc476------2</link>
            <guid isPermaLink="false">https://medium.com/p/573e525790d</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[yazılım]]></category>
            <category><![CDATA[yazılım-geliştirme]]></category>
            <category><![CDATA[bilişim]]></category>
            <category><![CDATA[yazilim-gelistirme]]></category>
            <dc:creator><![CDATA[Cansu Candan]]></dc:creator>
            <pubDate>Sat, 09 Jan 2021 21:10:51 GMT</pubDate>
            <atom:updated>2023-09-12T06:56:53.634Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Veri Bilimi (Data Science) Nedir? Nasıl Öğrenilebilir ve Kullanılan Diller Nelerdir?]]></title>
            <link>https://cansucandan.medium.com/veri-bilimi-data-science-nedir-nas%C4%B1l-%C3%B6%C4%9Frenilebilir-ve-kullan%C4%B1lan-diller-nelerdir-3b28f1d96c44?source=rss-c85f1a0cc476------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b28f1d96c44</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[veri-bilimi]]></category>
            <category><![CDATA[yapay-zeka]]></category>
            <category><![CDATA[programlama]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Cansu Candan]]></dc:creator>
            <pubDate>Thu, 17 Dec 2020 17:07:32 GMT</pubDate>
            <atom:updated>2020-12-30T17:52:01.549Z</atom:updated>
            <content:encoded><![CDATA[<p>Yapay Zeka trendlerinden ve alt dallarından biri olan Veri Bilimi günümüzde popülerliği oldukça artmıştır. Zaman zaman yapay zeka ve bunun yanı sıra Veri Bilimi hakkında bir çok sitede, sunumlarda, kurslarda pek çok şey duymuşuzdur. Günden güne geleceğin bir parçası olan Veri Bilimi’ni öğrenmek isteyen ve bu bilim nedir diye merak edenlerin sayısı her geçen gün artmaktadır. Peki veri bilimi nedir, nasıl öğrenebiliriz?</p><p>Ayrıca Yapay zeka nedir? İş olanakları ve uygulama örneklerini bir önceki bloğumdan okuyabilirsiniz.</p><h3>Veri Bilimi Nedir?</h3><p>Veri bilimi yapay zekanın alt dallarından biridir. Yani bu demek oluyor ki geleceğin meslekleri arasında yer almaktadır. Veri günümüzde gerek şirketler gerekse işletmelerde çok büyük bir öneme sahiptir. Teknoloji geliştikçe ve verilerimiz dijital ortama aktarıldıkça veriler bir insanın sayamayacağı kadar büyük miktarda olabilmektedir. Bu verileri ise işlemeden ham bir şekilde tutmak ise çok büyük bir iş yükü gerektirir ve ham bir veri çok bir işimize yaramaz. Veriyi etkili ve yerinde kullanabilmek önemlidir.</p><p>Veri Bilimi, istatiksel ve sayısal becerileri kullanarak, güvenli ve verimli bir şekilde toplanan verilerden faydalı bilgiler çıkarmaktır. Yani verilerimizi sınıflandırarak ve görselleştirerek verilerden anlam çıkartırız. Bu anlamlar neticesinde kurumlar ve şirketler kendilerine en yüksek derecede fayda sağlayabilecek kararlar alabilirler.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*IMo7a2vbFMfi65Uvynlnnw.png" /></figure><h3><strong>Peki Veri’yi nasıl etkili kullanabiliriz?</strong></h3><p>Veri günümüzde çok önemlidir dedik. Veri’yi etkili bir biçimde kullanmaya girmeden önce verinin neden bu kadar önemli olduğundan bahsedelim. Günlük yaşantımızda her şey dijital ortama aktarılır, alışveriş ve sosyalleşme gibi ihtiyaçlarımızı teknoloji üzerinden gerçekleştiririz. Tıkladığınız her site, her bir ürün hatta internet üzerindeki her bir hareketiniz bir veridir. Bu verilerden yola çıkarak kişilerin hangi ürünü incelediği, hangi sitede ne kadar süre geçirdiği verileri tutularak bunlar üzerinden işlem yapılır. Buna bir örnek vermek gerekirse bir online alışveriş sitesinden baktığınız bir ürünün ertesi günü benzeri ürünler göstermesidir.</p><p>Veri’yi etkili kullanmaya gelirsek bir önceki paragraftan verinin önemini anlamışızdır. Biraz daha detayına inersek büyük markaların verilerden yola çıkarak kararlar vermesinde, kurumların veriler üzerinden hareket etmeleri ileride alacağı kararlarda büyük öneme sahip olabiliyor. Verilerden yola çıkarak gelecek tahminlerimizi veriler üzerinden yapabiliriz. Peki verileri nasıl etkili kullanabiliriz?</p><ol><li>Verilerinizi depolayın</li><li>Verilerinizi bütünleştirin</li><li>Analizler yapın</li><li>Verilerinizi anlamlı hale getirin</li><li>Ve son olarak verilerinizi işleyin</li></ol><p>Bu adımları gerçekleştirerek verilerinizi anlamlı hale getirebilirsiniz. Unutmayın ki bu adımlardan her biri çok önemlidir. Verileriniz var olabilir ancak veriyi işleme aşamasını gerçekleştiremezseniz verilerinizin bir anlamı olmaz veya verileriniz yeterli değilse ileride vereceğiniz kararlarda yanılma durumunuz olabilir. Bu durum büyük şirketler ve veri ile ilgilenen kişiler için oldukça önemlidir.</p><h3><strong>Veri Bilimi’ni öğrenmek için neler yapılmalıdır?</strong></h3><p>Temel olarak problem belirlenir. Yani hangi veriyle ne tür bir sonuca ulaşacağız, hedeflerimizde neler var bu konular belirlenir. Analiz edeceğimiz veriyi toplayıp bunu anlamlı hale getiririz. Burada verilerimizi anlamaya çalışacağız. Daha sonra topladığımız verileri modellemeden önce hazırlamamız gerekebilir. Veri seti olarak adlandırdığımız verilerimizi yapısal bozukluklar ve düzenlememiz gereken kısımlar olabilir. Bu veri setini hazırladıktan sonra modelleme aşamasına geçebiliriz. Modelleme aşaması ise kısaca verilerimizi fonksiyonlara, algoritmalarla eğitmektir. Modelleme tekniklerinden birisi de “<em>çoklu doğrusal regresyon modeli”</em>dir. Modelleme aşamasını bitirdikten sonra kurduğumuz modelin değerlendirilmesi gerekir. Yani oluşturduğumuz modelin başarılı olup olmadığını irdeleriz. Modelimizin başarı aralığı örneğin 0 ile 1 aralığındadır. Hedeflediğimiz modelin çıktı durumunda 1&#39;e ne kadar çok yakınsa o kadar çok başarılı bir modeldir. 1&#39;e yakın değilse farklı modeller de denenebilir. Son olarak elde ettiğimiz değerler ve modellerimizi ilişkilendirmek istediğimiz sisteme dahil ederek gerçek hayata geçirebiliriz.</p><h3>Veri Bilimi’nde hangi programlama dilleri kullanılır?</h3><p>Veri Bilimcilerin kullandığı bazı popüler dillerden bahsedelim. Tabi her Veri Bilimci’nin farklı dil kullanmasının nedenlerinden bazıları her programlama dilinin avantajı ve dezavantajının olmasıdır. Performans ve verimliliğin olması o programlama dilinin tercih edilmesini sağlar. Ayrıca kaynak da bir o kadar önemlidir. Geliştiriciler program yazarken karşılaştığı sıkıntılar veya yaptığı araştırmalarda kaynağa kolay ulaşabilmesi de o dilin popülerliğini arttırmaktadır.</p><p>● R</p><p>● Python</p><p>● SQL</p><p>● JAVA</p><p>● MATLAB</p><p>● Julia</p><p>● Scala</p><p>Buraya kadar geldiğiniz için teşekkürler 🤗Görüşlerinizi yorumlarda lütfen bildirin. 😊</p><p>“Yapay Zeka nedir” başlıklı bloğumu okumak için 👇</p><p><a href="https://cansucandan.medium.com/yapay-zeka-nedir-2cfe9aae4331">https://cansucandan.medium.com/yapay-zeka-nedir-2cfe9aae4331</a></p><p><strong>“</strong><a href="https://cansucandan.medium.com/yapay-zeka-artificial-intelligence-uygulama-%C3%B6rnekleri-ve-i%CC%87%C5%9F-olanaklar%C4%B1-34542ee916a3?source=your_stories_page-------------------------------------"><strong>Yapay Zeka(Artificial Intelligence) Uygulama Örnekleri ve İş Olanakları</strong></a><strong>” </strong>başlıklı bloğumu okumak için 👇</p><p><a href="https://cansucandan.medium.com/yapay-zeka-artificial-intelligence-uygulama-%C3%B6rnekleri-ve-i%CC%87%C5%9F-olanaklar%C4%B1-34542ee916a3">https://cansucandan.medium.com/yapay-zeka-artificial-intelligence-uygulama-%C3%B6rnekleri-ve-i%CC%87%C5%9F-olanaklar%C4%B1-34542ee916a3</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b28f1d96c44" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yapay Zeka(Artificial Intelligence) Uygulama Örnekleri ve İş Olanakları]]></title>
            <link>https://medium.com/devopsturkiye/yapay-zeka-artificial-intelligence-uygulama-%C3%B6rnekleri-ve-i%CC%87%C5%9F-olanaklar%C4%B1-34542ee916a3?source=rss-c85f1a0cc476------2</link>
            <guid isPermaLink="false">https://medium.com/p/34542ee916a3</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[yapay-sinir-ağları]]></category>
            <category><![CDATA[yapay-öğrenme]]></category>
            <category><![CDATA[yapay-zeka]]></category>
            <category><![CDATA[uygulama]]></category>
            <dc:creator><![CDATA[Cansu Candan]]></dc:creator>
            <pubDate>Thu, 19 Nov 2020 13:27:37 GMT</pubDate>
            <atom:updated>2021-01-30T10:44:00.922Z</atom:updated>
            <content:encoded><![CDATA[<p>Bir önceki yazımda “Yapay Zeka Nedir?” konusunu ele almıştım. Şimdi ise yapay zekanın uygulama örneklerine göz atalım ve iş olanaklarından bahsedelim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*4V7-0MQd8xXIuxCVItaBrQ.jpeg" /></figure><p>Yapay zeka günümüzde uygulama platformları, otomobil, tıp, robotik ve daha birçok alanda karşımıza çıkmaktadır.</p><h3>Yapay Zeka Uygulama Örnekleri</h3><ol><li><strong>Akıllı Asistanlar</strong></li></ol><p>Sanal asistan veya dijital asistan olarak da bilinen akıllı asistanlar, doğal dili işleme yöntemleriyle verilen komutları yerine getirirler. Örneğin; hava tahminini paylaşma, toplantı istekleri oluşturma, bir spor skorunu bildirme veya telefon araması gibi birçok konularda yardımcı olabilirler.</p><p><strong><em>Örnek: </em></strong>Google Assistant, Siri, Amazon Alexa, Cortana</p><p><strong>2. Tavsiye Sistemleri</strong></p><p>Uygulama platformlarında “sizin için önerilenler”, Amazon’da “Bu ürünleri alan müşteri aynı zamanda x ürünü aldı” , Facebook’ta “Tanıyor olabileceğiniz kişiler” gibi önerilerle sıklıkla karşılaşmışızdır. Yapay zeka her gün hatta her an karşımıza çıkmaktadır. Tabi bu algoritmalar daha önce o uygulamada gerçekleştirdiğimiz her sayfa görüntülemeleri, yapılan satın almalar gibi eylemlerimize dayanır.</p><p><strong><em>Örnek:</em></strong> Netflix, Facebook, Linkedin, Amazon, Trendyol, Spotify</p><p><strong>3. Müşteri Segmentasyonu</strong></p><p><strong><em>Örnek:</em></strong> Facebook, kullanıcılarına, beğendiği gönderilere, takip ettiği sayfalara dayalı ilgi ve tercihleri ​​içeren gelişmiş bir yapay zeka sunar.</p><p><strong>4. Otomatik Fotoğraf Etiketlemeleri</strong></p><p><strong><em>Örnek:</em></strong> Facebook’un fotoğraf üzerinde insan, kedi veya diğer bir canlı olarak tespit etmesi</p><p><strong>5. Kanser/Hastalık Teşhisi</strong></p><p><strong><em>Örnek: </em></strong>Solid Tumor Solutions, SOPHiA GENETICS’in (bir İsviçre şirketi), hastaların DNA örneklerini bir AI platformunda analiz eden onaylı kanser test kitidir.</p><p>Yapay zeka tıp alanında da bir o kadar önemli olduğunu ve daha birçok hastalığın da yapay zeka teknolojileriyle teşhis edilebileceğini görüyoruz.</p><p><strong>6. Otonom Araçlar :</strong></p><p>Otonom araçlar insanlar gibi araç kullanabilirler mi?</p><p>Bu soruyu günümüzde sormak için geç bile kalındı. Artık birçok otonom araç üreten büyük şirketler için kendi kendine gidebilen araçlar film dünyasından çıkmış durumda. Ülkemizde rastlanılması pek mümkün görünmese de diğer bazı ülkelerde yolda görmek alışılmış bir durum haline gelmiş.</p><p>Peki otonom araçlar nasıl çalışıyor?</p><p>Sensörlerden gelen verileri toplayarak, yörüngeleri planlar ve yörünge üzerinde ilerler. Tabi sadece bu görevleri yerine getirmekle olmuyor. Bireylerin güvenli ve emniyetli yol almaları gerekir. Yine bu sorunların üstesindenyapay zeka gelebiliyor gibi görünüyor.</p><p><strong><em>Örnek :</em></strong> Tesla Autopilot, Mercedes-Benz Distronic Plus, Nissan ProPilot Assist, General Motors Super Cruise</p><h3><strong>Yapay Zeka İş Olanakları</strong></h3><p>Yapay zeka ile ilgilenen adaylar bu alanlarda çalışabilirler:</p><p>●Makine Öğrenimi Mühendisi</p><p>●Veri Bilimcisi</p><p>●Veri Analizi</p><p>●Veri Görselleştirme</p><p>●Derin Öğrenme</p><p>●Görüntü İşleme</p><p>●Doğal Dil İşleme</p><p>●İş Zekası Geliştirici</p><p>●Robotik</p><p>Görüşlerinizi lütfen bildirin.</p><p>Bir önceki “Yapay Zeka Nedir?” başlıklı bloğum:</p><p><a href="https://cansucandan.medium.com/yapay-zeka-nedir-2cfe9aae4331">Yapay Zeka Nedir?</a></p><p>Kaynaklar:</p><p><a href="https://mesowatch.com/applications-of-artificial-intelligence-in-cancer-diagnosis-and-treatment/">Applications of Artificial Intelligence in Cancer Diagnosis and Treatment &quot; Mesowatch</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34542ee916a3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devopsturkiye/yapay-zeka-artificial-intelligence-uygulama-%C3%B6rnekleri-ve-i%CC%87%C5%9F-olanaklar%C4%B1-34542ee916a3">Yapay Zeka(Artificial Intelligence) Uygulama Örnekleri ve İş Olanakları</a> was originally published in <a href="https://medium.com/devopsturkiye">Devops &amp; AI Türkiye☁️ 🐧 🐳 ☸️</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yapay Zeka Nedir?]]></title>
            <link>https://cansucandan.medium.com/yapay-zeka-nedir-2cfe9aae4331?source=rss-c85f1a0cc476------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cfe9aae4331</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[yapay-zeka]]></category>
            <category><![CDATA[yapay-zeka-nedir]]></category>
            <category><![CDATA[makine-öğrenmesi]]></category>
            <dc:creator><![CDATA[Cansu Candan]]></dc:creator>
            <pubDate>Wed, 18 Nov 2020 11:15:52 GMT</pubDate>
            <atom:updated>2020-11-20T14:39:16.855Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oUr68UTNN6H_iFw08J7O9Q.jpeg" /></figure><p>Gelişen teknolojiler ile birlikte günden güne yapay zeka teknolojileri de gelişmektedir. Günümüzde yapay zekanın hayatımızı kolaylaştırdığı aşikar. Peki gelişen teknolojiler karşısında yapay zeka nedir ve yapay zekanın geleceği nedir?</p><p>Yapay zeka <strong>insan zekasını</strong> ve düşünme yöntemlerini taklit eden, insanların uzun sürede yaptığı eylemleri, düşünme becerilerini kısa sürede ve etkili bir biçimde gerçekleştiren bilgisayar sistemleridir.</p><h3><strong>Yapay Zeka Terimi İlk Nerede Kullanılmıştır?</strong></h3><p>Evet yapay zeka insan zekasını taklit ediyor. Peki neden? Evrende kabul edilen en zeki varlıklar olarak insan kabul edilmektedir. İnsanın düşünme kabiliyetinin sembolik bir biçimde düşünme eğiliminde olan filozofların da ilgisini çekmiştir. <strong>“ Yapay Zeka”</strong> terimi ilk defa İngiltere’de New Hampshire’da bulunan <em>Dartmouth College</em>’da yapılan bir konferansta ortaya atılmıştır.</p><p>1997 yılında IBM (International Business Machines)’in ürettiği Deep Blue adlı bilgisayar, satranç ustası Garry Kasparov’u yenmesiyle, yapay zekanın önemi daha da artmış oldu.</p><h3>Yapay Zeka ve Gelecek</h3><p>Yapay zeka konusu her geçen gün kendisini geliştirmekte ve yeni tartışmalara da yol açmaktadır. “Yapay zekanın geleceği nedir?” gibi. Dünyada bilgiler arttıkça, teknolojiler geliştikçe yapay zeka da farkında olsak da olmasak da hayatımıza yer edinmiş durumda ve edinmeye de devam edecektir. Günümüzde bir insanın saatlerce belki de aylarca yapabileceği bir eylemi, yapay zeka teknolojileriyle dakikalara hatta saniyelere kadar indirmek mümkündür.</p><p>Yapay Zeka Uygulama Örnekleri ve İş Olanaklarını merak ediyorsanız:</p><p><a href="https://cansucandan.medium.com/yapay-zeka-artificial-intelligence-uygulama-%C3%B6rnekleri-ve-i%CC%87%C5%9F-olanaklar%C4%B1-34542ee916a3">Yapay Zeka(Artificial Intelligence) Uygulama Örnekleri ve İş Olanakları</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cfe9aae4331" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>