<?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 cengizhan özcan on Medium]]></title>
        <description><![CDATA[Stories by cengizhan özcan on Medium]]></description>
        <link>https://medium.com/@cengizhanozcan92?source=rss-b2ab82faa618------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*BYLVuDo5_KCCXeRd</url>
            <title>Stories by cengizhan özcan on Medium</title>
            <link>https://medium.com/@cengizhanozcan92?source=rss-b2ab82faa618------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 14:57:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cengizhanozcan92/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[Story of Seller Systems Migration]]></title>
            <link>https://medium.com/trendyol-tech/story-of-seller-systems-migration-b7e7ad1228c2?source=rss-b2ab82faa618------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7e7ad1228c2</guid>
            <category><![CDATA[legacy-system-migration]]></category>
            <category><![CDATA[design-process]]></category>
            <category><![CDATA[ddd]]></category>
            <category><![CDATA[replatforming]]></category>
            <category><![CDATA[refactoring]]></category>
            <dc:creator><![CDATA[cengizhan özcan]]></dc:creator>
            <pubDate>Wed, 12 Oct 2022 11:26:59 GMT</pubDate>
            <atom:updated>2022-10-12T11:26:59.104Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PEJcPSNZdcOvldAUUkUF1w.jpeg" /></figure><p>As Trendyol, we aim to design highly scalable, loosely coupled, flexible, durable and maintainable systems. For these purposes, we started to re-design our systems which we think are outdated.</p><p>As seller-base team, we are responsible for keeping the information of sellers and our services provide some capabilities such as creating, updating, etc… to other teams. Besides, our services are used by roughly more than 30 teams in Trendyol. Therefore, we tried our best to make the re-platform process go smoothly. Unfortunately, we faced a few tiny incidents :)</p><figure><img alt="Legacy Seller Services Design" src="https://cdn-images-1.medium.com/max/1024/1*s1xDurtHQWc1jqIdVN-Kwg.png" /><figcaption>Legacy Seller Services Design</figcaption></figure><p>First of all, I want to mention our legacy system. Our legacy system was designed in such a way that it was used by approximately 30 services which have small and large capacities and it was being maintained and developed by more than one team. Furthermore, there were services that kept the same seller information as duplicate. One of the systems was designed to provide support for Stock-Through and Flow-Through seller working models, the other one was designed to provide only the marketplace seller model.</p><p>Afterward, the existing structure was patched and systems that should work in parallel were designed to add the Marketplace seller model to the current system. (By the way, 90% of sellers are working with this model now.) Hence, there were several services in which the same data was kept and an operation was made via the same data. There were different validation rules for each system. Because of that reason we are facing out-of-sync data between two systems that were resulting in manual work. The ownership of data didn’t exactly belong to a service or a team. Therefore, services interacted with different services for the same data. For example, while one of our clients that need to work with stock through had to interact with supplier-api, this client services that are required to work with the Marketplace model had to interact with mp-supplier-api. Thus, when services wanted to take one piece of data, they had to call twice. Moreover, they had to consume two different topics when a seller was created or updated. Development of new features and maintenance was difficult. For instance, we wanted our services to run as a multi-datacenter but we couldn’t because of the RDBMS database and RabbitMQ which aren’t able to run active-active. If you have noticed, the maintenance of this system is troublesome and error-prone.</p><p>For these reasons, we decided to re-platform this legacy system.</p><h3><strong>Replatform of seller services</strong></h3><p>We paid attention to the following during the re-platform phase of seller services.</p><ol><li>The source of truth of the data is in one place. Data should be updated via services that belong to one team.</li><li>24/7 uninterrupted response</li><li>High throughput, low latency</li><li>The function of services work as multi-datacenter</li><li>After operations (CRUD), it notifies these changes via Kafka topics for other teams which wanted to localize data.</li></ol><p>During the re-platform phase, one of the most significant decisions was to separate the write database and the read database. We know that the traffic of the write endpoints was less than read endpoints. (While request coming to our services is nearly %80 read type, close to %20 are write type.) Therefore, while a relational database (Postgresql) was needed on the write side, a NoSQL (Couchbase) database was needed on the read side. Even though this structure has many pros for us, it would be our biggest handicap which is that these databases will sync within milliseconds. We decided to solve this problem with the help of Debezium which is an implementation for the Change Data Capture pattern. We were able to quickly write to the NoSQL database when there was a change in the write database thanks to Debezium.</p><p>After this design was applied to the system, we realized that while GET requests via id are able to respond very fast (~10 ms), some GET requests which include more attributes executed more slowly(~50–70 ms) than we had expected, because Couchbase needs the secondary indexes for every attributes that you want to filter. So, secondary index counts which are more than 10 for every bucket affect query performance badly. When we realized this, we focused to solve the filter search problem with Elasticsearch which is a powerful search engine. After we changed that, our filter service executed a query on Elasticsearch, and it returned an id list and searched this id list on the Couchbase. In this way, we have started to respond twice as fast to complex filters thanks to combining Elasticsearch and Couchbase which has a document structure. Here again, two structures have to be synced within milliseconds and we solved this problem with the CBES (The Couchbase Elasticsearch Connector). When any changes are made on the document in the Couchbase, it could reflect the indexes of Elasticsearch in milliseconds.</p><h3><strong>Performance</strong></h3><p>We executed a lot of performance tests on the new system and finally, we achieved our target destination. Our get endpoints approximately could respond to 200k requests per minute which includes id search and filter search. Moreover, these requests could respond with an average of 10 — 15 milliseconds. By the way, this result was executed only for one data center. We as Trendyol, try to use 3 data-center so our services approximately could respond to 600k requests per minute easily.</p><p>If I am supposed to compare the legacy system, we improved ten times on the count of GET requests and twice on the response time of GET requests even though we reduced to use of k8s resources and the count of containers to a third.</p><p>Meanwhile, under load, write operations are synced to the read database in less than 30 milliseconds.</p><figure><img alt="New Seller Services Design" src="https://cdn-images-1.medium.com/max/1024/1*VJSNZlqPJvZ6uFLJcOVHng.png" /><figcaption>New Seller Services Design</figcaption></figure><h3>Learnings</h3><p>If you want to use DDD in your design, you have to understand the DDD principles well as a team. You have to define some topics such as what your subdomain and domain are, what your aggregates are, and that everyone can speak a common language (ubiquitous language) in the team from product owners to developers.</p><p>You should arrange regular meetings with partner teams to understand their needs more clearly and they should be involved actively in the re-platform process. Besides, you should create documentation for the re-platform which includes some information such as contract changes, topics or queues changes, etc. Because, if you don’t notify them when new changes happened, the other teams won’t know what to do.</p><p>Decisions and speeches should never be verbal. Besides, each decision that was taken at the meeting should be kept historically. Moreover, if you create slack channels for each team, they might access related decisions quickly via the channel.</p><p>During the re-platform process, old services, which are killed piece by piece, should be replaced by new services because batch replatforming brings a lot of risks and difficulties to your system. In this way, you can do an easy and smooth transition.</p><p>It is vital to do a general retro with all teams involved in the re-platform process. In that, you might get information about what you do well and what you need to improve on. This information is very significant for the next re-platform processes and teams.</p><h3><strong>Conclusion</strong></h3><p>The separation of writing and reading databases has a lot of pros and cons. Therefore if you need to design your system like this you have to be careful.</p><p>Write and read systems should be synchronized as fast as you can. Besides, you should establish various kinds of alarms to keep synchronization such as the Debezium alarm that checks the status and the CBES alarm where Prometheus checks metrics of success write count.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7e7ad1228c2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/trendyol-tech/story-of-seller-systems-migration-b7e7ad1228c2">Story of Seller Systems Migration</a> was originally published in <a href="https://medium.com/trendyol-tech">Trendyol Tech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kafka Sık Kullanılan Komutlar]]></title>
            <link>https://medium.com/@cengizhanozcan92/kafka-s%C4%B1k-kullan%C4%B1lan-komutlar-7a6b35bdf7cd?source=rss-b2ab82faa618------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a6b35bdf7cd</guid>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[kafka-komutlar]]></category>
            <category><![CDATA[zookeeper]]></category>
            <dc:creator><![CDATA[cengizhan özcan]]></dc:creator>
            <pubDate>Thu, 05 Nov 2020 22:19:06 GMT</pubDate>
            <atom:updated>2020-11-05T22:19:06.734Z</atom:updated>
            <content:encoded><![CDATA[<p>Biraz balık hafızalı olduğumdan dolayı kafka da kullandığım komutların illaki bir kısmını unutuyorum. Bundan dolayı sürekli kullandığım komutları buraya ekliyorum.</p><p>Öncelikle deneme yapmak isterseniz diye localinizde docker ile kaldırabileceğiniz kafka ve zookeeper compose’u ekliyorum. Burada <a href="https://www.confluent.io/">Confluent Plaftorm</a>’un kafkasını kullandım.</p><pre>version: ‘3.3’<br>services:<br> zookeeper:<br> image: confluentinc/cp-zookeeper:latest<br> container_name: zookeeper<br> ports:<br> — 2181:2181<br> environment:<br> ZOOKEEPER_CLIENT_PORT: 2181<br> ZOOKEEPER_TICK_TIME: 2000</pre><pre>kafka:<br> image: confluentinc/cp-kafka:latest<br> container_name: kafka<br> depends_on:<br> — zookeeper<br> ports:<br> — 9092:9092<br> environment:<br> KAFKA_BROKER_ID: 1<br> KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181<br> KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:29092,PLAINTEXT_HOST://localhost:9092<br> KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT<br> KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT<br> KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1</pre><p>Not: Komutları çalıştırabilmek için compose ile oluşturulmuş kafka container’ın içine girmeniz gerekmektedir. Bunun için altta ki script’i çalıştırmanız yeterli.</p><pre>docker exec -ti kafka /bin/bash</pre><h3><strong>Komutlar</strong></h3><p>Create Topic:</p><pre>/bin/kafka-topics --bootstrap-server localhost:9092 --create --topic city.name --partitions 6 --replication-factor 1 --config retention.ms=172800000</pre><p>List Topic:</p><pre>/bin/kafka-topics --bootstrap-server localhost:9092 --list</pre><p>Describe Topic:</p><pre>/bin/kafka-topics --bootstrap-server localhost:9092 --describe --topic city.name</pre><p>Update Topic:</p><pre>/bin/kafka-topics --zookeeper zookeeper:2181 --alter --topic city.name --partitions 12  --config retention.ms=242800000</pre><p>Update Topic’s Replication:</p><pre>/bin/kafka-reassign-partitions --zookeeper zookeeper:2181 --reassignment-json-file increase-replication-factor.json --verify</pre><pre><br>increase-replication-factor.json</pre><pre><strong>{</strong>&quot;version&quot;:1,<br> &quot;partitions&quot;:<strong>[</strong><br>    <strong>{</strong>&quot;topic&quot;:&quot;city.name&quot;,<br>     &quot;partition&quot;:0,<br>     &quot;replicas&quot;:<strong>[</strong>3<strong>]</strong><br>    <strong>}</strong><br>  <strong>]</strong><br><strong>}</strong></pre><p>Delete Topic:</p><pre>/bin/kafka-topics --bootstrap-server localhost:9092 --topic city.name --delete</pre><p>Consume Topic:</p><pre>/bin/kafka-console-consumer --bootstrap-server localhost:9092  --topic city.name --from-beginning</pre><p>Produce Message:</p><pre>/bin/kafka-console-producer --bootstrap-server localhost:9092 --topic city.name</pre><p>List Consumer Group</p><pre>/bin/kafka-consumer-groups --bootstrap-server localhost:9092  --list</pre><p>Describe Consumer Group</p><pre>/bin/kafka-consumer-groups --bootstrap-server localhost:9092  --group console-consumer-46879 --describe</pre><p>Reset Offset to Consumer Group</p><pre>/bin/kafka-consumer-groups --bootstrap-server localhost:9092  --group console-consumer-46879 --topic city.name --reset-offsets --to-earliest</pre><pre>/bin/kafka-consumer-groups --bootstrap-server localhost:9092  --group console-consumer-46879 --topic city.name --reset-offsets --to-offset 1</pre><p>Sık kullandığım komutlar bu şekilde. Zamanla yeni komutlar eklemeye devam edeceğim.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a6b35bdf7cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RabbitMQ — Exchange Types]]></title>
            <link>https://medium.com/@cengizhanozcan92/rabbitmq-exchange-types-4440ab9b7a84?source=rss-b2ab82faa618------2</link>
            <guid isPermaLink="false">https://medium.com/p/4440ab9b7a84</guid>
            <category><![CDATA[rabbitmq]]></category>
            <dc:creator><![CDATA[cengizhan özcan]]></dc:creator>
            <pubDate>Tue, 25 Aug 2020 19:46:01 GMT</pubDate>
            <atom:updated>2020-08-25T19:46:01.753Z</atom:updated>
            <content:encoded><![CDATA[<h3>RabbitMQ — Exchange Types</h3><p>Merhaba,</p><p>Bu yazıda RabbitMQ’nun en önemli konularından birisi olan exchange type’lardan kısacık bahsetmek istiyorum.</p><p><strong>Öncelikle Exchange nedir?</strong></p><p>Producer mesajları direk kuyruklara iletmek yerine exchange adı verilen yapılara iletir. Exchange’ler producer dan aldığı mesajları routing key’e göre ilgili kuyruğa/kuyruklara iletmekle görevlidir. Bu iletme görevini exchange type’lara göre farklı şekillerde yapmaktadır.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*9gc22OfQlTYyDvxywrC1Pw.png" /></figure><p>RabbitMQ’de 4 farklı exchange type vardır. Bunlar;</p><ul><li>Direct Exchange</li><li>Fanout Exchange</li><li>Topic Exchange</li><li>Headers Exchange</li></ul><ol><li><strong>Direct Exchange</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*VW7w9jPBqepekmIgUh0whg.png" /></figure><p>Publish edilmiş bir mesajın routing key’ine göre ilgili kuyruğa/kuyruklara mesajı iletir.</p><p>Yani producer’un gönderdiği mesaj içerisinde bulunan routing key ile kuyruğun binding key’inin aynı olması gerekmektedir. Bu iki key birbirine eşit ise ilgili kuyruğa mesaj iletilir. RabbitMQ’nün default exchange type’ı direct’dir.</p><p><strong>2. Fanout Exchange</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*4w3JC6mY4yoiIiaZaWnvIg.png" /></figure><p>Mesajın exchange’e bağlı olan bütün kuyruklara iletilmesini sağlar. Hiç bir şekilde key eşleştirmesi yapmaz direk broadcast mantığıyla çalışır.</p><p><strong>3. Topic Exchange</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*DSkvcl8ZCES-1t0Rl07GlA.png" /></figure><p>Mesaj içerisinde bulunan routing key ile binding pattern’in eşleşmesi sonucunda mesajı ilgili kuyruğa yönlendirir.</p><p>Örneğin producer’ın gönderdiği X mesajı‘nın routing key’i user.queue1.create olsun. Mesajı alan exchange, kendisine bind olmuş kuyrukların pattern’lerini teker teker kontrol eder. Yukarıda ki resimde queue1&#39;ın pattern’i uygun olduğu için direk queue1&#39;e mesajı iletir.</p><p><strong>4. Header Exchange</strong></p><p>Mesaj içerisinde gönderilen header ile kuyruğun routing key’i eşleşiyor ise ilgili kuyruğa mesajı iletir. Burada kuyruğun x-match parametresine göre any(or) veya all(and) mantığıyla header’da gelen parametreleri işleme sokar.</p><p>Burada anlatılan bütün exchange type’lar ile ilgili bir spring-boot projesi hazırladım. Proje içerisinde RabbitMQ configurasyonu, direct, fanout, topic ve header exchange ile ilgili örnekler bulunmaktadır.</p><p>Github: <a href="https://github.com/cengizhanozcan/rabbitmq-exchange-types">https://github.com/cengizhanozcan/rabbitmq-exchange-types</a></p><p>İyi çalışmalar dilerim :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4440ab9b7a84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monolithic ve Microservice Mimarisi]]></title>
            <link>https://medium.com/@cengizhanozcan92/monolithic-ve-microservice-mimarisi-97874714fbf?source=rss-b2ab82faa618------2</link>
            <guid isPermaLink="false">https://medium.com/p/97874714fbf</guid>
            <category><![CDATA[monolithic]]></category>
            <category><![CDATA[monolithic-architecture]]></category>
            <category><![CDATA[microservice-architecture]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[cengizhan özcan]]></dc:creator>
            <pubDate>Thu, 13 Jun 2019 06:08:17 GMT</pubDate>
            <atom:updated>2019-06-13T06:08:17.290Z</atom:updated>
            <content:encoded><![CDATA[<h3>Monolithic ve Microservice Mimarileri</h3><p>Merhaba,</p><p>Bu blog yazısı monolithic ve microservice mimarileri hakkında olacaktır. Monolithic mimari ve microservice mimarileri nedir? Ne için kullanılır? Avantajları ve dezavantajları nedir? gibi konulara sizleri sıkmadan kısa kısa değiniyor olacağım.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*Adn3fzUEeCLSZfTEwQzqxA.jpeg" /><figcaption>Monolithic ve Microservice Mimarileri</figcaption></figure><h3><strong>Monolithic Mimarisi</strong></h3><blockquote>“Monolithic architecture yazılımın <strong>self-contained</strong>(kendi kendine yeten) olarak tasarlanması anlamına gelmektedir. Bir standart doğrultusunda “tek bir parça” olarak oluşması da diyebiliriz. Bu mimarideki component’ler <strong>loosely coupled </strong>olmasından ziyade, <strong>interdependent</strong> olarak tasarlanmaktadır.”</blockquote><p>Diye tanımlamış üstatlar. Bizde kısaca şu tanımı yapabiliriz: Monolithic mimari kendi kendine yetebilecek bir uygulamada ki bütün fonksiyonalitelerin tek bir çatı altında geliştirilmesidir.</p><p>Günümüze kadar geliştirilen uygulamaların neredeyse hepsi monolithic mimari ile geliştirilmiştir.</p><p>Monolithic mimarisinin avantajları ve dezavantajları bulunmaktadır. Bunlar;</p><p><strong>Avantajları</strong></p><ol><li>Yönetilebilirlik ve monitoring kolaydır.</li><li>Küçük çaplı projeler için geliştirilmesi ve bakımı kolaydır. Hızlı bir şekilde uygulama geliştirilebilir.</li><li>Fonksiyonalitelerin birlikte çalışabilirliği tutarlıdır.</li><li>Transaction yönetimi kolaydır.</li></ol><p><strong>Dezavantajları</strong></p><ol><li>Uygulama büyüdükçe yeni özellik geliştirilmesi ve mevcut kodun bakımı zorlaşır.</li><li>Projede çalışan ekip sayısının ve çalışan sayısının artması ile geliştirme ve bakım daha güç hale gelir.</li><li>Birbirlerine olan bağımlılıklarından dolayı, bir fonksiyonalitede yapılan değişiklik diğer yerleri etkileyebilir.</li><li>Spesifik bir fonksiyonaliteyi scale edebilme imkanı yoktur. (Örneğin geliştirdiğiniz uygulamada sürekli fatura oluşturuluyor ve burası uygulamanın dar boğazı. Siz bu fonksiyonaliteyi birden fazla instance da çalıştırmak isteseniz bile uygulamanız monolithic mimaride olduğu için sadece ilgili servis yerine bütün uygulamayı scale etmek zorunda kalırsınız.)</li><li>Versiyon yönetimi zorlaşır.</li><li>Uygulamada aynı programlama dili ve aynı frameworklerin kullanılması gerekir.</li><li>Uygulamada yapılan küçük bir değişiklikte bile bütün uygulamanın deploy olması gerekir.</li></ol><p>Yukarıda belirttiğimiz avantajları ve dezavantajları aklımızın bir köşesine not edelim ve microservice mimarisinin tanımını yapalım.</p><h3><strong>Microservice Mimarisi</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rsv-BSzI3lgkjGb76xc-WQ.jpeg" /><figcaption>Microservice Mimarisi</figcaption></figure><p>Microservice tam olarak şöyle tanımlanabilir: Birbirinden bağımsız olarak çalışan ve birbirleriyle haberleşen bireysel servislerdir. Her servis kendisine ait olan iş mantığını yürütür ve diğer servislerin iş mantığı ile ilgilenmez. Plansız bir şekilde genişleyen monolithic uygulamanın hantallığını, karmaşıklığını azaltan ve yönetimini kolaylaştıran bir mimaridir.</p><p>Servisler arasında ki iletişim HTTP, AMQP, TCP, UDP vb… gibi protokoller ile gerçekleşir. Transfer edilecek verilerin niteliğine göre uygun protokol seçilir. Piyasada geliştirilen uygulamaların çoğunda HTTP protokolü kullanılmaktadır. HTTP protokolü ile servisler arasında veriler JSON, XML veya Binary formatıyla gönderilir.</p><p>Microservice mimarisinin avantajları ve dezavantajları bulunmaktadır. Bunlar;</p><p><strong>Avantajları</strong></p><ol><li>Uygulama çok büyük de olsa çok küçük de olsa yeni özellik eklenmesi ve mevcut kodun bakımı kolaydır. Çünkü sadece ilgili servis içerisinde değişiklik yapmak yeterlidir.</li><li>Her servis birbirinden bağımsız ve sadece kendi iş mantıklarını bulundurduğu için servisin code base’i oldukça sade olacaktır.</li><li>Ekipler daha verimli ve hızlı bir şekilde çalışabilir. Projeye yeni başlayan arkadaşlar code base de kaybolmadan kolay bir şekilde adapte olabilir.</li><li>Servisler birbirinden bağımsız bir şekilde scale edilebilir.</li><li>Versiyonlama kolay bir şekilde gerçekleştirilir.</li><li>Bir servisde yapılan değişiklik, diğer servislerin deploy yapılmasını gerektirmez. Sadece ilgili servisin deploy yapılması yeterlidir.</li><li>Servisler farklı dillerde ve farklı frameworkler ile yazılabilir. Her servisin kendine ait farklı veritabanı olabilir.</li></ol><p><strong>Dezavantajları</strong></p><ol><li>Birden fazla servis ve birden fazla veritabanı olduğu için transaction yönetimi zorlaşacaktır.</li><li>Bu servislerin yönetilebilirliği ve monitoring işlemi zorlaşacaktır.</li><li>Servisler gereğinden fazla bağımsız olursa yönetimi zorlaşacaktır. Örneğin <strong>user</strong> ile alaklı <strong>CRUD</strong> işlemler yapan <strong>user-service</strong> adında bir servisiniz olduğunu varsayalım. Eğer siz gaza gelip <strong>user-service</strong>’ın her bir fonksiyonalitesini (create, update, delete, get… vb) ayrı servislere ayırmak isterseniz bunun yönetimi çok daha zorlaşacaktır.</li></ol><p>Microservice mimarisinin bu kadar çok artısı olmasına rağmen bazı projeler için kullanımı uygun olmayabilir. <strong><em>Bizim uygulamalarımız full microservice architecture alt yapısı ile çalışıyor</em></strong> demek için kullanmayınız :).</p><p>Microservice mimarisine kısa bir şekilde göz attık. Bundan sonra ki blog yazılarımda Java teknolojileri ile microservice mimarisi kullanan bir uygulama geliştireceğiz.</p><p>Herkese iyi çalışmalar dilerim.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97874714fbf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>