<?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 Fatmabeyzaaydogan on Medium]]></title>
        <description><![CDATA[Stories by Fatmabeyzaaydogan on Medium]]></description>
        <link>https://medium.com/@fatmabeyzaaydogan?source=rss-491b3773bf4a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hyojKL8dMvY4AWGW</url>
            <title>Stories by Fatmabeyzaaydogan on Medium</title>
            <link>https://medium.com/@fatmabeyzaaydogan?source=rss-491b3773bf4a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:55:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fatmabeyzaaydogan/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[Understanding RTOS and FreeRTOS: History, Types, and Code Comparisons]]></title>
            <link>https://medium.com/@fatmabeyzaaydogan/understanding-rtos-and-freertos-history-types-and-code-comparisons-5b8c99ee6301?source=rss-491b3773bf4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b8c99ee6301</guid>
            <category><![CDATA[tor]]></category>
            <category><![CDATA[threads]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[freertos]]></category>
            <dc:creator><![CDATA[Fatmabeyzaaydogan]]></dc:creator>
            <pubDate>Wed, 27 Aug 2025 11:09:51 GMT</pubDate>
            <atom:updated>2025-08-27T11:09:51.240Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*vdP3NdZeaEs6DNGq.png" /></figure><h3>A Brief History: How RTOS Came to Life</h3><p>The concept of a <strong>Real-Time Operating System (RTOS)</strong> dates back to the late 1960s and early 1970s, when embedded systems started requiring deterministic, predictable responses for industrial control, defense systems, and telecommunications. Unlike general-purpose operating systems, RTOS was designed to execute tasks with <strong>minimal latency</strong> and <strong>maximum reliability</strong>.</p><p>FreeRTOS itself was created by <strong>Richard Barry in 2003</strong> as an <strong>open-source</strong> RTOS. It quickly gained popularity due to its portability, lightweight architecture, and extensive hardware support. Today, FreeRTOS is one of the <strong>world’s most used open-source RTOSs</strong>, with applications in IoT devices, automotive systems, industrial machines, and more.</p><h3>What Is an RTOS?</h3><p>An <strong>RTOS (Real-Time Operating System)</strong> is a specialized operating system designed for applications where <strong>timing is as critical as functionality</strong>. The main goal is to ensure tasks are completed <strong>within strict deadlines</strong> — whether it’s controlling a motor in a robot arm or processing sensor data in a drone.</p><p>In an RTOS environment:</p><ul><li>Tasks (threads) are scheduled based on <strong>priority</strong>.</li><li>Preemptive scheduling allows high-priority tasks to interrupt lower-priority ones.</li><li>Deterministic response times are ensured.</li><li>Synchronization mechanisms (semaphores, queues, mutexes) avoid data conflicts.</li></ul><h3>Types of RTOS</h3><p>RTOS implementations differ based on <strong>task scheduling strategies</strong>:</p><ol><li><strong>Hard Real-Time OS</strong><br> Failure to meet deadlines can cause system failure.<br> <em>Examples</em>: VxWorks, QNX.</li><li><strong>Soft Real-Time OS</strong><br> Occasional deadline misses are tolerable but not desirable.<br> <em>Examples</em>: RT-Linux, Windows CE.</li><li><strong>Firm Real-Time OS</strong><br> Missing deadlines degrades performance but doesn’t cause a total system crash.<br> <em>Examples</em>: Some multimedia processing systems.</li></ol><h3>Popular RTOS Options</h3><p>Here are some widely used RTOS solutions and their characteristics:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*W5k52O2t7LfzcV9od7Q0hg.png" /></figure><h3>Why FreeRTOS Stands Out</h3><ul><li><strong>Open Source &amp; Free</strong> — MIT license makes it business-friendly.</li><li><strong>Small Footprint</strong> — Runs on microcontrollers with as little as a few KB of RAM.</li><li><strong>Portability</strong> — Supports many architectures (ARM, RISC-V, PIC32, etc.).</li><li><strong>Rich Ecosystem</strong> — Includes task management, queues, timers, and more.</li><li><strong>Industry Adoption</strong> — Trusted by Amazon (Amazon FreeRTOS), STMicroelectronics, Espressif, and others.</li></ul><h3>RTOS vs. Non-RTOS: The Code Difference</h3><p><strong>Without RTOS (Bare-Metal Approach):</strong></p><pre>#include &lt;stdio.h&gt;<br><br>void readSensor() {<br>    printf(&quot;Reading sensor...\n&quot;);<br>}<br><br>void controlMotor() {<br>    printf(&quot;Controlling motor...\n&quot;);<br>}<br><br>int main() {<br>    while (1) {<br>        readSensor();<br>        controlMotor();<br>    }<br>}</pre><ul><li>Executes tasks sequentially.</li><li>No real scheduling — all tasks share the same loop.</li><li>If one task takes too long, others get delayed.</li></ul><p><strong>With FreeRTOS:</strong></p><pre>#include &lt;stdio.h&gt;<br>#include &quot;FreeRTOS.h&quot;<br>#include &quot;task.h&quot;<br><br>void readSensorTask(void *pvParameters) {<br>    while (1) {<br>        printf(&quot;Reading sensor...\n&quot;);<br>        vTaskDelay(pdMS_TO_TICKS(1000)); // Run every 1s<br>    }<br>}<br><br>void controlMotorTask(void *pvParameters) {<br>    while (1) {<br>        printf(&quot;Controlling motor...\n&quot;);<br>        vTaskDelay(pdMS_TO_TICKS(500)); // Run every 0.5s<br>    }<br>}<br><br>int main(void) {<br>    xTaskCreate(readSensorTask, &quot;Sensor&quot;, 1000, NULL, 1, NULL);<br>    xTaskCreate(controlMotorTask, &quot;Motor&quot;, 1000, NULL, 1, NULL);<br>    vTaskStartScheduler();<br>    return 0;<br>}</pre><ul><li>Each function runs as an independent <strong>task</strong>.</li><li>FreeRTOS scheduler decides which task runs based on priority and timing.</li><li>Delays (vTaskDelay) allow other tasks to execute instead of blocking.</li></ul><h3>When Should You Use an RTOS?</h3><ul><li><strong>Multiple time-sensitive tasks</strong> need to run in parallel.</li><li>You require <strong>deterministic</strong> response times.</li><li>You’re working with <strong>IoT, robotics, industrial automation</strong>, or embedded devices with real-time requirements.</li></ul><p>For simple, single-task devices, bare-metal programming might be enough. But once concurrency, timing, and scalability matter, RTOS becomes the better choice.</p><h3>Final Thoughts</h3><p>In embedded systems, <strong>time is not just money — it’s functionality</strong>. RTOS, especially <strong>FreeRTOS</strong>, offers the tools to ensure your systems respond quickly, reliably, and predictably. Understanding the difference between RTOS and non-RTOS approaches is crucial for designing efficient and scalable embedded solutions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*KZwsP3YA__EEX1Gt29ivkQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b8c99ee6301" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RTOS ve FreeRTOS: Gerçek Zamanlı Dünyaya Birlikte Hızlı Bir Giriş]]></title>
            <link>https://medium.com/@fatmabeyzaaydogan/rtos-ve-freertos-ger%C3%A7ek-zamanl%C4%B1-d%C3%BCnyaya-birlikte-h%C4%B1zl%C4%B1-bir-giri%C5%9F-1294ffd63e8f?source=rss-491b3773bf4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1294ffd63e8f</guid>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[tor]]></category>
            <category><![CDATA[freertos]]></category>
            <category><![CDATA[threads]]></category>
            <dc:creator><![CDATA[Fatmabeyzaaydogan]]></dc:creator>
            <pubDate>Thu, 14 Aug 2025 13:57:11 GMT</pubDate>
            <atom:updated>2025-08-14T13:57:11.741Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*_8HRDp1BmnyWBEj7.png" /></figure><h3>Kısa Tarihçe: Bu Hikâye Nereden Başladı?</h3><p>Gömülü sistemlerde gerçek zamanlı davranış ihtiyacı 80’lerden beri vardı; ama bunu küçük MCU’larda hafif bir çekirdekle çözmek 2000’lerin işi oldu. <strong>FreeRTOS</strong>, 2003’te <strong>Richard Barry</strong> tarafından “küçük, taşınabilir, güvenilir” bir RTOS çekirdeği olarak yayımlandı. Yıllar içinde üretici portları ve topluluk katkılarıyla büyüdü. <strong>2017’de Amazon</strong>, FreeRTOS çekirdeğini temel alan <strong>Amazon FreeRTOS</strong> (güncel adıyla <em>FreeRTOS</em> + AWS entegrasyonları) girişimini duyurdu; ekosistem bulut bağlantıları, güvenlik kitaplıkları ve güncel donanım desteğiyle ivme kazandı. Bugün FreeRTOS, <strong>MIT lisanslı</strong>, çok sayıda mimaride çalışan ve dünyada en yaygın kullanılan açık kaynak RTOS çekirdeklerinden biri.</p><h3>RTOS Nedir, Neden Var?</h3><p><strong>RTOS (Real-Time Operating System)</strong>, “işlerin belirli zaman kısıtları içinde tamamlanmasını” garanti etmeyi hedefleyen bir işletim sistemi çekirdeği. Amacı basit:</p><blockquote><em>“Hangi iş </em><strong><em>ne zaman</em></strong><em>, </em><strong><em>ne kadar</em></strong><em> çalışacak?” sorusuna deterministik bir cevap vermek.</em></blockquote><p>Bunu şu yapıtaşlarıyla yapar:</p><ul><li><strong>Task/Thread:</strong> Bağımsız yürüyen iş birimleri.</li><li><strong>Scheduler:</strong> Önceliklere ve hazır/blocked durumuna göre hangi görevin CPU’yu alacağını seçer.</li><li><strong>IPC/Senkronizasyon:</strong> <strong>Queue</strong>, <strong>Semaphore</strong>, <strong>Mutex</strong>, <strong>Event Group</strong> gibi primitiflerle güvenli veri alışverişi ve kaynak koruması.</li><li><strong>Tick Timer:</strong> Tipik olarak 1 ms civarı sistem tikleri ile zaman bazlı gecikme/uyandırma.</li><li><strong>Interrupt (ISR) Yönetimi:</strong> Donanımdan gelen olaylara düşük gecikmeli tepki.</li></ul><h3>RTOS Türleri: Zaman Garantisinin Sertliği</h3><ul><li><strong>Hard Real-Time:</strong> Zaman ihlali kabul edilmez (havacılık, medikal).</li><li><strong>Firm Real-Time:</strong> Nadiren tolerans var ama performans ciddi etkilenir (endüstriyel kontrol).</li><li><strong>Soft Real-Time:</strong> Zaman kritik ama esnek (multimedya, bazı IoT senaryoları).</li></ul><h3>Ne Zaman RTOS Kullanmalıyız?</h3><ul><li>Birden çok işi aynı anda yürütmek gerekiyorsa (sensör okuma + haberleşme + kontrol döngüsü).</li><li><strong>Gecikme bütçen</strong> belirliyse (ör. 5 ms içinde PWM güncelle).</li><li>delay()/“super loop” yaklaşımı karmaşaya dönüştüyse.</li><li>Kaynak paylaşımı (I²C/SPI/UART) çakışmaları yaşıyorsan ve <strong>mutex/semaphore</strong> ihtiyacı belirginse.</li></ul><h3>Popüler RTOS’lar: Kimin Gücü Nedir?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*sScUefMn2yKL4iuyqQv6lw.png" /></figure><h3>FreeRTOS’u Farklı Kılan Ne?</h3><ul><li><strong>Ayak izi küçük:</strong> kB mertebesinde RAM ile anlamlı çoklu görev.</li><li><strong>API yalın:</strong> xTaskCreate, vTaskDelay, xQueueSend/Receive, xSemaphoreTake/Give… Öğrenmesi kolay, taşınabilirliği yüksek.</li><li><strong>Geniş ekosistem:</strong> Üretici BSP’leri, hazır örnekler, topluluk desteği.</li><li><strong>Bulut yolu açık:</strong> TLS/PKCS, OTA, MQTT gibi bileşenlerle IoT’ye hızlı köprü.</li><li><strong>Deterministik öncelik tabanlı zamanlayıcı:</strong> Preemptive çalışmada yüksek öncelik hızlıca CPU alır.</li></ul><p><strong>Zephyr ile farkı?</strong> Zephyr daha “monolitik platform” gibi; DeviceTree/kconfig, subsys/driver modeli ve test altyapısı çok güçlü. FreeRTOS ise çekirdek-odaklı: minimal, kolay gömülen, “istediğini tak-çalıştır” yaklaşımı.</p><h3>Yazılımsal Fark: Super-Loop vs RTOS (Kodla Göster)</h3><h3>1) RTOS Olmadan (bloklamayan super-loop)</h3><blockquote><em>Tek döngü, </em><em>millis() ile zamanlama; büyüdükçe if/else cehennemi.</em></blockquote><pre>// Arduino-style (No RTOS)<br>#include &lt;Arduino.h&gt;<br>#define LED_PIN 2<br><br>unsigned long tLED = 0, tSerial = 0;<br><br>void setup() {<br>  Serial.begin(115200);<br>  pinMode(LED_PIN, OUTPUT);<br>}<br><br>void loop() {<br>  unsigned long now = millis();<br><br>  // LED toggle each 500 ms<br>  if (now - tLED &gt;= 500) {<br>    tLED = now;<br>    digitalWrite(LED_PIN, !digitalRead(LED_PIN));<br>  }<br><br>  // Print each 1000 ms<br>  if (now - tSerial &gt;= 1000) {<br>    tSerial = now;<br>    Serial.println(&quot;Hello from loop()&quot;);<br>  }<br><br>  // More features? More ifs... and coupling grows.<br>}</pre><p><strong>Artıları:</strong> Basit, bağımlılık az.<br><strong>Eksileri:</strong> İş sayısı arttıkça bakım zor, önceliklendirme yok, kritik işler garanti edilmez.</p><h3>2) FreeRTOS ile (gerçek çoklu görev ve öncelik)</h3><blockquote><em>Görevler bağımsız, gecikme sırasında diğer görevler çalışır; öncelik/verim kontrolü sende.</em></blockquote><pre>// Arduino on ESP32 (FreeRTOS under the hood)<br>#include &lt;Arduino.h&gt;<br>#define LED_PIN 2<br><br>void blinkTask(void *pv) {<br>  (void) pv;<br>  pinMode(LED_PIN, OUTPUT);<br>  for (;;) {<br>    digitalWrite(LED_PIN, HIGH);<br>    vTaskDelay(500 / portTICK_PERIOD_MS);<br>    digitalWrite(LED_PIN, LOW);<br>    vTaskDelay(500 / portTICK_PERIOD_MS);<br>  }<br>}<br><br>void serialTask(void *pv) {<br>  (void) pv;<br>  for (;;) {<br>    Serial.println(&quot;Hello from Task 2&quot;);<br>    vTaskDelay(1000 / portTICK_PERIOD_MS);<br>  }<br>}<br><br>void setup() {<br>  Serial.begin(115200);<br>  xTaskCreate(blinkTask,  &quot;blink&quot;, 1024, NULL, 1, NULL);<br>  xTaskCreate(serialTask, &quot;serial&quot;,1024, NULL, 1, NULL);<br>}<br><br>void loop() { /* empty – scheduler runs the tasks */ }</pre><p><strong>Artıları:</strong> Modülerlik, öncelik, deterministik tepkiler, IPC ile düzen.<br><strong>Dikkat:</strong> Task stack boyutunu doğru seç, ISR içinde <em>FromISR</em> API’lerini kullan, <strong>priority inversion</strong> için mutex + priority inheritance’ı bilinçli kullan.</p><h3>Sık Yapılan Hatalar ve Hızlı İpuçları</h3><ul><li><strong>delay() yerine </strong><strong>vTaskDelay()</strong>: Bloklamayı çekirdeğe bırak, diğer görevler nefes alsın.</li><li><strong>ISR güvenliği:</strong> ISR’den kuyruk/semafor tetiklerken …FromISR varyantlarını kullan.</li><li><strong>Stack boyutu:</strong> “yeterli ama israf etmeyen” seç; taşma için <em>stack watermark</em> ölç.</li><li><strong>Öncelik disiplini:</strong> Her şeyi priority 5 yapmak çözüm değil; en kritik döngüye yüksek, geri kalanına düşük/orta ver.</li><li><strong>Tick frekansı:</strong> 1000 Hz her zaman gerekli değil; güç tüketimi ve context-switch maliyetini düşün.</li></ul><h3>Sonuç: Kontrol Sende, Zaman Da</h3><p>Küçük projelerde super-loop gayet iş görür. Ama iş büyüyüp zaman kısıtları ciddileştiğinde <strong>RTOS oyunun kuralını değiştirir</strong>. FreeRTOS burada hafifliği, yalın API’si ve geniş ekosistemiyle seni yormadan ölçeklendirir. Biz de geliştirici olarak davranışı planlar, öncelikleri belirler, kaynakları kurallı paylaştırırız — sistemimiz daha öngörülebilir ve sürdürülebilir olur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*KZwsP3YA__EEX1Gt29ivkQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1294ffd63e8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CRC in Embedded Systems: Ensuring Sensor Data Integrity]]></title>
            <link>https://medium.com/@fatmabeyzaaydogan/crc-in-embedded-systems-ensuring-sensor-data-integrity-b0e68d96b2f2?source=rss-491b3773bf4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0e68d96b2f2</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[crc]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <dc:creator><![CDATA[Fatmabeyzaaydogan]]></dc:creator>
            <pubDate>Thu, 14 Aug 2025 11:36:22 GMT</pubDate>
            <atom:updated>2025-08-14T11:36:22.593Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ikBqeuwrd8IaO5ZwgZmAMQ.png" /></figure><p>Anyone working with embedded systems knows that a single-bit error can sometimes bring the whole system down. Especially in IoT and robotics, if temperature, pressure, or position data is read incorrectly, serious consequences can occur. This is exactly where CRC (Cyclic Redundancy Check) comes into play. Today, I’ll walk you through why CRC is indispensable when working with sensitive sensors like the SHT4x, how it’s calculated, and how to implement it in practice.</p><h3>1️⃣ What is CRC and Why is it Important?</h3><p>CRC is a mathematical algorithm that checks the integrity of a data block. When sensor data travels over I²C, SPI, or UART, a single-bit error can occur due to cable noise, interference, or loose contacts. CRC asks: “Are these bytes correct?”</p><h3>CRC Functions:</h3><ol><li><strong>Detects errors:</strong> Even a single-bit error is caught.</li><li><strong>Prevents processing incorrect data:</strong> Stops critical data from being misused.</li><li><strong>Saves debugging time:</strong> If the system fails, you can easily determine whether it’s due to corrupted data or a code bug.</li><li><strong>Ensures protocol compliance:</strong> In sensors like the SHT4x, CRC checking is mandatory according to the datasheet.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*vPMJYBnvyAEuqV14bT35LQ.png" /></figure><h3>2️⃣ The Mathematical Foundation of CRC</h3><p>CRC checks bit sequences using polynomials. Simply put, the data block is divided by a polynomial, and the remainder is calculated and sent along with the data. The receiver repeats this calculation; if the remainders don’t match, the data is corrupted.</p><h3>Example:</h3><p>According to the SHT4x datasheet, the 8-bit CRC polynomial used is x⁸ + x⁵ + x⁴ + 1 (0x31).</p><p>CRC vs. checksum:</p><ul><li><strong>Checksum:</strong> Only adds bytes together; may miss small errors.</li><li><strong>CRC:</strong> Checks the order and combination of bits as well; more reliable.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*dFdpAN4pxJo69BMtmF2QiQ.png" /></figure><h3>3️⃣ CRC in the SHT4x Sensor</h3><p>The SHT4x sensor sends a CRC byte for each temperature and humidity reading. Example:</p><pre>Data bytes: 0x68 0x3A<br>CRC byte: 0x7C</pre><h3>CRC Calculation (C Example):</h3><pre>uint8_t calculate_crc(uint8_t *data, int len) {<br>    uint8_t crc = 0xFF;<br>    for (int i = 0; i &lt; len; i++) {<br>        crc ^= data[i];<br>        for (int j = 0; j &lt; 8; j++) {<br>            if (crc &amp; 0x80) crc = (crc &lt;&lt; 1) ^ 0x31;<br>            else crc &lt;&lt;= 1;<br>        }<br>    }<br>    return crc;<br>}</pre><p>This function validates the incoming data. If the calculated CRC doesn’t match the sensor’s CRC, the data is invalid and should be read again.</p><h3>4️⃣ Practical CRC Usage in Embedded Systems</h3><p>In practice, the benefits of CRC become clear in a scenario like this:</p><ol><li>Data is read from the sensor via I²C.</li><li>CRC check is performed.</li><li>If an error occurs, the data is read again or logged.</li></ol><h3>FreeRTOS Example:</h3><pre>void sensor_task(void *pvParameters) {<br>    uint8_t data[2];<br>    uint8_t crc;<br>    while(1) {<br>        read_sensor(data); // I2C read<br>        crc = calculate_crc(data, 2);<br>        if (crc != data[2]) {<br>            ESP_LOGW(&quot;CRC&quot;, &quot;Data corrupted, retrying...&quot;);<br>            continue;<br>        }<br>        process_data(data);<br>        vTaskDelay(pdMS_TO_TICKS(500));<br>    }<br>}</pre><p>This approach prevents corrupted data from affecting the main application and increases system reliability.</p><h3>5️⃣ CRC in Debugging</h3><p>Another strong advantage of CRC is that it saves time in debugging. When the system doesn’t work, you can quickly see if the problem is due to corrupted data or a software bug.</p><p>Example:</p><ul><li>Sensor data is incorrect → CRC fails → Check the data line.</li><li>Code has a bug → CRC passes → Look for logic or algorithm issues.</li></ul><h3>6️⃣ Advanced CRC Usage</h3><ul><li><strong>Block data:</strong> For large data blocks, CRC calculation may need optimization.</li><li><strong>Endianness issues:</strong> If byte order is wrong, CRC will fail.</li><li><strong>Alternative methods:</strong> Parity or checksum can be used, but CRC is always more reliable.</li></ul><h3>7️⃣ Conclusion</h3><p>CRC answers the question: “Is every byte from the sensor correct?” In sensitive sensors like the SHT4x, code without CRC validation is incomplete.</p><p>In short, CRC isn’t just a safety measure — it’s the cornerstone of data integrity in embedded systems. Adding CRC to your system increases reliability and significantly reduces debugging time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*-om-ZxhJb9KVO0l5hVPWIQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0e68d96b2f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gömülü Sistemlerde CRC: Sensör Verisinin Güvencesi]]></title>
            <link>https://medium.com/@fatmabeyzaaydogan/g%C3%B6m%C3%BCl%C3%BC-sistemlerde-crc-sens%C3%B6r-verisinin-g%C3%BCvencesi-c206f257d065?source=rss-491b3773bf4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c206f257d065</guid>
            <category><![CDATA[crc]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <dc:creator><![CDATA[Fatmabeyzaaydogan]]></dc:creator>
            <pubDate>Thu, 14 Aug 2025 11:28:31 GMT</pubDate>
            <atom:updated>2025-08-14T11:28:31.257Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ikBqeuwrd8IaO5ZwgZmAMQ.png" /></figure><p>Gömülü sistemlerle uğraşan herkes bilir; bazen tek bir bitlik hata tüm sistemi altüst edebilir. Özellikle IoT ve robotik uygulamalarda sıcaklık, basınç veya konum verisi hatalı okunursa ciddi sonuçlar doğabilir. İşte CRC (Cyclic Redundancy Check) tam da bu noktada devreye giriyor. Bugün sana, özellikle SHT4x gibi hassas sensörlerle çalışırken CRC’nin neden vazgeçilmez olduğunu, nasıl hesaplandığını ve pratikte nasıl uygulanacağını anlatacağım.</p><h3>1️⃣ CRC Nedir ve Neden Önemlidir?</h3><p>CRC, bir veri bloğunun doğruluğunu kontrol eden matematiksel bir algoritmadır. Sensörlerden gelen veriler I²C, SPI veya UART gibi hatlar üzerinden geçerken; kablo gürültüsü, parazit veya temassızlık sorunları yüzünden tek bir bit bile bozulabilir. CRC burada devreye girer ve sorar: “Bu baytlar doğru mu?”</p><h3>CRC’nin Görevleri:</h3><ol><li><strong>Hata tespiti sağlar:</strong> Tek bir bit bile bozulsa, CRC bunu yakalar.</li><li><strong>Hatalı veriyi işlemeyi önler:</strong> Kritik verilerin yanlış kullanılmasını engeller.</li><li><strong>Hata ayıklamada zaman kazandırır:</strong> Sistem çalışmazsa sorunun veri mi yoksa kod hatası mı olduğunu kolayca anlamanı sağlar.</li><li><strong>Protokol uyumluluğu sağlar:</strong> SHT4x gibi sensörlerde CRC kontrolü datasheet’in zorunlu kıldığı bir adımdır.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*vPMJYBnvyAEuqV14bT35LQ.png" /></figure><h3>2️⃣ CRC’nin Matematiksel Temeli</h3><p>CRC, bit dizilerini polinomlarla kontrol eder. Basitçe, veri bloğunu bir polinomla bölerek kalan kısmı hesaplar ve bu kalanı veriyle birlikte göndeririz. Alıcı taraf bu işlemi tekrar yapar; kalanlar uyuşmazsa veri bozulmuştur.</p><h3>Örnek:</h3><p>SHT4x datasheet’ine göre kullanılan 8-bit CRC polinomu x⁸ + x⁵ + x⁴ + 1 (0x31) olarak belirtilmiştir.</p><p>CRC ile checksum arasındaki fark:</p><ul><li><strong>Checksum:</strong> Byte’ların toplamını kontrol eder. Küçük hataları kaçırabilir.</li><li><strong>CRC:</strong> Bitlerin sırasını ve kombinasyonunu da kontrol eder, daha güvenlidir.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*dFdpAN4pxJo69BMtmF2QiQ.png" /></figure><h3>3️⃣ SHT4x Sensörü ve CRC</h3><p>SHT4x sensörü, sıcaklık ve nem verilerini okurken her veri bloğu için bir CRC byte’ı gönderir. Örnek:</p><pre>Data bytes: 0x68 0x3A<br>CRC byte: 0x7C</pre><h3>CRC Hesaplama (C Örneği):</h3><pre>uint8_t calculate_crc(uint8_t *data, int len) {<br>    uint8_t crc = 0xFF;<br>    for (int i = 0; i &lt; len; i++) {<br>        crc ^= data[i];<br>        for (int j = 0; j &lt; 8; j++) {<br>            if (crc &amp; 0x80) crc = (crc &lt;&lt; 1) ^ 0x31;<br>            else crc &lt;&lt;= 1;<br>        }<br>    }<br>    return crc;<br>}</pre><p>Bu fonksiyon, sensörden gelen veriyi kontrol etmek için kullanılır. Hesaplanan CRC ile sensörden gelen CRC uyuşmuyorsa veri hatalıdır ve yeniden okunmalıdır.</p><h3>4️⃣ Gömülü Sistemlerde CRC’nin Pratik Kullanımı</h3><p>Pratikte CRC’nin avantajlarını görmek için bir senaryo düşünelim:</p><ol><li>I²C hattından sensör verisi okunuyor.</li><li>CRC kontrolü yapılıyor.</li><li>Hata varsa veri tekrar okunuyor veya loglanıyor.</li></ol><h3>FreeRTOS Örneği:</h3><pre>void sensor_task(void *pvParameters) {<br>    uint8_t data[2];<br>    uint8_t crc;<br>    while(1) {<br>        read_sensor(data); // I2C okuma<br>        crc = calculate_crc(data, 2);<br>        if (crc != data[2]) {<br>            ESP_LOGW(&quot;CRC&quot;, &quot;Data corrupted, retrying...&quot;);<br>            continue;<br>        }<br>        process_data(data);<br>        vTaskDelay(pdMS_TO_TICKS(500));<br>    }<br>}</pre><p>Bu yaklaşım, hatalı verilerin ana uygulamayı etkilemesini önler ve sistem güvenilirliğini artırır.</p><h3>5️⃣ Hata Ayıklamada CRC</h3><p>CRC’nin bir başka güçlü yanı, hata ayıklamada zaman kazandırmasıdır. Sistem çalışmadığında sorun veri bozulmasından mı yoksa yazılım hatasından mı kaynaklanıyor hemen anlayabilirsin.</p><p>Örnek:</p><ul><li>Sensörden gelen veri yanlış → CRC başarısız → veri hattı kontrol edilir.</li><li>Kodda hata → CRC doğru → sorun algoritmada aranır.</li></ul><h3>6️⃣ İleri Seviye CRC Kullanımı</h3><ul><li><strong>Blok veriler:</strong> Büyük veri bloklarında CRC hesaplamasını optimize etmek gerekebilir.</li><li><strong>Endianness sorunları:</strong> Bayt sırası yanlışsa CRC hatalı çıkar.</li><li><strong>Alternatif yöntemler:</strong> Parity veya checksum kullanılabilir, ama CRC her zaman daha güvenilirdir.</li></ul><h3>7️⃣ Sonuç</h3><p>CRC, sensörden gelen “her bayt doğru mu?” sorusunun cevabıdır. SHT4x gibi hassas sensörlerde, CRC kontrolü olmadan yazılan kod eksik sayılır.</p><p>Kısaca, CRC sadece bir güvenlik önlemi değil; gömülü sistemlerde veri doğruluğunun temel yapı taşıdır. Sistemine CRC ekleyerek hem güvenliği artırabilir hem de hata ayıklamada büyük zaman kazanabilirsin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*-om-ZxhJb9KVO0l5hVPWIQ.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c206f257d065" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Time-Series or Relational for IoT? A Comparison of InfluxDB and PostgreSQL]]></title>
            <link>https://medium.com/@fatmabeyzaaydogan/time-series-or-relational-for-iot-a-comparison-of-influxdb-and-postgresql-c41ffe9279df?source=rss-491b3773bf4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c41ffe9279df</guid>
            <category><![CDATA[influxdb]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[postgresql]]></category>
            <dc:creator><![CDATA[Fatmabeyzaaydogan]]></dc:creator>
            <pubDate>Mon, 11 Aug 2025 07:03:40 GMT</pubDate>
            <atom:updated>2025-08-11T07:03:40.926Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*l9ktb4erdPUhKAGjWHH6QA.jpeg" /></figure><p>In IoT projects, choosing the right database can be just as critical as selecting the right hardware.<br> If, like me, you’re building a system that collects sensor data, you’ve probably asked yourself:<br> <strong>“Should I use a Time-Series database or a Relational database?”</strong></p><p>In this article, we’ll explore two popular options — <strong>InfluxDB</strong> (Time-Series) and <strong>PostgreSQL</strong> (Relational). We’ll compare their strengths, weaknesses, installation examples, and discuss which one fits better in different scenarios.</p><h3>📊 What is a Time-Series Database?</h3><p>A time-series database is designed specifically for storing data with <strong>timestamps</strong>. If your IoT device sends temperature, humidity, or pressure readings every second, these databases are optimized for <strong>fast writes, fast reads, and time-based queries</strong>.</p><p><strong>Common Use Cases:</strong></p><ul><li>IoT sensor data (temperature, humidity, vibration)</li><li>Energy consumption measurements</li><li>Financial market data</li><li>Server performance metrics</li></ul><p><strong>Advantages:</strong></p><ul><li>High write throughput</li><li>Optimized indexing for time-based queries</li><li>Built-in retention policies for automatic data deletion/archiving</li><li>Lower disk usage via downsampling and compression</li></ul><h3>🗄️ What is a Relational Database?</h3><p>Relational databases store data in <strong>tables</strong> and are queried with SQL. Systems like PostgreSQL, MySQL, and MariaDB belong to this category. They can handle IoT data, but at very high data ingestion rates, performance tuning is often required.</p><p><strong>Common Use Cases:</strong></p><ul><li>User management, device inventory</li><li>Linking IoT data with business data</li><li>Systems requiring strong data integrity</li><li>Complex JOIN queries</li></ul><p><strong>Advantages:</strong></p><ul><li>Data integrity (ACID compliance)</li><li>Powerful data modeling (relationships between tables)</li><li>Mature ecosystem, decades of proven reliability</li><li>Rich and flexible querying capabilities</li></ul><h3>⚖️ InfluxDB vs PostgreSQL: Side-by-Side</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*2s_cJFRwZ1G307Lig9ZgIg.png" /></figure><h3>🛠️ Installation Examples</h3><p><strong>InfluxDB (via Docker):</strong></p><pre>docker run -p 8086:8086 \<br>  -v $PWD:/var/lib/influxdb2 \<br>  influxdb:2.7</pre><p>After installation, go to <a href="http://localhost:8086/">http://localhost:8086</a> to create your database via the web UI.</p><p><strong>PostgreSQL (via Docker):</strong></p><pre>docker run -p 5432:5432 \<br>  -e POSTGRES_PASSWORD=mysecretpassword \<br>  postgres:15</pre><p>You can then connect using psql or any PostgreSQL client.</p><h3>🧭 When to Choose Which?</h3><p><strong>Choose InfluxDB if:</strong></p><ul><li>You’re collecting high-frequency timestamped data</li><li>Data grows quickly and retention policies are important</li><li>You want tight integration with visualization tools like Grafana</li></ul><p><strong>Choose PostgreSQL if:</strong></p><ul><li>You need to relate IoT data to other business data</li><li>You require complex SQL queries</li><li>Data integrity and ACID compliance are essential</li></ul><h3>🎯 Conclusion</h3><p>There’s no single “right” choice for every IoT project.<br> My personal approach is often <strong>hybrid</strong>:</p><ul><li>Store sensor data in <strong>InfluxDB</strong> (fast writes + time-series optimization)</li><li>Keep device info, user data, and business logic in <strong>PostgreSQL</strong></li></ul><p>This way, you get the best of both worlds — high performance and strong data integrity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*b3O6IFLYK-wZ9UwRJl272A.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c41ffe9279df" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IoT Projelerinde Zaman Serisi mi, İlişkisel mi? InfluxDB ve PostgreSQL Karşılaştırması]]></title>
            <link>https://medium.com/@fatmabeyzaaydogan/iot-projelerinde-zaman-serisi-mi-i%CC%87li%C5%9Fkisel-mi-influxdb-ve-postgresql-kar%C5%9F%C4%B1la%C5%9Ft%C4%B1rmas%C4%B1-0a157fdb3695?source=rss-491b3773bf4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a157fdb3695</guid>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[influxdb]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Fatmabeyzaaydogan]]></dc:creator>
            <pubDate>Mon, 11 Aug 2025 06:53:29 GMT</pubDate>
            <atom:updated>2025-08-11T06:53:29.723Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*l9ktb4erdPUhKAGjWHH6QA.jpeg" /></figure><p>IoT projelerinde veritabanı seçimi, çoğu zaman donanım seçimi kadar kritik bir karar oluyor. Siz de benim gibi sensörlerden veri toplayan bir sistem geliştiriyorsanız, muhtemelen şu soruyu kendinize sormuşsunuzdur:<br> <strong>“Zaman serisi (Time-Series) veritabanı mı yoksa ilişkisel (Relational) veritabanı mı kullanmalıyım?”</strong></p><p>Ben bu yazıda, iki popüler seçenek olan <strong>InfluxDB</strong> (Time-Series) ve <strong>PostgreSQL</strong> (Relational) üzerinden bu soruya cevap arayacağım. Avantajları, dezavantajları, kurulum örnekleri ve hangi senaryoda hangisini tercih etmeniz gerektiğini beraber inceleyeceğiz.</p><h3>📊 Zaman Serisi Veritabanı (Time-Series DB) Nedir?</h3><p>Zaman serisi veritabanları, verileri <strong>zaman damgaları</strong> (timestamps) ile saklamak üzerine optimize edilmiş sistemlerdir. Yani IoT cihazınız her saniye sıcaklık, nem, basınç gibi değerler gönderiyorsa, bunları <strong>hızlı yazma, hızlı okuma ve zaman bazlı sorgulama</strong> için özel olarak tasarlanmış bir yapıda tutar.</p><p><strong>Örnek Kullanım Alanları:</strong></p><ul><li>IoT sensör verileri (sıcaklık, nem, titreşim)</li><li>Enerji tüketim ölçümleri</li><li>Finansal piyasa verileri</li><li>Sunucu performans metrikleri</li></ul><p><strong>Avantajları:</strong></p><ul><li>Yüksek veri yazma hızı</li><li>Zaman bazlı sorgular için optimize edilmiş indeksleme</li><li>Otomatik veri arşivleme / silme (Retention Policy)</li><li>Düşük disk alanı kullanımı (downsampling, compression)</li></ul><h3>🗄️ İlişkisel Veritabanı (Relational DB) Nedir?</h3><p>İlişkisel veritabanları, verileri <strong>tablolar</strong> halinde saklar ve SQL sorguları ile yönetilir. PostgreSQL, MySQL, MariaDB gibi sistemler bu kategoriye girer. IoT verileri için de kullanılabilir, ancak çok yüksek frekansta veri yazılması gerekiyorsa, performans optimizasyonları yapmak gerekir.</p><p><strong>Örnek Kullanım Alanları:</strong></p><ul><li>Kullanıcı yönetimi, cihaz envanteri</li><li>IoT verilerinin diğer iş verileriyle ilişkilendirilmesi</li><li>Veri bütünlüğü gerektiren sistemler</li><li>Karmaşık JOIN sorguları</li></ul><p><strong>Avantajları:</strong></p><ul><li>Veri bütünlüğü (ACID)</li><li>Güçlü veri modelleme (tablolar arası ilişkiler)</li><li>Geniş ekosistem, uzun yıllar süren olgunluk</li><li>Zengin sorgu yetenekleri</li></ul><h3>⚖️ InfluxDB vs PostgreSQL: Yan Yana Karşılaştırma</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*Kkc7XQV4-s5CU9TkEZnHsA.png" /></figure><h3>🛠️ Kurulum Örnekleri</h3><p><strong>InfluxDB (Docker ile):</strong></p><pre>docker run -p 8086:8086 \<br>  -v $PWD:/var/lib/influxdb2 \<br>  influxdb:2.7</pre><p>Kurulum sonrası <a href="http://localhost:8086/">http://localhost:8086</a> adresine gidip arayüzden veritabanınızı oluşturabilirsiniz.</p><p><strong>PostgreSQL (Docker ile):</strong></p><pre>docker run -p 5432:5432 \<br>  -e POSTGRES_PASSWORD=mysecretpassword \<br>  postgres:15</pre><p>Ardından psql veya herhangi bir PostgreSQL istemcisi ile bağlanabilirsiniz.</p><h3>🧭 Hangisini Ne Zaman Tercih Etmelisiniz?</h3><p><strong>InfluxDB tercih edin eğer:</strong></p><ul><li>Yüksek frekansta zaman damgalı veri topluyorsanız</li><li>Veri boyutu hızla artıyorsa ve arşivleme politikaları önemliyse</li><li>Grafana gibi görselleştirme araçlarıyla sıkı entegrasyon istiyorsanız</li></ul><p><strong>PostgreSQL tercih edin eğer:</strong></p><ul><li>IoT verilerini başka iş verileriyle ilişkilendirmeniz gerekiyorsa</li><li>Karmaşık SQL sorguları çalıştırmak istiyorsanız</li><li>Veri bütünlüğü ve ACID özellikleri kritikse</li></ul><h3>🎯 Sonuç</h3><p>Bir IoT projesinde tek bir doğru yok. Hibrit yaklaşım denenebilir:</p><ul><li>Sensör verileri <strong>InfluxDB</strong>’de saklanır (yüksek hız + zaman serisi optimizasyonu)</li><li>Cihaz bilgileri, kullanıcı verileri ve iş mantığı <strong>PostgreSQL</strong>’de tutulur</li></ul><p>Böylece hem yüksek performans hem de veri bütünlüğü sağlanır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*b3O6IFLYK-wZ9UwRJl272A.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a157fdb3695" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ SQL, MySQL, MariaDB, MongoDB: A Field Guide for Not Getting Lost in the Database Jungle]]></title>
            <link>https://medium.com/@fatmabeyzaaydogan/sql-mysql-mariadb-mongodb-a-field-guide-for-not-getting-lost-in-the-database-jungle-38e2771a7e0d?source=rss-491b3773bf4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/38e2771a7e0d</guid>
            <category><![CDATA[mariadb]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[nosql]]></category>
            <dc:creator><![CDATA[Fatmabeyzaaydogan]]></dc:creator>
            <pubDate>Thu, 07 Aug 2025 07:54:39 GMT</pubDate>
            <atom:updated>2025-08-07T07:54:39.122Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/770/0*wXMhOTjJaTmt0lrf.png" /></figure><h3><strong>SQL or MongoDB? Are MySQL and MariaDB the same? Which database is right for your project?</strong><br> In this article, we dive deep into the world of databases, comparing relational (SQL-based) and NoSQL systems. You’ll discover their strengths, weaknesses, typical use cases, and basic setup examples. Whether you’re just getting started or architecting complex systems, this guide will help you make more informed database decisions.</h3><h3>📌 1. What Is a Database and Why Is It Important?</h3><p>A database is an organized collection of data following a specific structure. It allows systematic access, querying, updating, and deletion of information. From simple login systems to complex e-commerce platforms, databases are the backbone of modern applications.</p><h3>🧠 2. What is SQL: A Language or a System?</h3><p>SQL (Structured Query Language) is <strong>not</strong> a database system but a <strong>query language</strong> designed to communicate with relational databases.</p><p>Here are some common SQL commands:</p><pre>-- Retrieve data<br>SELECT * FROM users;<br><br>-- Insert new data<br>INSERT INTO users (name, email) VALUES (&#39;Ali&#39;, &#39;ali@example.com&#39;);<br><br>-- Update data<br>UPDATE users SET email = &#39;ali@newmail.com&#39; WHERE id = 1;<br><br>-- Delete data<br>DELETE FROM users WHERE id = 1;</pre><p>These commands are supported by most relational DBMSs like MySQL, MariaDB, PostgreSQL, and SQLite.</p><h3>🐬 3. MySQL: Open Source Giant Goes Corporate</h3><p>MySQL is one of the most widely used <strong>open-source relational database management systems (RDBMS)</strong>. It was created in 1995 and later acquired by Oracle in 2010.</p><p><strong>Pros:</strong></p><ul><li>Large community support</li><li>Low resource usage</li><li>High performance</li><li>Great compatibility with PHP and web applications</li></ul><p><strong>Common Use Cases:</strong></p><ul><li>WordPress</li><li>Joomla</li><li>LAMP Stack (Linux, Apache, MySQL, PHP)</li></ul><p>However, Oracle’s ownership has raised concerns in the open-source community, leading to the rise of alternatives.</p><h3>🐱‍💻 4. MariaDB: The Community’s Response</h3><p>Created by the original developers of MySQL as a reaction to Oracle’s control, MariaDB is a <strong>drop-in replacement</strong> for MySQL with a focus on openness and innovation.</p><p><strong>Why choose MariaDB?</strong><br> If you want MySQL compatibility but prefer a more open and transparent development process.</p><p><strong>Technical Advantages:</strong></p><ul><li>Fully compatible with MySQL syntax</li><li>Advanced storage engines (Aria, XtraDB)</li><li>JSON support, virtual columns, dynamic caching</li><li>Actively developed open-source project</li></ul><p><strong>Pro Tip:</strong><br> Switching from MySQL to MariaDB is often seamless, requiring little to no code change.</p><h3>🌱 5. PostgreSQL: The Enterprise-Grade Powerhouse</h3><p>PostgreSQL is one of the most robust and enterprise-ready relational databases. Known for its <strong>ACID compliance</strong>, advanced data types, and integrity features, it’s widely used by financial and analytical systems.</p><p><strong>Key Features:</strong></p><ul><li>Stores semi-structured data with JSONB</li><li>Strong data integrity with foreign keys, constraints, and triggers</li><li>Suitable for data warehousing and analytics</li></ul><h3>🍃 6. MongoDB: Champion of Schema Flexibility</h3><p>Unlike SQL-based systems, MongoDB is a <strong>NoSQL document-based database</strong>. It stores data in flexible, JSON-like documents (internally called BSON).</p><p><strong>Advantages:</strong></p><ul><li>Schema-less: Each document can have a different structure</li><li>Easily horizontally scalable</li><li>Ideal for large volumes of unstructured data</li></ul><p><strong>Use Cases:</strong></p><ul><li>Real-time analytics</li><li>IoT systems</li><li>Mobile app backends</li><li>Event logging</li></ul><pre>// Example MongoDB document<br>{<br>  &quot;name&quot;: &quot;Ali&quot;,<br>  &quot;email&quot;: &quot;ali@example.com&quot;,<br>  &quot;join_date&quot;: &quot;2025-08-01&quot;<br>}</pre><h3>⚖️ 7. SQL vs NoSQL: When to Use Which?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*hDS01yMpwuZrLexdAnwOQQ.png" /></figure><p>🔑 <strong>Note:</strong> Use SQL when you need consistency and structured data. Use NoSQL when you need flexibility and fast performance.</p><h3>🧭 8. Which Database Should You Choose?</h3><p>It depends on your project. Here’s a quick guide:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*RLtlXx1uourlZFEc_NNNcg.png" /></figure><h3>🎯 9. Where to Start?</h3><ul><li>Learn SQL basics: SELECT, JOIN, GROUP BY, etc.</li><li>Install MySQL or MariaDB and practice commands in the terminal</li><li>Understand the NoSQL mindset and JSON document structures</li><li>Build small CRUD projects</li><li>Gradually explore advanced topics like indexing, backups, and query optimization</li></ul><p><strong>Learning Resources:</strong></p><ul><li><a href="https://sqlzoo.net/">SQLZoo</a> — Interactive SQL exercises</li><li><a href="https://mariadb.com/kb">MariaDB Docs</a></li><li><a href="https://mongodb.com/">MongoDB University</a></li><li>YouTube: Traversy Media, The Net Ninja</li></ul><h3>📌 Final Thoughts: See Beyond the Data</h3><p>Choosing a database is not just a technical decision — it’s a strategic one. The right choice affects the <strong>scalability, speed, and sustainability</strong> of your application. Being fluent in both SQL and NoSQL systems is a key skill for any modern developer.</p><p>If you want to become an engineer who not only uses data but <strong>masters it</strong>, start your database journey today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*85Aum9ljuW6gxZMpajQt6w.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38e2771a7e0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ SQL, MySQL, MariaDB, MongoDB: Veritabanı Dünyasında Kaybolmamak İçin Bir El Kitabı]]></title>
            <link>https://medium.com/@fatmabeyzaaydogan/sql-mysql-mariadb-mongodb-veritaban%C4%B1-d%C3%BCnyas%C4%B1nda-kaybolmamak-i%CC%87%C3%A7in-bir-el-kitab%C4%B1-bc479cdd81cd?source=rss-491b3773bf4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc479cdd81cd</guid>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[nosql]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[mariadb]]></category>
            <dc:creator><![CDATA[Fatmabeyzaaydogan]]></dc:creator>
            <pubDate>Thu, 07 Aug 2025 07:45:03 GMT</pubDate>
            <atom:updated>2025-08-07T07:45:03.638Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/770/0*i0r8Ho8ktmbAm0Uh.png" /></figure><h3><strong>SQL mi, MongoDB mi? MySQL ile MariaDB aynı mı? Hangi veritabanı projen için daha uygun?</strong><br> Bu yazıda ilişkisel ve NoSQL veritabanlarını sade ve teknik bir dille karşılaştırıyor, her birinin artılarını, eksilerini, kullanım alanlarını ve temel komut örneklerini inceliyoruz. Yeni başlayanlardan sistem mimarlarına kadar herkes için faydalı olacak bu rehberle, veritabanı seçimini daha bilinçli yapabileceksin.</h3><p>Geliştirdiğimiz uygulamalar, sistemler ya da hizmetlerin kalbinde <strong>veri</strong> yatar. Bu veriyi güvenli, düzenli ve hızlı bir şekilde saklamak istiyorsak, doğru veritabanı çözümünü seçmek kritik hale gelir.</p><p>Peki bu noktada karşımıza çıkan SQL, MySQL, MariaDB, MongoDB gibi terimler ne anlama geliyor? Aralarındaki farklar neler? Hangi projede hangisini tercih etmeliyiz?</p><h3>1️⃣ Veritabanı Nedir, Neden Önemlidir?</h3><p>Veritabanı, belli bir yapıya göre organize edilmiş veri koleksiyonudur. Bu yapı sayesinde veriye erişmek, sorgulamak, güncellemek ya da silmek sistematik hale gelir.</p><p>Her şeyin arkasında bir veritabanı var:</p><ul><li>Basit kullanıcı kayıt sistemleri</li><li>E-ticaret platformları</li><li>IoT uygulamaları</li><li>Mobil servisler</li></ul><h3>2️⃣ SQL Nedir? Dil mi Sistem mi?</h3><p><strong>SQL (Structured Query Language)</strong>, bir veritabanı yönetim sistemi değildir. O, ilişkisel veritabanlarıyla iletişim kurmak için kullanılan bir <em>sorgu dilidir</em>.</p><p>En temel SQL komutları şunlardır:</p><pre>-- Veri listeleme<br>SELECT * FROM users;<br><br>-- Yeni veri ekleme<br>INSERT INTO users (name, email) VALUES (&#39;Ali&#39;, &#39;ali@example.com&#39;);<br><br>-- Veri güncelleme<br>UPDATE users SET email = &#39;ali@yenimail.com&#39; WHERE id = 1;<br><br>-- Veri silme<br>DELETE FROM users WHERE id = 1;</pre><p>Bu komutlar, <strong>MySQL</strong>, <strong>MariaDB</strong>, <strong>PostgreSQL</strong> gibi sistemler tarafından desteklenir.</p><h3>🐬 3. MySQL: Açık Kaynak Devinden Kurumsala</h3><p><strong>MySQL</strong>, 1995 yılında geliştirildi ve 2010’da <strong>Oracle</strong> tarafından satın alındı.</p><h3>✅ Avantajları:</h3><ul><li>Geniş topluluk desteği</li><li>Düşük donanım gereksinimi</li><li>PHP ve web uygulamalarıyla uyumlu</li><li>Yüksek performans</li></ul><h3>📌 Kullanım alanları:</h3><ul><li>WordPress</li><li>Joomla</li><li>LAMP stack (Linux-Apache-MySQL-PHP)</li></ul><p>Oracle kontrolü sebebiyle bazı geliştiriciler <strong>alternatif çözümlere yöneldi</strong>.</p><h3>🐱‍💻 4. MariaDB: Topluluğun Cevabı</h3><p><strong>MariaDB</strong>, MySQL’in kurucuları tarafından, Oracle kontrolüne karşı geliştirilmiş açık kaynaklı bir alternatiftir. <strong>%100 MySQL uyumlu</strong> olacak şekilde tasarlanmıştır.</p><blockquote><em>“MySQL’den vazgeçemem ama daha özgür bir alternatif arıyorum.” diyorsanız, MariaDB’yi tercih edebilirsiniz.</em></blockquote><h3>🎯 Teknik avantajları:</h3><ul><li>Gelişmiş storage engine seçenekleri (Aria, XtraDB)</li><li>JSON desteği</li><li>Dinamik cache optimizasyonları</li><li>Aktif geliştirme desteği</li></ul><h3>💡 Kritik not:</h3><p>MariaDB’ye geçiş genellikle <strong>drop-in replacement</strong> ile yapılabilir. Yani sistemde büyük değişiklikler olmadan geçiş mümkündür.</p><h3>🌱 5. PostgreSQL: Kurumsal Gücün Adı</h3><p><strong>PostgreSQL</strong>, güçlü veri bütünlüğü, gelişmiş veri türleri ve ACID uyumluluğu ile bilinir. Büyük kurumsal projelerde sıklıkla tercih edilir.</p><h3>⭐ Öne çıkan özellikler:</h3><ul><li><strong>JSONB</strong> ile yarı-yapısal veri desteği</li><li>Veri tutarlılığı için dış anahtarlar ve trigger’lar</li><li>Büyük veri uygulamaları için ideal yapı</li></ul><h3>🍃 6. MongoDB: Esnekliğin Temsilcisi</h3><p><strong>MongoDB</strong>, klasik tablo yapısı yerine verileri <strong>BSON</strong> (JSON benzeri) dokümanlar olarak saklayan bir <strong>NoSQL veritabanıdır</strong>.</p><h3>✅ Avantajları:</h3><ul><li>Şemasız yapı: Her veri farklı alana sahip olabilir</li><li>Yatayda kolayca ölçeklenebilir</li><li>Gerçek zamanlı, büyük hacimli veriler için ideal</li></ul><h3>🧪 Kullanım senaryoları:</h3><ul><li>IoT projeleri</li><li>Mobil uygulamalar</li><li>Olay kaydı sistemleri (event logging)</li><li>Gerçek zamanlı analiz uygulamaları</li></ul><pre>// MongoDB&#39;de tipik bir doküman<br>{<br>  &quot;name&quot;: &quot;Ali&quot;,<br>  &quot;email&quot;: &quot;ali@example.com&quot;,<br>  &quot;join_date&quot;: &quot;2025-08-01&quot;<br>}</pre><h3>⚖️ 7. SQL vs NoSQL: Hangisi Ne Zaman?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*h-LHQ_u7lM5di9MvhRdNDg.png" /></figure><blockquote><em>🔑 Not: Şemalı, ilişkisel ve tutarlı veriyle çalışıyorsanız SQL; daha esnek, hızlı ve dağıtık çözümler arıyorsanız NoSQL’i tercih edebilirsiniz.</em></blockquote><h3>🧭 8. Hangi Veritabanını Seçmeliyim?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*7gbix4hhCrdg1bpeYHQDgg.png" /></figure><h3>🎓 9. Öğrenmeye Nereden Başlamalı?</h3><p>✅ <strong>SQL dili</strong> ile başlayın (SELECT, JOIN, GROUP BY…)</p><p>✅ Terminalden <strong>MySQL / MariaDB</strong> kurup uygulamalı çalışın</p><p>✅ <strong>MongoDB mantığını</strong> ve JSON yapısını kavrayın</p><p>✅ Küçük <strong>CRUD projeleri</strong> ile pratiğe dökün</p><p>✅ Sonrasında yedekleme, replikasyon, performans optimizasyonu gibi konulara geçin</p><h3>Kaynaklar:</h3><ul><li><a href="https://sqlzoo.net/">https://sqlzoo.net</a></li><li><a href="https://mariadb.com/kb">https://mariadb.com/kb</a></li><li><a href="https://mongodb.com/">https://mongodb.com</a></li><li>YouTube: Traversy Media, The Net Ninja</li></ul><h3>🎯 Sonuç: Verinin Arkasını Anlamak</h3><p>Veritabanı seçimi yalnızca teknik değil, <strong>stratejik</strong> bir karardır. Hangi veritabanını kullanacağınız, projenizin ölçeklenebilirliğini, hızını ve sürdürülebilirliğini doğrudan etkiler.</p><blockquote><em>Modern bir geliştirici olarak SQL ve NoSQL sistemlerini birlikte anlayıp doğru yerde doğru çözümü sunabilmek, sizi birkaç adım öne geçirir.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*85Aum9ljuW6gxZMpajQt6w.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc479cdd81cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Why Start with a Local MQTT Broker and What to Expect When Transitioning to the Cloud?]]></title>
            <link>https://medium.com/@fatmabeyzaaydogan/why-start-with-a-local-mqtt-broker-and-what-to-expect-when-transitioning-to-the-cloud-f6797a2db163?source=rss-491b3773bf4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6797a2db163</guid>
            <category><![CDATA[mqtt-broker]]></category>
            <category><![CDATA[mqtt]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Fatmabeyzaaydogan]]></dc:creator>
            <pubDate>Tue, 05 Aug 2025 08:54:51 GMT</pubDate>
            <atom:updated>2025-08-05T08:54:51.351Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*37xFzkQfs9XVoeBjE0EwPw.png" /></figure><p>When developing IoT projects, one of the most crucial decisions you’ll make early on is <strong>whether to use a local or cloud-based MQTT broker</strong>. This choice affects not only your development and testing processes but also the system’s scalability, security, and performance. Let’s explore both approaches by comparing their pros, cons, and use cases — with installation guidance and real-world notes from development experience.</p><h3>🧪 Local MQTT Broker: Mosquitto on Your Machine</h3><p>For most developers, starting with a <strong>local MQTT broker</strong> like <strong>Mosquitto</strong> is the most logical step. It’s fast to set up, easy to control, and perfect for initial testing without worrying about internet connectivity or cloud configurations.</p><h3>✔️ Advantages of Using a Local Broker</h3><ul><li><strong>Offline Development:</strong> Ideal when you want to simulate sensor data or test device communication without relying on external networks.</li><li><strong>Low Latency:</strong> Since all components run on the same network or machine, there’s almost no delay.</li><li><strong>Full Control:</strong> You can inspect logs, restart services, or modify configurations instantly.</li><li><strong>No Cost or API Limits:</strong> Great for students, hobbyists, or teams working on prototypes.</li></ul><h3>❌ Limitations</h3><ul><li><strong>Not Accessible from Outside:</strong> Your devices need to be on the same local network, which limits mobility.</li><li><strong>Scalability Issues:</strong> Not suitable for projects with distributed devices or requiring high availability.</li><li><strong>No Built-in Security for Remote Access:</strong> Exposing your local broker to the internet is risky without proper encryption and authentication.</li></ul><h3>🛠️ Installing Mosquitto Locally (Ubuntu Example)</h3><pre>sudo apt update<br>sudo apt install mosquitto mosquitto-clients<br>sudo systemctl enable mosquitto<br>sudo systemctl start mosquitto</pre><p>You can then start publishing and subscribing:</p><pre># Subscriber<br>mosquitto_sub -h localhost -t test/topic<br><br># Publisher<br>mosquitto_pub -h localhost -t test/topic -m &quot;Hello MQTT&quot;</pre><h3>☁️ Moving to a Cloud-Based Broker</h3><p>As your system grows, or when you need to test devices across different networks, it becomes necessary to <strong>move to a cloud broker</strong>. This enables real-world testing, remote device communication, and preparation for deployment.</p><p>Some popular options include:</p><ul><li><strong>HiveMQ Cloud</strong></li><li><strong>Mosquitto with public IP and TLS</strong></li><li><strong>EMQX Cloud</strong></li><li><strong>AWS IoT Core</strong></li></ul><h3>✔️ Advantages of Cloud Brokers</h3><ul><li><strong>Accessible from Anywhere:</strong> Devices can publish/subscribe regardless of network.</li><li><strong>Secure Communication:</strong> Cloud brokers usually enforce SSL/TLS and proper client authentication.</li><li><strong>Advanced Monitoring and Analytics:</strong> Many platforms offer dashboards, usage statistics, and QoS control.</li><li><strong>Scalability:</strong> Designed to handle thousands of simultaneous connections.</li></ul><h3>❌ Challenges You May Face</h3><ul><li><strong>Connection Configuration:</strong> Requires DNS names, SSL certificates, and correct port usage (often 8883).</li><li><strong>Security Overhead:</strong> Setting up certificates, ACLs, and authentication tokens may take extra time.</li><li><strong>Data Size Limitations:</strong> Brokers may limit payload size; optimizing JSON packets becomes essential.</li><li><strong>Firewall or Network Restrictions:</strong> Especially if testing from institutional networks.</li></ul><h3>🧪 Observation and Debugging: MQTT Explorer</h3><p>No matter the broker type, tools like <strong>MQTT Explorer</strong> simplify development and debugging:</p><ul><li>View topic hierarchy in real time.</li><li>Monitor payload structure and size.</li><li>Observe retained messages and QoS levels.</li><li>Test publish-subscribe interactions visually.</li></ul><p>It works with both local and cloud brokers by simply entering your broker’s address and port, and providing credentials if needed.</p><h3>📊 When Should You Use Local vs Cloud?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*mWjSCaAxhHrFctDF7TJ3Hg.png" /></figure><h3>💡 Final Thoughts</h3><p>Start local to build fast and debug easily. Once your architecture is solid, make the move to the cloud for wider testing and eventual deployment. Both environments have their place in the IoT development cycle. The key is knowing when and how to transition — and being prepared for the differences in connection, security, and performance.</p><p>If you’d like help setting up either broker type or have questions about MQTT in general, feel free to drop a comment below or connect on GitHub!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*XTLjkrB45Vg4KYbb2gQtfg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6797a2db163" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ MQTT’de Local mi Cloud Broker mı? Artılar, Eksiler, Kurulum Rehberiyle Karşılaştırma]]></title>
            <link>https://medium.com/@fatmabeyzaaydogan/%EF%B8%8F-mqttde-local-mi-cloud-broker-m%C4%B1-art%C4%B1lar-eksiler-kurulum-rehberiyle-kar%C5%9F%C4%B1la%C5%9Ft%C4%B1rma-b6386977385b?source=rss-491b3773bf4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6386977385b</guid>
            <category><![CDATA[mqtt-broker]]></category>
            <category><![CDATA[mqtt]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Fatmabeyzaaydogan]]></dc:creator>
            <pubDate>Tue, 05 Aug 2025 08:44:26 GMT</pubDate>
            <atom:updated>2025-08-05T08:44:26.106Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*37xFzkQfs9XVoeBjE0EwPw.png" /></figure><p>Merhaba,<br> Eğer sen de benim gibi IoT projeleriyle haşır neşirsen, MQTT protokolünü mutlaka kullanmışsındır. Ancak bu protokolü kullanırken genellikle kritik bir kararla karşı karşıya kalırız:<br> <strong>“Local MQTT broker mı kullanmalıyım, yoksa Cloud tabanlı bir çözüme mi geçmeliyim?”</strong></p><p>İşte bu yazıda seninle beraber hem local broker’ların (özellikle Mosquitto) hem de cloud broker’ların dünyasına adım atacağız. Kurulumlardan performans farklarına kadar her yönüyle bu iki yaklaşımı inceleyeceğiz.</p><h3>🏠 Local MQTT Broker Nedir? Ne Zaman Kullanılır?</h3><p>Local broker, MQTT sunucusunun kendi bilgisayarında ya da yerel ağında çalışması anlamına gelir. Bunun için en çok tercih edilen araçlardan biri de <strong>Mosquitto</strong>.</p><h4>✅ Avantajları:</h4><ul><li><strong>Düşük gecikme süresi:</strong> Cihazların hepsi aynı ağda olduğu için veri iletimi hızlı olur.</li><li><strong>Offline çalışma imkânı:</strong> İnternet bağlantısı olmasa bile sistemin test ve demo işlemleri yapılabilir.</li><li><strong>Hızlı kurulum ve kontrol:</strong> Tamamen sizin elinizde, yapılandırması esnek.</li></ul><h4>❌ Dezavantajları:</h4><ul><li><strong>Uzak erişim zorluğu:</strong> Remote erişim için ekstra yapılandırmalar gerekebilir (port açmak, güvenlik duvarı ayarları vs.).</li><li><strong>Veri kaybı riski:</strong> Sisteminizi birden fazla kişiyle paylaşmak ya da dağıtık mimari kurmak daha zordur.</li><li><strong>Güvenlik yükü sizin üzerinizde:</strong> Şifreleme, kullanıcı doğrulama gibi önlemleri manuel olarak sağlamanız gerekir.</li></ul><h3>☁️ Cloud MQTT Broker Nedir? Ne Zaman Kullanılır?</h3><p>Cloud broker, MQTT hizmetini bir bulut sağlayıcısından almanız anlamına gelir. Bazı popüler çözümler: <strong>HiveMQ Cloud, EMQX Cloud, AWS IoT Core, Adafruit IO</strong>.</p><h4>✅ Avantajları:</h4><ul><li><strong>Kolay uzak bağlantı:</strong> Her yerden cihazlarınızla haberleşebilirsiniz.</li><li><strong>Güvenlik önlemleri entegre gelir:</strong> TLS, kullanıcı yönetimi, dashboard desteği gibi özellikler hazır sunulur.</li><li><strong>Ölçeklenebilirlik:</strong> Yüzlerce cihaza aynı anda hizmet verebilirsiniz.</li></ul><h4>❌ Dezavantajları:</h4><ul><li><strong>Bağlantı gecikmesi olabilir:</strong> İnternet üzerinden çalıştığı için bağlantı kalitesi değişkenlik gösterebilir.</li><li><strong>Ücretli planlara geçmeniz gerekebilir:</strong> Özellikle gelişmiş özellikler ve veri trafiği arttıkça.</li><li><strong>Yapılandırma biraz daha karışık olabilir:</strong> Sertifika ayarları, endpoint bağlantıları, erişim anahtarları gibi detaylara dikkat edilmelidir.</li></ul><h3>🔧 Kurulum Rehberi</h3><h4>💻 Local Mosquitto Broker Kurulumu (Linux — Ubuntu)</h4><pre>sudo apt update<br>sudo apt install mosquitto mosquitto-clients<br>sudo systemctl enable mosquitto<br>sudo systemctl start mosquitto</pre><p>Test için yayın ve abonelik komutları:</p><pre># Abone ol<br>mosquitto_sub -h localhost -t test/topic<br><br># Yayın yap<br>mosquitto_pub -h localhost -t test/topic -m &quot;Hello from local!&quot;</pre><h4>☁️ HiveMQ Cloud’a Bağlanmak (Python Paho MQTT)</h4><ol><li>HiveMQ Cloud hesabı aç: <a href="https://www.hivemq.com/cloud/">https://www.hivemq.com/cloud/</a></li><li>Bir MQTT Broker oluştur.</li><li>Bağlantı ayarlarını al (host, port, kullanıcı adı, şifre)</li><li>Python script:</li></ol><pre>import paho.mqtt.client as mqtt<br><br>client = mqtt.Client()<br>client.username_pw_set(&quot;username&quot;, &quot;password&quot;)<br>client.connect(&quot;your-broker.hivemq.cloud&quot;, 8883)<br><br>client.publish(&quot;test/topic&quot;, &quot;Hello from HiveMQ Cloud!&quot;)<br>client.loop_forever()</pre><p>Not: TLS ayarları gerekebilir. HiveMQ kendi CA sertifikasını sunar.</p><h3>🔍 Performans ve Kullanım Senaryoları</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*37v7_AU_7wEnOTve0R_J-A.png" /></figure><h3>🔎 MQTT Explorer ile İzleme</h3><p>İster local ister cloud broker kullanın, MQTT mesajlarını kolayca izlemek için <strong>MQTT Explorer</strong> uygulamasını kullanabilirsiniz:</p><ul><li>Local için localhost:1883</li><li>Cloud için TLS destekli host:8883 adresi ve kullanıcı bilgileri girilmeli.</li></ul><h3>📌 Sonuç: Ne Zaman Hangisi?</h3><ul><li><strong>Prototipleme / Geliştirme</strong> aşamasındaysanız:<br> 👉 <strong>Local broker</strong> ile başlayın. Hızlıdır, kontrol sizdedir, bağımsız çalışır.</li><li><strong>Canlı kullanım / dağıtık sistem</strong> hedefliyorsanız:<br> 👉 <strong>Cloud broker</strong>’a geçin. Güvenli, erişilebilir ve ölçeklenebilirdir.</li></ul><p>İstersen hibrit sistem de kurabilirsin: Local broker’la çalışırken, belirli verileri cloud’a yönlendirmek gibi.</p><h3>🗨️ Söz Sizde</h3><p>Siz hangi broker tipiyle çalışıyorsunuz?<br> Cloud’a geçişte neler yaşadınız, local broker’da karşılaştığınız problemler nelerdi?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*XTLjkrB45Vg4KYbb2gQtfg.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6386977385b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>