<?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 Ekanayake Supun on Medium]]></title>
        <description><![CDATA[Stories by Ekanayake Supun on Medium]]></description>
        <link>https://medium.com/@shsa.suudekanayake?source=rss-3edb90af2f73------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*H2SU-ny72WCb8g9y</url>
            <title>Stories by Ekanayake Supun on Medium</title>
            <link>https://medium.com/@shsa.suudekanayake?source=rss-3edb90af2f73------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 19 May 2026 12:22:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shsa.suudekanayake/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[PAST TENSE]]></title>
            <link>https://medium.com/@shsa.suudekanayake/past-tense-8d1ff555c6e6?source=rss-3edb90af2f73------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d1ff555c6e6</guid>
            <category><![CDATA[past-continuous-tense]]></category>
            <category><![CDATA[past-continuous]]></category>
            <category><![CDATA[tenses]]></category>
            <category><![CDATA[simple-past]]></category>
            <category><![CDATA[past-tense]]></category>
            <dc:creator><![CDATA[Ekanayake Supun]]></dc:creator>
            <pubDate>Fri, 21 Jul 2023 04:23:05 GMT</pubDate>
            <atom:updated>2023-07-21T18:06:02.032Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8qMY2MyY-t0wIZLA0eNcw.png" /></figure><h3><strong>Past Simple</strong></h3><blockquote>The past simple tense specifically talks about something that happened in the past and it’s finished.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*wszCoZ6XUNiueBGY4t57Vw.png" /><figcaption>Structure</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*UL3rjvo3BrkQk6ZQDnRj2A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*_dNxMmdwpbC_nIyYzIlTeg.png" /></figure><p>🔰 We need to consider the verbs carefully when we use the past tense. There are 2 kinds of verbs in English. such as,</p><ol><li><strong>Regular.</strong></li><li><strong>Irregular.</strong></li></ol><h3><strong>👉 Regular:-</strong></h3><blockquote>Those verbs whose simple past and past participle are formed by adding the suffix “ed”, “d”, or “ied” can be known as regular verbs.</blockquote><ul><li>work → worked</li><li>play → played</li><li>clean → cleaned</li><li>watch → watched</li></ul><blockquote><strong>🔰 Making regular Past verbs:</strong></blockquote><blockquote><strong>Most verbs: </strong>add [ed<strong>]</strong></blockquote><blockquote>🔸 walk → walked</blockquote><blockquote>🔸 cook → cooked</blockquote><blockquote><strong>Verbs ending in e<em>: </em></strong>add <strong>[d]</strong></blockquote><blockquote>🔸 bake → baked</blockquote><blockquote>🔸 use→ used</blockquote><blockquote><strong>Verbs ending in consonant and y: </strong>drop [y] add [ied]</blockquote><blockquote>🔸 cry→ cried</blockquote><blockquote>🔸 study→ studied</blockquote><blockquote><strong>Verbs ending in vowel and y: </strong>add [ed]</blockquote><blockquote>🔸 play→ played</blockquote><blockquote>🔸 enjoy→ enjoyed</blockquote><blockquote><strong>Verbs ending with <em>Consonant + vowel + Consonant</em> :</strong> [double last letter +ed]</blockquote><blockquote>🔸 stop→ stopped</blockquote><blockquote>🔸 plan→ planed</blockquote><h3><strong>👉 Irregular:-</strong></h3><blockquote>Verbs that either change their forms completely or remain the same can be known as irregular verbs.</blockquote><ul><li>go → went</li><li>see → saw</li><li>buy → bought</li><li>run → ran</li></ul><p><strong>Examples:</strong></p><ol><li>I <strong>wanted</strong>. <em>( past verb of want)</em></li><li>She <strong><em>wanted</em></strong>.</li><li>He <strong><em>drank</em></strong>. <em>(past verb of drink — irregular verb)</em></li><li>They <strong><em>drank</em></strong>.</li><li>They <strong><em>watched</em></strong>. <em>(past verb of watch — regular verb)</em></li><li>He <strong><em>watched</em></strong>.</li><li>I <strong><em>went</em></strong>. <em>(past verb of go — irregular verb)</em></li><li>It <strong><em>went</em></strong>.</li><li>They <strong><em>played</em></strong>. <em>(past verb of play — regular verb)</em></li><li>She <strong><em>played</em></strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yfca0KqpK-7majA64TXpNA.png" /></figure><h3>👉 <strong>Affirmative Form:-</strong></h3><ol><li>Lisa went to the supermarket yesterday.</li><li>Sam cooked a tasty dinner yesterday.</li><li>My brother saw a movie last week.</li><li>I traveled to France last year.</li><li>I washed the dishes.</li><li>My mother bought a dress for me.</li><li>I learned how to play the guitar five months ago.</li><li>My brother waited hours at the railway station.</li><li>I played tennis.</li><li>People lived in caves a long time ago.</li></ol><h3>👉Negative Form:-</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*stEpO1pMBKYCmNHsaP62Nw.png" /></figure><ol><li>I didn’t play football yesterday.</li><li>They didn’t go to the theater last month.</li><li>She didn’t arrive on time this morning.</li><li>You didn’t go to bed early.</li><li>The police didn’t find any clues.</li><li>We didn’t make a cake for you.</li><li>He didn’t feel sad yesterday.</li><li>I didn’t become a teacher.</li><li>He didn’t meet her.</li><li>We didn’t blame her.</li></ol><h3>👉Question Form positive:-</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*9cdwujyPS2jZzOpjb3czzA.png" /></figure><ol><li>Did they play a game yesterday?</li><li>Did you visit your grandmother’s place last week?</li><li>Did you finish your homework?</li><li>Did your friend call you yesterday?</li><li>Did he feel sad yesterday?</li><li>Did they have dinner last night?</li><li>Did he meet her?</li><li>Did you have a pen?</li><li>Did they go to school yesterday?</li><li>Did you do your homework?</li></ol><h3>👉Question Form Negative:-</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1pbHHmzTPyTB27YsqeVZcg.png" /></figure><ol><li>Didn’t they play a game yesterday?</li><li>Didn’t you visit your grandmother’s place last week?</li><li>Didn’t you finish your homework?</li><li>Didn’t your friend call you yesterday?</li><li>Didn’t he feel sad yesterday?</li><li>Didn’t they have dinner last night?</li><li>Didn’t he meet her?</li><li>Didn’t you have a pen?</li><li>Didn’t they go to school yesterday?</li><li>Didn’t you do your homework?</li></ol><h3>👉Question Form Positive with Question Words:-</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TVb_pAuyYgNu_cTpKLzI3w.png" /></figure><ol><li>Why did you go home?</li><li>What did he do?</li><li>who did work yesterday?</li><li>When did he meet her?</li><li>What time did they go to school?</li><li>Where did she live?</li><li>When did you visit your grandmother’s place?</li><li>Whom did you talk to?</li><li>Who did she know in the USA?</li><li>Why did we blame her last week?</li></ol><h3>👉Question Form Negative with Question Words:-</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mFQwr8RTb3Kk7Tq2Np1I_w.png" /></figure><ol><li>Why didn’t we blame her last week?</li><li>When didn’t he meet her?</li><li>Why didn’t you go home?</li><li>Where didn’t she live?</li><li>Whom didn’t you talk to?</li></ol><blockquote>🛑👇👇👇👇👇👇</blockquote><blockquote><strong>Note:- There are three ways to pronounce -ed, depending on the last letter of the verb.</strong></blockquote><blockquote><strong>1. Pronounce like \t\ sound: </strong>verbs ending in -f, -k, -ss, -ch, -sh, -x</blockquote><blockquote>🔸 washed → <strong>wɒʃt</strong></blockquote><blockquote>🔸 fixed → <strong>fɪkst</strong></blockquote><blockquote>🔸 kicked → <strong>kɪkt</strong></blockquote><blockquote><strong>2. Pronounce like \id\:</strong> verbs ending in -d or -t</blockquote><blockquote>🔸 needed → <strong>niːdɪd</strong></blockquote><blockquote>🔸 wanted → <strong>wɒntɪd</strong></blockquote><blockquote><strong>3. Pronounce like \d\ sound: </strong>verbs ending in all other letters.</blockquote><blockquote>🔸 listened →<strong> lɪsᵊnd</strong></blockquote><blockquote>🔸 played → <strong>pleɪd</strong></blockquote><h3><strong>Verbs: -</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gE19kanh8JGTwBQCwHinSg.png" /><figcaption><a href="https://www.eslbuzz.com/english-verb-forms-regular-and-irregular-verbs/">https://www.eslbuzz.com/english-verb-forms-regular-and-irregular-verbs/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gQm3184MmrXYnBfzmdM_Sw.png" /><figcaption><a href="https://www.eslbuzz.com/english-verb-forms-regular-and-irregular-verbs/">https://www.eslbuzz.com/english-verb-forms-regular-and-irregular-verbs/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4vd6lYyQ__ZfPmwIROn4Fw.png" /><figcaption><a href="https://www.eslbuzz.com/english-verb-forms-regular-and-irregular-verbs/">https://www.eslbuzz.com/english-verb-forms-regular-and-irregular-verbs/</a></figcaption></figure><p>Click the links below to follow other Tenses. Thank you!</p><p><strong>Tenses: 👇👇👇</strong></p><ol><li><a href="https://medium.com/@shsa.suudekanayake/present-tens-e9e83c04b295"><strong>Present Tense.</strong></a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d1ff555c6e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Present Tense]]></title>
            <link>https://medium.com/@shsa.suudekanayake/present-tens-e9e83c04b295?source=rss-3edb90af2f73------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9e83c04b295</guid>
            <category><![CDATA[simple-present-tense]]></category>
            <category><![CDATA[english]]></category>
            <category><![CDATA[present-tense]]></category>
            <dc:creator><![CDATA[Ekanayake Supun]]></dc:creator>
            <pubDate>Sat, 24 Jun 2023 06:39:12 GMT</pubDate>
            <atom:updated>2023-07-21T04:24:35.385Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KL5fHFwgM2BlAUOf5I_oSA.png" /></figure><p><strong>Permanent :</strong></p><ul><li>We live in Hambantota.</li><li>He works at a bank.</li></ul><p><strong>Routines :</strong></p><ul><li>I wake up at 6:00.</li><li>I go to sleep at 11:00<br> <br><strong>Facts :</strong></li><li>The sun rises in the east.</li><li>The sun sets in the west.</li></ul><p><strong>Schedule :</strong></p><ul><li>Our class starts at 9:00.</li><li>The flight leaves at noon.</li></ul><p><strong>Frequency :</strong></p><ul><li>She always takes the bus.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fwpbqCoCofNFuygFSeOmhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*Dqzs_D0ctBjtZ0f-BD1cKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wo7N6l6RQInFnnMPyurr6w.png" /></figure><h3>Singular &amp; Plural Verbs</h3><p><strong>Most verbs : </strong>add [<strong>s]</strong></p><ul><li>dance → dance<strong><em>s</em></strong></li><li>cook → cook<strong><em>s</em></strong></li><li>sleep → sleep<strong><em>s</em></strong></li></ul><p><strong>Verbs ending in <em>s,ss,sh,ch,x,o : </em></strong>add <strong>[es]</strong></p><ul><li>wash → washes</li><li>teach → teaches</li><li>fix → fixes</li><li>go → goes</li><li>do → does</li></ul><p><strong>Verbs ending in consonant and y : </strong>drop [y] add [ies]</p><ul><li>study → studies</li><li>try → tries</li></ul><p><strong>Verbs ending in vowel and y : </strong>add [s]</p><ul><li>play → plays</li><li>buy → buys</li></ul><blockquote><a href="https://assets.ltkcontent.com/files/Singular-and-Plural-English-Verbs-Chart.pdf">More verbs 1</a></blockquote><blockquote><a href="https://instapdf.in/singular-and-plural-irregular-verbs-list/">More verbs 2</a></blockquote><h3>Present Continuous / Present Progressive.</h3><p>✍️ The <strong>PRESENT CONTINUOUS </strong>is formed with : <strong><em>verb ‘to be’ + verb-ing.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/551/1*7lsi_tXLYMzSEBFQr9onLg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*v7QAjGTmaKmSob1oWg01NA.png" /></figure><h3><strong>When to use the Present continuous.</strong></h3><p><strong>1. Now:</strong></p><ul><li><em>He is sleeping.</em></li><li><em>It is raining.</em></li></ul><p><strong>2. Around Now / Unfinished action:</strong></p><ul><li><em>She is writing a book.</em></li><li><em>I am reading a degree</em>.</li></ul><p><strong>3. Temporary:</strong></p><ul><li>We are staying at a hotel.</li><li>Julia is working as a <strong><em>waitress.</em></strong></li><li>John is working as a <strong><em>waiter.</em></strong></li></ul><p><strong>4. Trend:</strong></p><blockquote><strong>A trend is something that changing /developing or something that popular.</strong></blockquote><ul><li>The prices of foods are increasing. (changing)</li><li>People are using smart phones. (popular)</li></ul><p><strong>5. Repeated action:</strong></p><ul><li>They are always making noise. (negative)</li></ul><p><strong>6. Future:</strong></p><ul><li>She is flying to Melbourne <strong><em>next week</em></strong>.</li><li>I am going to teach you.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*lLZwR7IhNAhPd2tiWG8jmA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BivWcZjFGnjayXJ4L3iPQQ.png" /></figure><h3><strong>Spelling for the verb+ing</strong></h3><p><strong>Most Verbs : </strong>add [ing]</p><ul><li>eat → eating</li><li>walk → walking</li></ul><p><strong>Verbs ending in<em> e </em>:</strong> drop [e] add [ing]</p><ul><li>use → using</li><li>take → taking</li></ul><p><strong>Verbs ending in <em>ie</em> :</strong> drop [ie] add[y+ing]</p><ul><li>lie → lying</li><li>tie → tying</li></ul><p><strong>Verbs ending with <em>Consonant + vowel + Consonant</em> :</strong> [double last letter +ing]</p><ul><li>cut → cu<strong><em>tt</em></strong>ing</li><li>clap → cla<strong><em>pp</em></strong>ing</li></ul><p><strong>Verbs ending in <em>W,X,Y </em>: add[ing] — not double last letter</strong></p><ul><li>enjoy → enjoying</li><li>fix → fixing</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NqR58Udt5d5bx6I2nQ3JWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*wC8yYohE1RaslwvemF7CbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*A9j51oGgHWq4fFc_5o_hwQ.png" /></figure><p>Click the links below to follow other Tenses. Thank you!</p><p><strong>Tenses: 👇👇👇</strong></p><ol><li><a href="https://medium.com/@shsa.suudekanayake/present-tens-e9e83c04b295"><strong>Present Tense.</strong></a></li><li><a href="https://medium.com/@shsa.suudekanayake/past-tense-8d1ff555c6e6"><strong>Past Tense.</strong></a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9e83c04b295" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Variables in Java]]></title>
            <link>https://medium.com/@shsa.suudekanayake/variables-in-java-59a9abc1cb73?source=rss-3edb90af2f73------2</link>
            <guid isPermaLink="false">https://medium.com/p/59a9abc1cb73</guid>
            <category><![CDATA[java-programming]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[variables]]></category>
            <category><![CDATA[java-variables]]></category>
            <dc:creator><![CDATA[Ekanayake Supun]]></dc:creator>
            <pubDate>Sun, 23 Apr 2023 13:36:26 GMT</pubDate>
            <atom:updated>2023-05-07T13:42:11.277Z</atom:updated>
            <content:encoded><![CDATA[<p>A variable is a named storage location in memory that holds a value of a specific data type. Variables are used to store and manipulate data within a program, and their values can be changed or updated during the program’s execution.</p><h3><strong>Creating (declaring) variables.</strong></h3><p>To create a variable must have the type, name and value.</p><p><strong>for example:-</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*S7GJlChrw0I1SMFoevfIMg.png" /></figure><p><strong>🔰In variable creation, there are two parts.</strong></p><ol><li><strong>Declaration:- </strong>the process of defining the variable, along with its type and name.</li><li><strong>Initialization:-</strong> assigning a value</li></ol><p><strong>🔰We can create a variable in two ways. such as</strong></p><ol><li><strong>creating a variable without assigning a value. (Declaration)</strong></li></ol><p>Here we specify the data type and provide a name. Later assign a value;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*wwDQi65NCozsJFOJbj20Wg.png" /></figure><p><strong>2. create a variable by assigning a value. (Inline initialization)</strong></p><p>Here we specify the data type, provide a name, and assign a value in the same line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*lAu_FEKtHGPQcGfqm6DL6g.png" /></figure><h3><strong>Variable types</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*OZY7QcW_K_C9LgmVWQjAlQ.png" /></figure><h3><strong>Local variables:-</strong></h3><p>👉 Local variables are declared in methods, constructors, or blocks.</p><p>👉 These variables will be destroyed once the methods, constructors, or blocks exit the method.</p><p>👉 Access modifiers cannot be used for local variables.</p><p>👉 Local variables are visible only within the declared method, constructor, or block.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*ozFVvwq2OOwYpCap5IYsQg.png" /></figure><h3><strong>Instance Variables:-</strong></h3><p>👉 Instance variables are declared outside the methods, constructors or blocks.</p><p>👉 Instance variables are created when an object is created.</p><p>👉 Access modifiers can be given for instance variables.</p><p>👉 Instance variables have default values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qWwnLHjmypOPNpqH1783oA.png" /></figure><h3>Static / class Variables:-</h3><p>👉 Class variables are also known as static variables.</p><p>👉 Static variables are declared with the static keyword.</p><p>👉 Visibility is similar to instance variables.</p><p>👉 Static variables can be accessed by calling with the class name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9a4-scT8ZK8n2t-fz7aZnA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59a9abc1cb73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Identifiers, Keywords, Literals]]></title>
            <link>https://medium.com/@shsa.suudekanayake/identifiers-keywords-literals-f1662e2d2464?source=rss-3edb90af2f73------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1662e2d2464</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[java-programming]]></category>
            <category><![CDATA[identifier]]></category>
            <category><![CDATA[keywords]]></category>
            <category><![CDATA[litterals]]></category>
            <dc:creator><![CDATA[Ekanayake Supun]]></dc:creator>
            <pubDate>Sun, 23 Apr 2023 13:02:41 GMT</pubDate>
            <atom:updated>2023-04-23T13:36:50.064Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Identifiers.</strong></h3><p>In Java, an identifier is a name given to a variable, method, class, interface, or any other user-defined item. Identifiers are used to uniquely identify these items within the program.</p><blockquote><strong>An identifier in Java must follow these rules:</strong></blockquote><blockquote><strong>1.</strong> It must begin with a letter, or an underscore (_), or a dollar sign ($).</blockquote><blockquote><strong>2.</strong> It may be followed by any number of letters, digits, underscores, or dollar signs.</blockquote><blockquote><strong>3.</strong> It cannot be a keyword reserved by Java (such as “if,” “else,” “while,” etc.).</blockquote><blockquote><strong>4.</strong> It must not contain spaces or special characters such as !, @, #, %, etc.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lhHS8d_GePjsFHjdks2Q7Q.png" /></figure><h3><strong>Keywords.</strong></h3><p>In Java, a keyword is a reserved word that has a specific meaning and purpose within the programming language. These words cannot be used as identifiers (variable names, method names, etc.) because they are already reserved by the language for specific purposes.</p><p>Examples for some keywords in java:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2IXS_QqHi78ncI4lTS_Nqw.png" /></figure><h3>Literals.</h3><p>A literal is a notation that represents a fixed value in source code. In other words, a literal is a specific value that is assigned directly to a variable or used as an argument in an expression, without any computation or evaluation.</p><p><strong>There are several types of literals in Java:</strong></p><ul><li><strong>Integer literals: </strong>represented by a sequence of digits without a decimal point, optionally preceded by a minus sign (-).</li><li><strong>Floating-point literals:</strong> represented by a sequence of digits with a decimal point, optionally preceded by a minus sign, and optionally followed by an exponent indicated by the letter e or E.</li><li><strong>Boolean literals:</strong> represented by the keywords true or false.</li><li><strong>Character literals: </strong>represented by a single character enclosed in single quotes, such as ‘a’ or ‘\n’.</li><li><strong>String literals:</strong> represented by a sequence of characters enclosed in double quotes, such as “Hello, world!”.</li><li><strong>Null literal:</strong> represented by the keyword null, used to indicate that a reference variable does not refer to any object.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*LQjBB0fiC-E-4pKFuNo5Lg.png" /></figure><p><strong>Read more:- click here 👉</strong><a href="https://medium.com/@shsa.suudekanayake/variables-in-java-59a9abc1cb73">Variables</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1662e2d2464" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Data types]]></title>
            <link>https://medium.com/@shsa.suudekanayake/java-data-types-cba57d318422?source=rss-3edb90af2f73------2</link>
            <guid isPermaLink="false">https://medium.com/p/cba57d318422</guid>
            <category><![CDATA[java-programming]]></category>
            <category><![CDATA[data-type-in-java]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[data-type]]></category>
            <category><![CDATA[java-datatypes]]></category>
            <dc:creator><![CDATA[Ekanayake Supun]]></dc:creator>
            <pubDate>Sun, 23 Apr 2023 12:59:28 GMT</pubDate>
            <atom:updated>2023-04-23T13:02:59.440Z</atom:updated>
            <content:encoded><![CDATA[<p>Mainly Java data types can be divided into two groups.</p><ol><li><a href="https://medium.com/@shsa.suudekanayake/introduction-to-java-programming-environment-a1b944bb2991">Primitive data types.</a></li><li>Non-primitive data types.</li></ol><p>Non-primitive data types are also known as <strong>reference types </strong>because they refer to objects.</p><blockquote><strong>Examples for non-primitive types: String, Arrays, classes and Interfaces</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*0aODr8SkxfQ0iUxKQ_GXNw.png" /></figure><h3><strong>Java Strings.</strong></h3><p>Strings are used for storing text.</p><blockquote><strong>A String variable contains a collection of characters within double quotes.</strong></blockquote><p><strong>Example:-</strong></p><pre>   String name=&quot;Active Heart Association.&quot;;<br><br>   String email=&quot;abc@mail.com&quot;;<br><br>        System.out.println(name);<br><br>        System.out.println(email);</pre><p><strong>Read more:- Click here</strong> 👉 <a href="https://medium.com/@shsa.suudekanayake/identifiers-keywords-literals-f1662e2d2464">Identifiers, Keywords, Literals</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cba57d318422" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Java Programming Environment]]></title>
            <link>https://medium.com/@shsa.suudekanayake/introduction-to-java-programming-environment-a1b944bb2991?source=rss-3edb90af2f73------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1b944bb2991</guid>
            <dc:creator><![CDATA[Ekanayake Supun]]></dc:creator>
            <pubDate>Sun, 09 Apr 2023 13:29:41 GMT</pubDate>
            <atom:updated>2023-05-14T08:58:32.988Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>How to Install &amp; Set Path : </strong><a href="https://medium.com/@shsa.suudekanayake/how-to-setup-the-java-programming-environment-d19dd226b1ab">https://medium.com/@shsa.suudekanayake/how-to-setup-the-java-programming-environment-d19dd226b1ab</a></li></ol><p><strong>2. A Simple Java Program &amp; analysis of the Java Program</strong></p><p>I’m going to use the Notepad application for the first program.</p><pre>public class FirstProgram{<br><br>  //Single-line comment<br><br>  /* Multi-line <br>     Comments */<br><br><br>   public static void main(String []args){<br>  <br>     System.out.println(&quot;Hello world!);<br> <br>   }<br><br>}</pre><p>The above program should be saved as <strong><em>FirstProgram.java</em></strong></p><p><strong>🔰Analysis of the Program</strong></p><ol><li><strong>public:</strong> This is providing visibility to all.</li><li><strong>class: </strong>This is used to declare the class in Java.</li><li><strong>static:</strong> Using static keyword that can be accessed without creating the object.</li><li><strong>void:</strong> the return type of the method. void refers to nothing.</li><li><strong>System.out.println():</strong> print something on the console.</li><li><strong>public static void main(): </strong>This is called main method. It is the startup of a program.</li></ol><h3><strong>Name of a Java Source File</strong></h3><p>The name of a source file (.java file/ the file that contains java codes) should be as same as the public class name. Because that is the way to tell the JVM this is the entry point of the program.</p><h3><strong>Platform Independency</strong></h3><blockquote><strong>WORA</strong> — Write Once Run Anywhere</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-TQGRkBd6BaqIXPVqHiFXw.png" /></figure><h3><strong>Data Types:-</strong></h3><p>Mainly Java data types can be divided into two groups.</p><ol><li>Primitive data types.</li><li>Non-primitive data types.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZcceqXf168tkpAoNXtXoSg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7CiInxaYvzw50wIZl9mlTA.png" /></figure><h3>Phases of Java Program</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*sZ8UDYqGs1RPJV_M.gif" /><figcaption><a href="https://www.oreilly.com/">https://www.oreilly.com/</a></figcaption></figure><p><strong>Read more:- click here 👉</strong><a href="https://medium.com/@shsa.suudekanayake/java-data-types-cba57d318422">Java data types.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1b944bb2991" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to setup the Java Programming Environment]]></title>
            <link>https://medium.com/@shsa.suudekanayake/how-to-setup-the-java-programming-environment-d19dd226b1ab?source=rss-3edb90af2f73------2</link>
            <guid isPermaLink="false">https://medium.com/p/d19dd226b1ab</guid>
            <category><![CDATA[install-jdk]]></category>
            <category><![CDATA[install-java]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[oop]]></category>
            <category><![CDATA[install]]></category>
            <dc:creator><![CDATA[Ekanayake Supun]]></dc:creator>
            <pubDate>Sun, 02 Apr 2023 12:59:56 GMT</pubDate>
            <atom:updated>2023-04-07T19:40:24.070Z</atom:updated>
            <content:encoded><![CDATA[<p>Follow the below steps to install java and IntelliJ IDEA on your windows computer.</p><h3><strong>01. How to install JDK</strong></h3><p><strong>Step 01:</strong> Download the Java Development Kit (JDK). <a href="https://drive.google.com/file/d/1qOZgRHjxV3aC_5AuffC2kWbYM4NaItz6/view?usp=share_link"><strong><em>here</em></strong></a></p><p><strong>Step 02:</strong> Open the downloaded <strong><em>.exe</em></strong> file and open.</p><p><strong>Step 03:</strong> Then click on the Next button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/0*lwfFrFD_ORj2uU_4.png" /><figcaption>01</figcaption></figure><p><strong>Step 04:</strong> Click on the Next button again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*vH8QTr4pQOf3Wo-6.png" /><figcaption>02</figcaption></figure><p><strong>Step 05:</strong> Once you install the java click on the Close button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*WunJdzM57QdonR2-.png" /></figure><p><strong>Step 06:</strong> Set up environment variables in java.</p><p>Once you installed JDK on your machine you should get the path of the java bin folder. This folder will exist in one of the folders mentioned in the below image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9lYGKRLOz56rypOC9z_jkA.png" /></figure><p>There is a folder named <strong>java</strong> and in this folder, you will see a folder named with the version of JDK. There is a <strong>bin</strong> folder in this folder. Go to the folder and copy the path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ZJHKqPNvZf1bn0zON6CVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HtlSpFWd10UTmlUBNLGRZw.png" /></figure><p><strong>Step 07: </strong>Then right click on <strong><em>“This PC”</em></strong> and select the properties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/0*au8oUOHF6MJtoB5J.png" /></figure><p><strong>Step 08:</strong> Click on advance system settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*RXJni1rmUDDKVX2u.png" /></figure><p><strong>Step 09:</strong> Click on Environment variables to set the Java runtime environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/0*Th2PbCAocWk-LD1o.png" /></figure><p><strong>Step 10:</strong> Click on the “new” Button of User Variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/0*Ks0qdUcER0Rhz_8p.jpg" /></figure><p><strong>Step 11:</strong> Type “PATH” in the variable name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/0*fmObGKTFDEZF0t2S.png" /></figure><p><strong>Note:</strong> In case you already have a PATH variable created on your PC, click on the “Edit” button. Not the “New” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FTcLLx1yxqzvlrxOyBDYOw.png" /></figure><p><strong>Step 12:</strong> Copy the path of the bin folder which is installed in JDK folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HtlSpFWd10UTmlUBNLGRZw.png" /></figure><p><strong>Step 13:</strong> Paste the path of the “bin” folder in the variable value. then click the “OK” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*2lsa9YmIcY28LcGh.png" /></figure><p>Step 14: Then click on the “OK” button of the Environment Variables’ window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/0*Hkecz1i9KmQbOWL4.png" /></figure><p><strong>Step 10:</strong> Open the Command Prompt “CMD” and type “javac” and press the “Enter” button.</p><p>if you see a screen like the below image, Java is installed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/0*ypxZAKgCLg2otLKX.jpg" /></figure><h3>02. How to install IntelliJ IDEA</h3><p><a href="https://medium.com/@shsa.suudekanayake/how-to-install-intellij-idea-on-windows-7159d93bc176">click</a> here to see how to install IntelliJ IDEA.</p><p>Thank you……</p><h3><strong>Video Resources:</strong></h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FkpkKfuhE7jw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DkpkKfuhE7jw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FkpkKfuhE7jw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0cf9933f4dc00d434e550c9807336d9e/href">https://medium.com/media/0cf9933f4dc00d434e550c9807336d9e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d19dd226b1ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to install IntelliJ IDEA on Windows.]]></title>
            <link>https://medium.com/@shsa.suudekanayake/how-to-install-intellij-idea-on-windows-7159d93bc176?source=rss-3edb90af2f73------2</link>
            <guid isPermaLink="false">https://medium.com/p/7159d93bc176</guid>
            <category><![CDATA[install-intellij-idea]]></category>
            <category><![CDATA[intellij]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[install]]></category>
            <category><![CDATA[intellij-idea]]></category>
            <dc:creator><![CDATA[Ekanayake Supun]]></dc:creator>
            <pubDate>Sun, 02 Apr 2023 12:59:00 GMT</pubDate>
            <atom:updated>2023-04-07T19:41:36.988Z</atom:updated>
            <content:encoded><![CDATA[<p>Follow the below steps to install IntelliJ IDEA on your windows computer.</p><blockquote>Note: If you don’t have install the JDK on your machine. Please <a href="https://medium.com/@shsa.suudekanayake/how-to-setup-the-java-programming-environment-d19dd226b1ab">click here</a> to see how to install and setup.</blockquote><p><a href="https://www.jetbrains.com/idea/download/download-thanks.html?platform=windows&amp;code=IIC">click</a> here to download IntelliJ IDEA.</p><p><strong>Step 01:</strong> Open the downloaded “.exe” file. Then you will see a window like below. Click on the “Next” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*m1W5pXwKlvpmbTBrmlI1fQ.png" /></figure><p><strong>Step 2:</strong> Choose an appropriate installation location. then Click the “Next” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*9pt7LtciPjS--lGP6JoLjw.png" /></figure><p><strong>Step 03:</strong> Now it will open an installation options window. Select all the required options that are shown on the image below, and click “<strong>Next</strong>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*Z-AsropHpGHLgmRzHaeyaw.png" /></figure><p><strong>Step 04:</strong> Choose the start menu folder as ‘JetBrains’ (by default). Then, click Install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*yFP2xABD2dewioh9gkYMiQ.png" /></figure><p><strong>Step 05:</strong> The IntelliJ IDEA will start installing to the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/0*EhrVZUYRLt4eBAMA.png" /></figure><p><strong>Step 06:</strong> After the installation, you have to restart your computer to configure the setup. Now when you open IntelliJ IDEA for the first time, you have to accept the Jetbrains community edition terms and click on “<strong>Continue”</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*Rj2aME-XmR31dMpl731OXg.png" /></figure><p>The installation is complete.</p><p>Thank you…</p><p><strong>Video resources:</strong></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FkpkKfuhE7jw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DkpkKfuhE7jw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FkpkKfuhE7jw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0cf9933f4dc00d434e550c9807336d9e/href">https://medium.com/media/0cf9933f4dc00d434e550c9807336d9e/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7159d93bc176" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kafka Instalation on Windows]]></title>
            <link>https://medium.com/@shsa.suudekanayake/kafka-instalation-on-windows-dd5f98abf28e?source=rss-3edb90af2f73------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd5f98abf28e</guid>
            <category><![CDATA[setup-kafka]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[kafka-consumer]]></category>
            <category><![CDATA[kafka-connect]]></category>
            <dc:creator><![CDATA[Ekanayake Supun]]></dc:creator>
            <pubDate>Wed, 22 Mar 2023 06:07:24 GMT</pubDate>
            <atom:updated>2023-03-22T06:07:24.929Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>1st Step: </strong>browse the link <a href="https://kafka.apache.org/downloads">https://kafka.apache.org/downloads</a> and download a relevant version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NFUvoRaGsmskJnDOiQVn8g.png" /></figure><p><strong>2nd Step: </strong>Open the downloaded (.tgz) file and unzip it. Then copy the unzipped folder into the C drive. Then rename the folder name as <strong>“kafka”. (</strong>Rename is not nectary)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*tfgFOxQdzDnRTgECUhvWcg.png" /></figure><p><strong>3rd Step:</strong> We need to set some log directories for Zookeeper and Kafka. So we need to make some changes to the server.properties file and zookeeper.properties file. Firstly, open the sever.properties file using the notepad application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/1*eCQCAyK6F3pkcYNqXGI2Rg.png" /></figure><p><strong>4th Step:</strong> change the log.dirs in the <strong>server.properties</strong> file as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*YTZuWSbHCM-n2ih3qY53WA.png" /></figure><p><strong>5th Step:</strong> change the dataDir in the <strong>zookeeper.properties</strong> file as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*gDvPDvtleigUX2AleFqsPQ.png" /></figure><p><strong>6th Step:</strong> Now let&#39;s start the zookeeper. So open the CMD from the “C:\kafka” directory. past the below code into the CMD and press enter button.</p><pre>.\bin\windows\zookeeper-server-start.bat .\config\zookeeper.properties</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ur78pfPMT2znfyBj4qKmwQ.png" /></figure><p><strong>7th Step:</strong> Now let’s start the Kafka server. So again Open the CMD from the “C:\kafka” directory. past the below code into the CMD and press enter button.</p><pre>.\bin\windows\kafka-server-start.bat .\config\server.properties</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Fqc3YPjNRiWcD1d0je-lg.png" /></figure><p>Now zookeeper and Kafka servers are configured correctly and running.</p><p><strong>Create a new topic:</strong></p><pre>.\bin\windows\kafka-topics.bat --bootstrap-server localhost:9092 --topic [TOPIC_NAME] --create</pre><p><strong>View topics:</strong></p><pre>.\bin\windows\kafka-topics.bat --bootstrap-server=localhost:9092 --list</pre><p><strong>View Event/Message:</strong></p><pre>.\bin\windows\kafka-console-consumer.bat --topic order_topics --from-beginning --bootstrap-server localhost:9092</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd5f98abf28e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web application to Microservices]]></title>
            <link>https://medium.com/@shsa.suudekanayake/web-application-to-microservices-9c62e852cfa8?source=rss-3edb90af2f73------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c62e852cfa8</guid>
            <category><![CDATA[web-applications]]></category>
            <category><![CDATA[scalling]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Ekanayake Supun]]></dc:creator>
            <pubDate>Thu, 24 Nov 2022 17:40:18 GMT</pubDate>
            <atom:updated>2022-11-24T17:40:18.415Z</atom:updated>
            <content:encoded><![CDATA[<p>Before comes Microservices, There was an architecture called Monolithic architecture. This monolithic architecture is the traditional unified model for software program design. In this module, all processes are composed in one piece.</p><p>Let’s say you have an application that is a Student Management System with 4 different processes Student registration, Payments, Exam registration, Lecture registration, etc. In a monolithic way, Deploy an application by binding all these processes into a single application. So later, if you wanted to update the Lecture registration or any other process then you have to deploy entire processes because all in one. In this case, you have to make sure all other processes are also error-free by testing. This is not easy when you have a large scale of applications. Therefore, microservices came into the industry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*47KdV5y9XaP38zbImdpBVA.png" /><figcaption>Monolithic Architecture</figcaption></figure><h3><strong>Microservice Architecture.</strong></h3><p>There is no single definition of microservices. But let&#39;s go through some comprehendible descriptions to comprehend.</p><p>Microservices, also known as Microservice architecture. It implements layered architecture. It allows building applications by isolating business processes for a business goal then it becomes loosely coupled. The microservices follow the UNIX philosophy of “Do one thing and do it well”.</p><p>Let’s take our previous example which is the student management system. Under microservice architecture, Instead of a coalesced single module in the monolithic architecture, all the services are spread into individual modules. These microservices (individual modules) are capable to communicate with each other. See the below diagram...</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AJWS1zfYE_bZYZliPkVfBw.png" /><figcaption>Michroservice Architecture</figcaption></figure><p><strong>Characteristics of Microservices</strong></p><p>Microservices have a dedicated purpose for living. In other words, it is a domain-driven development. It has to have an exactly defined scope. More than that, there are a few characteristics such as,</p><ul><li>Run own processes (Own web container)</li><li>Communicate with other services via a lightweight mechanism. Most of the time it uses HTTP as well as it isn’t limited to HTTP.</li><li>Scale and deploy as individual services.</li><li>It should maintain decentralized control as much as possible.</li></ul><h3><strong>Independently scalable</strong></h3><p>This is one of the key features of microservices. According to “The Art of Scalability” (book) they have introduced the AKF scale cube for a better understanding of scaling. They are using Rubic’s cube to introduce the AKF scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gPdzodl7Y35VFYW_.png" /></figure><p>Using this, they have introduced three axes which are the x-axis, y-axis, and z-axis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uvdmeoYTgv7KaOAp6DgOKQ.png" /></figure><p><strong>X-axis scaling:- </strong>An application should be able to scale out through the x-axis. That means if one instance is not enough you should be able to create other instances and keep running. Sometimes we can do clustering, adding more data centers, etc. However, you should be able to scale out.</p><p><strong>Z-axis scaling:-</strong> Through this z-axis should be able to sharding and also should be able to geographically split out the traffic. For example, European customers are direct to European servers, and Asian customers are direct to Asian servers, etc.</p><p><strong>Y-axis scaling:- </strong>Through this y-axis, It should be able to do functional decomposition.</p><p>There is no restriction to selecting any programming language to develop an application under microservice architecture. but Java, Python, and javascript are the most popular programming languages for developing microservices.</p><p>It is very important to use domain-driven design when you consider the design. You should make sure, your one service should not depending on any factors. That means, your service should be able to unplug at any given time from the system and plug in at any given time from the system. That doesn’t mean your system should be able to run without your service. It means your services should be loosely coupled.</p><p>More than that, There are the most important parts of microservices are service resilience and fault tolerance. This is not a feature but you must implement that. For example, let’s assume you have two different services “A” and “B”. let’s say, you&#39;re going to invoke “service B” from “Service A”. Now “service B” is time out or not working. therefore, now you should be able to maintain this failure situation. That calls fault tolerance. There are multiple ways that you can do this. you can use a failure mechanism, you can have a proxy or you can have the circuit breaker pattern.</p><p><strong>Advantages</strong></p><ul><li>Microservices are self-contained, independent deployment modules.</li><li>The cost of scaling is comparatively less than monolithic architecture.</li><li>Dynamic scaling.</li><li>Fewer dependencies and easy to test.</li><li>Microservices follow the single responsibility principle.</li></ul><p><strong>Disadvantages</strong></p><ul><li>Difficult to manage a large number of services.</li><li>Complex testing over a distributed environment.</li><li>This has all the associated complexities of the distributed system.</li></ul><p>Let’s see another article called design patterns for Microservice.</p><p>Thank you…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c62e852cfa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>