<?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 Pasanbambarendage on Medium]]></title>
        <description><![CDATA[Stories by Pasanbambarendage on Medium]]></description>
        <link>https://medium.com/@pasanbambarendage99?source=rss-3a2cb928f9d8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*cxRDxB90avzWHwkK</url>
            <title>Stories by Pasanbambarendage on Medium</title>
            <link>https://medium.com/@pasanbambarendage99?source=rss-3a2cb928f9d8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 17:36:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pasanbambarendage99/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[Analyze TCP dump for slow backends]]></title>
            <link>https://medium.com/@pasanbambarendage99/analyze-tcp-dump-for-slow-backends-787371060c67?source=rss-3a2cb928f9d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/787371060c67</guid>
            <dc:creator><![CDATA[Pasanbambarendage]]></dc:creator>
            <pubDate>Wed, 20 Jul 2022 12:23:37 GMT</pubDate>
            <atom:updated>2022-07-20T12:27:09.003Z</atom:updated>
            <content:encoded><![CDATA[<p>Consider the below programming. This is a POST request. [app. post] There is nothing that happens in the Wireshark when we start the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XwCxjYOlw07Iw-RG_LSzAg.png" /></figure><p>Let’s assume we send a JSON payload as a POST message during the run of the server. Then Wireshark will show some transactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wMBGObT_NXaxg-m8Lu-g7Q.png" /></figure><p><strong>what is the window size?</strong></p><p>As you can see, the following screenshot has a column called calculated windows size. The size is 65535. Window size means my receive buffer size. In other words, that’s a one-time this is the only maximum window I can accept.</p><p><strong>Usually, the window update sends after the window size is zero.</strong></p><p>Initially, you get window size as 65535. But POST request window size is 1279. In here 2 to the power 8. Initially receive buffer is 65535 bytes but it’s ready to accept byte sizes that are 256 times this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v7VJXW5zyKgz37K-2w6Fbg.png" /></figure><p>This window size option is only seen in TCP because that only happens in the three-way handshake.[SYN, SYN-ACK, ACK]. When checking the slowness of the transmission using TCP dump you need to make sure you capture a three-way handshake. Since bandwidth is used at the full scale those packets are important to capture.</p><p>Let’s assume we send a huge file as a POST request.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*tH2qVXA3-gc0PjlKNsYCiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*Yf09oerx59je-ahhXhXQpA.png" /></figure><p>As you can see, the window size keeps dropping from higher to lower when sending a large file. This happens because when each time asks for the next accept the subtract remaining buffer from the full buffer size (full size-remain in buffer).</p><p><strong>When this application is slow and this window size keeps dropping until it becomes 0 it should be considerable.</strong> <strong>The consumer at the upper layer may not consume the data at the same rate when it is transferred at a fast speed. If the window size becomes 0 then there is no space in the buffer and then you have to wait.</strong></p><p><strong>When a connection is slow you can see much retransmission because didn’t receive an ACK after sending data after the time-out triggers and then sending the same data again. That’s what happens in retransmission.</strong></p><p>Time to live means, how many routers we are going through. (distances) If time to live keeps reducing, that means we are taking a bad routing path. It’s good to check our DNS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*5CMO9e7shU3VvZ4D6SCZ6w.png" /></figure><p>If the delta time is increased that can lead to many things because your ACK comes slow. If ACK comes slow means you are trying to resend the data. If there are any keep alive headers frequently sent that indicate that the server is waiting until it gets data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=787371060c67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTTP]]></title>
            <link>https://medium.com/@pasanbambarendage99/http-fcf5baf03067?source=rss-3a2cb928f9d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcf5baf03067</guid>
            <dc:creator><![CDATA[Pasanbambarendage]]></dc:creator>
            <pubDate>Wed, 20 Jul 2022 10:54:13 GMT</pubDate>
            <atom:updated>2022-07-20T10:54:13.836Z</atom:updated>
            <content:encoded><![CDATA[<p>HTTP connection has two branches. There are:</p><ul><li>Persistence HTTP (HTTP 1.1)</li></ul><p>In persistence HTTP, there are two-part. such as with tunnelling and without tunnelling. By default HTTP 1.1 is tunnelling.</p><ul><li>Non-Persistence HTTP (HTTP 1.0)</li></ul><p>Open the connection you send the message, get the responses and close the connection. That means one connection passes the one message.</p><p>Keep alive — send a message to the server to keep this connection alive.</p><p>This is a small program called express app. The port number is 8190. After the run of this program, the Wireshark will show no content. But if I open the program in the browser, Wireshark will show the traffic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LlBGzfNGA_XdanuC3iyZeg.png" /><figcaption>express application</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YcYSGcpwle3b0dM5yUZ3iA.png" /></figure><p>In the above screenshot, the first three lines demonstrate the standard TCP handshake. Every transaction starts with SYN, SYN-ACK and ACK. In the fourth line, ( 739 Get/ wait HTTP/ 1.1) it sends the request and server ACK to the client. In the sixth line (294 HTTP/1.1), the server responds to the client.</p><p>You can see the 1852 time the server sends the close connection to the client. Then at 1853 time, the client ACK to the server but the client didn’t close the connection.</p><p>There is no FIN on bottem lines. you can see [TCp Keep-Alive]. because of that, we keep talking to the backend and the backend doesn’t try to terminate the connection since the client will shut down. (until the browser page is closed or refreshed). This connection is persistent.</p><p><strong>Let’s update our express program.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kKCzjCwbrNSrHddC1NEpPw.png" /></figure><p>Now the request will come and hang for one minute. After the one-minute server will respond. In line 24, the server will respond to the client. During that time, the server and client send the keep-alive headers. After getting the response (line no 24), the client sends the FIN flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*eAf813dmCsyiqFp28-TFtA.png" /></figure><p>we kill the server before the server sends the response, and the client tries to initiate a new connection. (line no 19). But the server sends the reset packet to the client. (line no 20). Because no one from the server side responds to the client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*YMpGNgScetLa-TzT3xgUnw.png" /></figure><p>If the client not sending the keep-alive header, the server is closing the connection. So the server close the connection but the client didn’t. when the client tries to send the message again, the server sends a REST packet back to the client .because the connection is closed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcf5baf03067" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TCP 3-Way Handshake]]></title>
            <link>https://medium.com/@pasanbambarendage99/tcp-3-way-handshake-353acc53670e?source=rss-3a2cb928f9d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/353acc53670e</guid>
            <dc:creator><![CDATA[Pasanbambarendage]]></dc:creator>
            <pubDate>Wed, 20 Jul 2022 07:15:50 GMT</pubDate>
            <atom:updated>2022-07-20T09:11:58.338Z</atom:updated>
            <content:encoded><![CDATA[<p>TCP hearer format:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/0*fs71WA_UiadfWBJL.png" /></figure><p>There are a few flags here.</p><ul><li><strong>Synchronization (SYN)</strong></li><li><strong>Acknowledgement (ACK)</strong></li><li><strong>Finish (FIN)</strong></li><li><strong>Reset (RST)</strong></li><li><strong>Push (PSH)</strong></li><li><strong>Urgent (URG)</strong></li></ul><p>For example:</p><p>In the first request, the client sends the SYN flag. Then the server sees that first client message and the server responds to that message with acknowledgement. (That means ACK is 1). While acknowledging server also sends the SYN packet. Every time the server sends the SYN, the client has to ACK to that. This communication is established. (between server and client)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lyDm37wFTXF9O1p9ANw21g.png" /></figure><p>Just assume the server wants to send a message to the client and the server is disconnected. (“Hello client” message) In this message, there are 12 bytes. Then the client has to ACK to the server. At this point, ACK will be 13 because previously ACK is set to 1 and after the message, ACK is 1+ length of the message.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W_Y1NeF8A6saeaDJVUOpLA.png" /></figure><p>Assume that our example, now to do the terminate the connection. To terminate the connection server set the FIN flag to 1. Then the client responds that the FIN message and ACk will be 14. In meantime, the client sends the server FIN packet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9mrWfb7D8z6y7_ifIGFB1w.png" /></figure><p>Now communication is established after sever sending an ACK back to the client.</p><p>There are two js files called <strong>server.js </strong>and <strong>client.js.</strong></p><p>In server.js — the server is running on a 42181 port. When the client connects it says hello to the client and then disconnects it.</p><p>In client.js — when you run the client it connects to the 42181 port on the server and when disconnection comes it disconnects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P2EW8j_XD-PJ-PKWE15tFg.png" /></figure><p>we first start with the client and then start with the client using the terminal. Then open Wireshark and filter it by tcp.port==42181 After running the client and server, the Wireshark will show the traffic on the relevant port number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OgSKBBcW7gF22HKWvn1Omg.png" /></figure><p>Initially, you can see it sends the SYN packet and sequence number. Also, you can see all flags and server ports below the screenshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*875OSdNTFjXCofcJkVyG8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aAzOKyFnNnbpt_fVIJ55yA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=353acc53670e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Floating Point Error]]></title>
            <link>https://medium.com/@pasanbambarendage99/floating-point-error-a810b3306ea2?source=rss-3a2cb928f9d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a810b3306ea2</guid>
            <dc:creator><![CDATA[Pasanbambarendage]]></dc:creator>
            <pubDate>Fri, 15 Jul 2022 12:08:30 GMT</pubDate>
            <atom:updated>2022-07-15T12:23:30.888Z</atom:updated>
            <content:encoded><![CDATA[<p>floating point numbers are numbers that contain floating decimal points.</p><p>For Example: 6.9 and 12.3 are floating point numbers. To represent floating point numbers in a computer “IEEE 754” standard is used.</p><p>There are three types of floating-point representations.</p><p>1. Single Precision</p><p>2. Double Precision</p><p>3. Long Double Precision</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/0*zCjjpVnUZCSsP9Xx.png" /></figure><p>Let’s take 9.1 as an example. Let’s convert 9.1 into binary and forth to represent this error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VBBNAYtrhCzggFzSWfqb-g.png" /></figure><ul><li>Converting 9.1 into Binary [ 9.1 ]</li></ul><p>1001.0001100110011001100110011…</p><ul><li>Scientific Notation [ 9.1 ]</li></ul><p>1.001000110011 X 23</p><p>In IEEE standard 1st bit represent is the sign. 0 for plus(+) and 1 for minus(-).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*Vzgw8bWu59LLZ8VZBFlImQ.png" /></figure><p>You can clearly see that there is a small fraction added. This happens because the computer tries to stop this repetitive pattern from going on for an infinite by rounding it off. This causes the floating-point error.</p><p>The simple solution is to use appropriate data types like “Big Decimal” in Java.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a810b3306ea2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Async REST services with messaging]]></title>
            <link>https://medium.com/@pasanbambarendage99/async-rest-services-with-messaging-39013ded2a9c?source=rss-3a2cb928f9d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/39013ded2a9c</guid>
            <dc:creator><![CDATA[Pasanbambarendage]]></dc:creator>
            <pubDate>Fri, 15 Jul 2022 11:53:55 GMT</pubDate>
            <atom:updated>2022-07-15T11:53:55.720Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Why do we need a messaging system?</strong></p><p>Most of the time we implement microservices based on REST. When we implement a solution based on REST, it will be asynchronous architecture. The protocol we use to do the Microservices most of the time is HTTP. HTTP is synchronous. But we implement the microservices, the REST using HTTP is become synchronous. To avoid this problem, we have to use the messaging system.</p><p><strong>What is the main difference between RabbitMQ and Kafka?</strong></p><p><strong>RabbitMQ</strong> is the ordinary queue management protocol [First In First Out]. RabbitMQ is used Advanced Messaging Queue Protocol library. [AMQP]. RabbitMQ is Smart Broker. That means can do all routing, content-based and header-based routing inside the broker.</p><p><strong>Kafka </strong>also acts as the same [FIFO] but we consider Kafka as a stream processing system. It’s very capable to process a stream of messages. Kafka has their own library. Kafka is Dump Broker. You can’t do an advanced thing with the broker but they have the different architecture to achieve the same things.</p><p>If the functionality of the system gets interrupted, Kafka can be implemented to alert the interruption.</p><p>The queue will be increased if the user is processing a message per 5 seconds while there’s only processing power for 10 messages per minute because there will be more data.</p><p><strong>In RabbitiMQ:</strong></p><p>These messages will be distributed in a circular manner to consumers in RabbitMQ which can be used to speed up this process. If we have some communications that take longer to process than others, the messages for lower consumers will require less time. Because it must wait for one message to be processed before processing the next, upper consumers form a queue.</p><p>RabbitMQ will continue sending messages and building a queue even after your process is complete. As a result, there are fewer consumers who are idle. Prefetch is used in RabbitMQ which is a fair dispatch method.</p><p>If a message is received by a consumer and cannot be processed right away, it is not in a queue and is not anywhere. In order to avoid using ACK, RabbitMQ tells when to delete the message and notifies the other party that they can remove the message because the message has finished processing.</p><p><strong>In Kafka:</strong></p><p>Take the same above scenario in Kafka. Kafka has consumer groups. Within a single topic, we can divide into several sections. whenever we post a message on the subject. We start with a key, multiply it by the number of partitions, and then check to see which partition appears. We can ensure that the same customer’s message is sent into the same partition if we use our customer number as the key.</p><p>This order is guaranteed to be in the division and not the subject. Also, there’s a consumer group configuration, which takes one consumer and points it to listen to the partition, it&#39;s like having its own consumer in each and every partition. In Kafka, if a message is delivered at some point, it knows to give the next message which is known as consumer offset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VBtFKtbvaxKCaZTjx5SjEA.png" /></figure><p>Kafka can be used as a replacement for RabbitMQ in some instances. Kafka normally has one topic and many partitions.</p><p>Always the number of consumers in a consumer group should be equal to the number of partitions or less than the number of partitions. If a single active consumer is killed, the extra partitions will start listening to the partition.</p><p>A mod algorithm is used when the key is produced with the producer and is determined by the same key. This key also guarantees that all are directed to the same partition. When there’s no key present, Kafka will do a round-robin which isn’t good because the order is not guaranteed as the same as the customer and in between messages. So a key is needed to be specified in the partition.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39013ded2a9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Javascript 02]]></title>
            <link>https://medium.com/@pasanbambarendage99/javascript-fundamental-ec64591ad8e8?source=rss-3a2cb928f9d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec64591ad8e8</guid>
            <dc:creator><![CDATA[Pasanbambarendage]]></dc:creator>
            <pubDate>Fri, 15 Jul 2022 11:37:19 GMT</pubDate>
            <atom:updated>2022-07-15T11:46:22.915Z</atom:updated>
            <content:encoded><![CDATA[<p>what is Reactive Programming?</p><ul><li>A new programming paradigm that allows us to manipulate the stream of data using function.</li><li>In order to make reactive programming in reality.</li><li>Most programming languages don’t support reactive programming.</li></ul><ol><li>Data as stream</li><li>Functional Programming</li><li>Asynchronous Observers.</li></ol><p><strong>What can do with reactive programming?</strong></p><p>can be used anywhere, where it takes time to process the request. For example HTTP Backend</p><p>First, you request to HTTP back-end and the HTTP back-end takes to time to process. You don’t have to wait. you can continue other work.</p><p><strong>Imperative Programming vs Functional Programming</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*ZIoDapf36DLebi4BJG7FnQ.png" /></figure><p><strong>Why do we need reactive programming if we have promises?</strong></p><ul><li>Promise only one result can return but the observer can keep returning multiple results even after returning something.</li><li>Reactive programming has some special features like filer and map.</li></ul><p><strong>The process stream involves three main steps:</strong></p><ol><li>Start [Subscribe]</li><li>Observer the stream.</li><li>Stop [Unsubscribe]</li></ol><p>In the second step, observe the stream do some set of processes.</p><ul><li>Get the next and process — next();</li><li>Handle if any error — error();</li><li>End of the operation — complete();</li></ul><p><strong>How to stop observer?</strong></p><p>There are multiple ways to stop observer.</p><ul><li>complete() method</li></ul><p>Call complete method and use certain operation such as taken. [ This is also a complete method]</p><ul><li>Error</li><li>Unsubscribe</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec64591ad8e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design Patterns for MicroServices]]></title>
            <link>https://medium.com/@pasanbambarendage99/design-patterns-for-microservices-392dff50b51?source=rss-3a2cb928f9d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/392dff50b51</guid>
            <dc:creator><![CDATA[Pasanbambarendage]]></dc:creator>
            <pubDate>Fri, 15 Jul 2022 09:54:25 GMT</pubDate>
            <atom:updated>2022-07-15T09:54:25.432Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Design Patterns…</strong></p><p>Mainly we discussed three patterns. There are</p><ul><li>Aggregator Pattern</li><li>Circuit Breaker Pattern</li><li>Proxy Pattern</li></ul><p><strong>Aggregator Pattern</strong></p><p>There are three ways to implement an aggregator pattern.</p><ol><li>Chain Pattern</li></ol><p>You can call one service, get a response and call other services. Then aggregate and send the response to the client.</p><p>2. Parallel Pattern</p><p>You can use a parallel course to get pieces of information from two different services and aggregate those as a single response and send them back to the consumer.</p><p>3. Branch Pattern</p><p>Based on some factors, you make a decision whether you should go there or you should go there. That means based on factors, we should decide where you go.</p><p><strong>Circuit Breaker Pattern</strong></p><p>If the web server is failing more than the given threshold, so the request will not try to hit the server at all. It will fail back to the consumer and notify the consumer. After service is failed it sends a ping to that particular service. There is no queue because when a request fails we don’t put that in a queue instead of that we send them back the error message. If the server comes online it will proceed with the remaining requests.</p><p><strong>Proxy Pattern</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*P16GpqS0cgUioO-OKfO_5A.png" /><figcaption>Simple Proxy pattern diagram</figcaption></figure><p>If you have frequent update services it is better to deploy the first service with a proxy service. In the above diagram, we have one service called EmployeeService. But there are two different versions. Version 1.0 has Emp_code as a variable but in Version 2.0, the emp_code has changed to the emp_ID.</p><p>Let’s think the consumer enter emp_code to get leave information. But In version 2.0, there is no emp_code. In this case, the consumer will break because version 2.0 can’t identify the emp_code. The proxy pattern will fit to solve this problem. once the consumer enters emp_code it will go to version 1.0 through the proxy server. If the consumer enters emp_ID, it will go to version 2.0 through the proxy server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=392dff50b51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best practices for microservices.]]></title>
            <link>https://medium.com/@pasanbambarendage99/best-practices-for-microservices-4d6252c885a4?source=rss-3a2cb928f9d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d6252c885a4</guid>
            <dc:creator><![CDATA[Pasanbambarendage]]></dc:creator>
            <pubDate>Fri, 15 Jul 2022 07:00:21 GMT</pubDate>
            <atom:updated>2022-07-15T10:00:48.686Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>Design</li></ul><p>Design should be Domain-Driven Development. We need fresh DDD. The scope of the service should be independent of it.</p><ul><li>Hard-coded values.</li></ul><p>You shouldn’t hard-code foreign service addresses rather you should use services discovery tools for the particular job.</p><p>Example of services discovery tool: Proxy</p><ul><li>Loggings.</li></ul><p>Logs are very important and need to maintain proper loggings. The best practice should be to fail fast and log later. Don’t use too many loggings.</p><ul><li>Versioning.</li></ul><p>Need to follow the semantic versioning. There are three semantic versions.</p><ol><li><strong>Major Version</strong></li></ol><p>You can increment whenever your service is incompatible with previous services. [Functionally change it is incompatible with the previous version]</p><p>2. <strong>Minor Version</strong></p><p>You can increment, whenever you have new functionality. however, the back of the previous work function will be work remain as it is. [If the user wants, the user can update a new version or otherwise user can work with the previous version.]</p><p>3. <strong>Patch Version</strong></p><p>You can increment the way you want.</p><ul><li>Avoid dependency on service. Service should be independent.</li><li>Fault Tolerance</li></ul><p>You have multiple services, you have multiple possibilities to have for failures. you have to the proper way to manage that kind of failure.</p><ul><li>Documentation</li></ul><p>Need to write documentation for another person can understand the program. you can write the document in a technical way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d6252c885a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web application to Microservices.]]></title>
            <link>https://medium.com/@pasanbambarendage99/web-application-to-microservices-2f511f166a91?source=rss-3a2cb928f9d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f511f166a91</guid>
            <dc:creator><![CDATA[Pasanbambarendage]]></dc:creator>
            <pubDate>Fri, 15 Jul 2022 06:33:40 GMT</pubDate>
            <atom:updated>2022-07-15T06:33:40.586Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Monolithic Application.</strong></p><p>Monolithic Application has a single executable file for the entire application. In other words, the entire application is packed into one single file. For example:</p><p>Just think about one of your academic project.( 1 year or 2 year project)</p><p>The <strong>advantage</strong> of Monolithic Application:</p><ul><li>Simple to develop.</li><li>Simple to deploy.</li><li>It’s easy to test and monitor. Because it’s a single application.</li></ul><p>The<strong> disadvantage </strong>of Monolithic Application:</p><ul><li>You must redeploy the entire application on each update.</li><li>Continuous deployment is difficult.</li><li>Debug process is hard because of the huge code bases.</li><li>Application is too large and complex to fully understand and made changes fast and correctly.</li></ul><h3>Microservices Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/0*XjRdhS7ZCVqLUJsG.png" /><figcaption>Example Diagram of MS Architecture</figcaption></figure><blockquote>The idea is to split your application into a set of smaller, interconnected services instead of building a single monolithic application.</blockquote><p><strong>Characteristics of Microservices:</strong></p><ul><li>Microservice is<strong> D</strong>omain-<strong>D</strong>riven<strong> D</strong>evelopment.</li></ul><p>What is <strong>DDD</strong>? Domain-Driven Development is about mapping business concepts into software artefacts.</p><ul><li>Microservice has exact defined scope.</li><li>Microservice can run its own processors. (Example: own web container)</li><li>Microservice can communicate some lightweight mechanism.</li></ul><p>For Example: HTTP</p><ul><li>Microservice should be able to scale and deploy independently.</li></ul><p><strong>Advantages of microservices.</strong></p><ul><li>The team members are aware of the entire service. The production issue come, it&#39;s easy to understand. Because everyone knows (Team members) the program.</li><li>Easy to migrate to different languages or frameworks.</li><li>Service can scalable.</li></ul><p><strong>Disadvantages of microservices.</strong></p><ul><li>Hard to learn how to manage microservices.</li><li>Hard to monitor the application.</li><li>All services need to be run in order for the application to run.</li><li>The team has to take care of the service. <strong>You build it you own it.</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f511f166a91" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Develop Container-less Application.]]></title>
            <link>https://medium.com/@pasanbambarendage99/develop-container-less-application-bff6eaecad23?source=rss-3a2cb928f9d8------2</link>
            <guid isPermaLink="false">https://medium.com/p/bff6eaecad23</guid>
            <dc:creator><![CDATA[Pasanbambarendage]]></dc:creator>
            <pubDate>Fri, 15 Jul 2022 06:03:23 GMT</pubDate>
            <atom:updated>2022-07-15T06:03:23.290Z</atom:updated>
            <content:encoded><![CDATA[<p>What is the difference between the web server, web container and application server?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/0*o9gtgMTUPEXEeMqx.jpg" /></figure><p><strong>Web Server</strong> is a server which handles HTTP requests. Also, the web server doesn’t have the capability to handle any Java EE specification.</p><p>Web Container does have the capability to handle a part of Java EE specification. In other words, web containers are capable to handle serverlets. (Serverlet is a part of Java EE specification.)</p><p>Application Servers are capable to handle the full spectrum of Java EE specifications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bff6eaecad23" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>