<?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 Supuni Gallege on Medium]]></title>
        <description><![CDATA[Stories by Supuni Gallege on Medium]]></description>
        <link>https://medium.com/@gallegesupuni?source=rss-28a00bbb66bb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Supuni Gallege on Medium</title>
            <link>https://medium.com/@gallegesupuni?source=rss-28a00bbb66bb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 23:52:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gallegesupuni/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[Rate Limiters]]></title>
            <link>https://medium.com/@gallegesupuni/rate-limiters-a32fd8411daf?source=rss-28a00bbb66bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/a32fd8411daf</guid>
            <dc:creator><![CDATA[Supuni Gallege]]></dc:creator>
            <pubDate>Sun, 30 Oct 2022 06:46:33 GMT</pubDate>
            <atom:updated>2022-10-30T06:46:33.514Z</atom:updated>
            <content:encoded><![CDATA[<p>Rate limiters can be used to protect our system.Lets see how we can do it.If someone is trying to send heavy traffic to your system and take your system down how the rate limiter can prevent that.</p><p>We can use rate limiting in multiple ways.When you have a client and a service, client can send a lot of traffic to the server.If you have load balancer and if you have a scaling setup then, of course, this service will scale and then the load balancer will balance traffic. But these are some unwanted traffic, therefore, it will increase your billing because it&#39;s auto-scaling and its adding more and more nodes and then the node balancer works and when so many traffic flows it increases your bill. Also it might take down the system. In here rate limiter is used to protect these services to solve these problems.</p><p>How rate limiter works is it only allows particular number of number of requests per a second.When the number of request exceeds rate<br> limiter identifies that.Then it informs back to the client that there are too many requests.Then client have to wait another second to get the opportunity to pass the next request.<br>But if you have multiple server instances if one instance is served with few requests it is not known by other instances. So every instance of the server will be served with the same amount of requests per second for each and it will exceed the rate limit.So coupling the rating logic to the servers is not a good idea.</p><p>If you want to do this you need to use a very fast memory caching technique.Then number of requests sent to the server is counted in here so before request is sent to the server it can be checked with the number of requests already sent to the server.But there is a easy way of doing this using an API gateway or a proxy as well.</p><p>Now lets see why we need this.There are Mainly two uses.</p><ol><li>It will prevent Dos attacks and DDos attacks.</li><li>It will prevent unwanted billing</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a32fd8411daf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DOS and DDOS attack]]></title>
            <link>https://medium.com/@gallegesupuni/dos-and-ddos-attack-422d2f8e1dbc?source=rss-28a00bbb66bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/422d2f8e1dbc</guid>
            <dc:creator><![CDATA[Supuni Gallege]]></dc:creator>
            <pubDate>Sat, 22 Oct 2022 08:18:07 GMT</pubDate>
            <atom:updated>2022-10-22T08:18:07.682Z</atom:updated>
            <content:encoded><![CDATA[<p>DOS</p><p>DOS means denial of service. You deny some other one to consume the resources by consuming them by yourself. One attacker attacks the target but the victim can easily eliminate the attacker because it has one attack. Here you have a server and a client machine. The client keeps sending traffic to the server may be in multiple protocols or the same protocols or a target protocol. Eventually, this makes the server couldn’t stand anymore because it flooded the traffic and it cannot serve the service. The service view goes down. That is called denial of service.</p><p>DDOS</p><p>Distributed denial of service.DDOS means you do the same attack by multiple sources. From that kind of attack, the victim can’t survive easily. Usually, attacker recruits bots. How they do that easily is that giving a crack software. They give you the software you need for free but it is a cracked version. It means they have modified the source so now they can control you. When you install the application now there is an attacker’s server. Once you install it you get registered in the commanding server. Usually, these attackers find the people’s most wanted most popular software. So now a very vast amount of copies are installed around the globe and they are registered to the commanding server. We call them bot net since it’s a network of bots. Once this recruitment is complete at a given time they can send the command to the bot. This time the message is sent to the target and everyone gets the message. Everyone online can see this and they flood the message for the target. Now, this cannot be stopped. This can be cracked software, malware, or an email link that will be installed as software the moment you click it. Here your machine is controlled to attack someone. If an attacker uses your machine to attack someone else you will lose your data or the machine can be slow or any other complications can happen.</p><p>How to prevent</p><ol><li>Stop using cracked software</li><li>Prevent clicking unwanted links</li><li>Stop installing untrusted software</li><li>Use a virus guard</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=422d2f8e1dbc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dependencies with BOM]]></title>
            <link>https://medium.com/@gallegesupuni/dependencies-with-bom-6f2b42682ce?source=rss-28a00bbb66bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f2b42682ce</guid>
            <dc:creator><![CDATA[Supuni Gallege]]></dc:creator>
            <pubDate>Fri, 07 Oct 2022 08:24:02 GMT</pubDate>
            <atom:updated>2022-10-07T08:24:02.673Z</atom:updated>
            <content:encoded><![CDATA[<p>This explains how you can do dependency management, from initial parties to production.<br>There can be cosidered 3 catagories<br>1.Java base projects with an old technologies-without dependency management framework<br>2.Java project +maven/gradel<br>3.Node/Nest/TS</p><p>1.In these projects you have a directory called lib.If you need a spring, spring boot or anything you get those jar files and copy them into lib folder. But the biggest problem with this model is people might copy different versions to their lib folder. Then different parts will be in different versions. Therefore without using a framework we can design a solution for this.For the very first when we establish a program we define the versions that are applied to every part. We call this a BOM-Bill Of Material.<br>This is how it works. Once everything is established we can see versions of every part. In here we can use a vulnerability scan. For that, we can find a tool to make sure all those libraries are safe. Implementing mock functionalities you can make sure these libraries are not crashing each other. Once you solve all these you can make a zip file of this.After that you can host this zip file on a repository.<br>So when a developer set up his working environment he has to make sure to download the file in the repository and link that into the project.So every developer will use the same version.When you need to send the project to someone you don&#39;t send those libraries. What you can do is you can put the library versions into the project and make a bundle and compile the project and build your var file. In that you are making sure the version.<br>Let&#39;s think you needed to add a new library. What you have to do is add the new file to the bundle and compile the code making sure that nothing is breaking. Then you can go ahead and update the repository and ask the other developers to use the new bundle .this will solve the problem.<br>The advantage of this is if something is breaking you can identify the very early stage. Also, the same versions are used by every developer.</p><p>2. In here we have two variations. Either we can use maven without docker, or we can use maven with docker. If you use maven with the docker you can use npm maven without docker.<br>Instead of having your bundle manually you can have a pom file and this file has all the dependencies.You can host this file separately. Then in your project, you can refer to this dependency file under the parent tag. So now what happens is developers don&#39;t contol their own versions. If they need a new version they need to talk to architects or whoever governing this dependency to inform them that they need this version. what they do is they add that to the parent BOM and publish to the new version.</p><p>3.If you have a java project with the maven/Gradle or if you have a node project with npm /yarn we are deploying this on docker.<br>What we do here is we create a docker file from node latest and then we copy this package jason file.Then you run the npm install command.This will download all the packages and this will be your docker. It has all the dependencies. So whatever versions you are using you decide to use on the project will be in this docker. Therefore all your services will use the docker file. Therefore developers can’t add their own dependencies.Thats the main advantage.</p><p>Thank you</p><p>References-<a href="https://youtu.be/6P49tev_mcA">https://youtu.be/6P49tev_mcA</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f2b42682ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Serverless]]></title>
            <link>https://medium.com/@gallegesupuni/serverless-b453b82d4b86?source=rss-28a00bbb66bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/b453b82d4b86</guid>
            <dc:creator><![CDATA[Supuni Gallege]]></dc:creator>
            <pubDate>Fri, 23 Sep 2022 19:07:07 GMT</pubDate>
            <atom:updated>2022-09-30T09:00:10.889Z</atom:updated>
            <content:encoded><![CDATA[<p>When you maintain a server/s you have to maintain multiple os, update patches, and security updates, and also when having a server/s you have to create virtual machines. This takes a few hours.As a solution for this we have dockers .What that does is it has its own os directory, its own system directory,its own IP address, its own set of ports and <br> it takes few seconds to create a docker.Then it created a problem where we have lots of dockers and need to manage them. so you need to function clusturing technology to manage the docker.</p><p>However, all this was a little bit of a burden. Therefore serverless was a good concept to overcome this burden.When you go for the serverless concept you don&#39;t have to worry about the docker part which means <br> you don&#39;t need to worry about where this code is being run.This simply means you don&#39;t need to worry about the server.</p><p>However that doesn&#39;t mean that there are no servers.There are servers but those are not managed by you.You don&#39;t know where they are, what are the specifications or any other thing about the servers.You just have to pay your attention for your functionality.</p><p>What you do hear is you create a function and you take that function in to the cloud and deploy the function into the cloud.Then cloud takes care of executing its function on its own.</p><p><strong>So why is this important?</strong><br>Mainly due to the growth of technology you have a vast number of users.If you maintain servers then it&#39;s very hard to handle them all.Also in this modern society, people need fast browsing and when it take more than a few seconds they get disappointed.Servers may take some time to load and with a vast number of users they have to handle it and decrease the speed<br> as well.But with the cloud you can manage everything and can maintain the speed .</p><p>When you talk about cloud if we have a docker then things can be kind of complicated with clustering techniques and all.But moving things to serverless you only have to worry about writing functions in the correct way and the server will take care of running it. Also especially when you work in serverless API you don’t have to pay for idle time. You pay for what you use.That&#39;s the serverless concept. In simple words, it is event-driven, function which runs on a cloud in a stateless manner.</p><p><strong>How does serverless computing work</strong><br>when it is serverless you don&#39;t need to worry about the deployment part. you have to worry only about the functions and the code.you just create the code and deploy it to the cloud <br>and the cloud will take care of the rest of the things. what really happens here is they run these codes in containers.</p><p><strong>What is AWS API gateway/serverless?</strong><br>A feature of Amazon Web Services (AWS) called Amazon API Gateway allows programmers to connect non-AWS applications to AWS backend resources, including servers and code.<br>The gateway extends the use of Amazon’s other cloud services and AWS users’ access to compatible applications.</p><p>Amazon API Gateway provides two ways of handling API call traffic:<br> 1. Throttling: The number of API calls per hour or per day is controlled by API throttling. When unexpected spikes in API calls occur, throttling helps in maintaining the performance of calling applications. When numerous users use an application simultaneously, spikes may occur.</p><p>2. Caching: The results of numerous API calls are the same since they all use the same data. The cache offers the standard API response instead of carrying out all the necessary <br> processing to obtain the result. Caching decreases the number of API calls while increasing the caller application’s performance.</p><p><strong>What is AWS Lambda</strong><br>The serverless computing platform AWS Lambda runs any code that you upload as functions. This ensures you don’t need to manage CPU, memory, or networking, or maintain any servers. <br>AWS manages everything for you. You only need to run your code after uploading it.</p><p>API Gateway makes managing APIs easier, and Lambda eliminates the need to manage infrastructure. But when you use these services simultaneously, you start to realize their full <br>potential.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b453b82d4b86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solution not to use HTTP as micro-service connectivity]]></title>
            <link>https://medium.com/@gallegesupuni/solution-not-to-use-http-as-micro-service-connectivity-e349e9aee5f1?source=rss-28a00bbb66bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e349e9aee5f1</guid>
            <dc:creator><![CDATA[Supuni Gallege]]></dc:creator>
            <pubDate>Sat, 10 Sep 2022 19:53:04 GMT</pubDate>
            <atom:updated>2022-09-10T19:53:04.278Z</atom:updated>
            <content:encoded><![CDATA[<p>Mainly There are 3 ways of communication in microservices</p><p>1. HTTP communication</p><p>2. Message communication</p><p>3. Event-driven communication</p><p>As we discussed before HTTP is a bad idea for microservices. If we summarize what we discussed there,</p><p>when we send requests to each service in parallel there will be problem since some may be offline or slow.</p><p>If it is slow other requests need to be waited to complete. Because they wait until the last response comes. If someone is offline then the entire transaction fails. Because you cannot activate this connection since you don’t know the response of one service.</p><p><strong>Message Queues</strong></p><p>message queues are often based on asynchronous protocols. Publishing a message to a queue does not produce a response, unlike an HTTP call, and the basic publish method returns right away.</p><p>Senders of data place messages in a message queue until they are processed and discarded by receiving services in this decoupled method of inter-service communication.</p><p>Message queues not only separate senders and receivers, but they also greatly increase fault tolerance in systems. That is, even if a service is down, messages can still be kept in the queue. When these services come back online, they can continue reading messages from the queue.</p><p>When we talk about HTTP it calls however is that services must receive communications directly from senders, where it represents a SPOF. The system will lose any communicated data and essentially fail in that it won’t be able to continue the operation if the receiving service is made inaccessible for any reason.</p><p>The strength of message queues is mainly the capability to handle service outages for specific applications. In other words, the queue may continue to hold messages sent to it by a sender service until a receiver service becomes active again and is able to process them. In addition, we would only need to focus on making our message queue highly available rather than all of the services in our system.</p><p>characteristics of message streaming that stand out from Http</p><p>· Publish/subscribe model —Instead of using a request/response approach, messages are published to a topic that may have zero, one, or many subscribers.</p><p>· Subscriber notification interaction — When a new message is available, it is notified.</p><p>· Asynchronous — microservice can immediately continue its work without waiting for the consumer of the event to finish.</p><p>· Replayability — Capital One’s message streaming is based on Kafka, allowing subscribers to go back and play back prior messages in order.</p><p><strong>Event-driven Communication</strong></p><p>This is asynchronous, unlike HTTP, and similar to messaging queue. The producer application doesn’t wait for the preceding activity to respond after publishing a message; it immediately moves on to the next message.</p><p>Its changes in state are communicated through a producer/consumer or pub/sub paradigm in event-driven architecture.</p><p>It enables a “push”-based method of communication between services by using messaging frameworks like Kafka or MQ. To finally supply a solution, certain microservices operate as publishers of events, while others act as consumers of those events.</p><p>Advantages of Event-Driven Architecture</p><ul><li>Loosely Coupled Services — The service that is interested in receiving a message does not need to be known to the message provider. As a result, it becomes much simpler to later add new capabilities without disrupting existing functionality.</li><li>Asynchronous —microservice can immediately continue its work without waiting for the consumer of the event to finish.</li><li>Scalability — focused on performing one task well and without a tight coupling to other services,</li><li>Recovery<strong> </strong>— easy to store and naturally decoupled from any other data.</li><li>Maintainability — By replaying the event log, events may easily be deleted and re-populated with the new schema. No more difficult data transfers.</li><li>Real-time Customer Experience — The response time can be speeded up by running services concurrently. Real-time event transmission allows for very robust and effective service-to-service interaction.</li></ul><p>Therefore messaging queues and Event-driven Architectures are better to use in miro-services connectivity other than HTTP.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e349e9aee5f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Threads]]></title>
            <link>https://medium.com/@gallegesupuni/threads-dbc7bd4cb21?source=rss-28a00bbb66bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbc7bd4cb21</guid>
            <dc:creator><![CDATA[Supuni Gallege]]></dc:creator>
            <pubDate>Fri, 09 Sep 2022 15:48:08 GMT</pubDate>
            <atom:updated>2022-09-09T15:48:08.847Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Multi-tasking in Threads</strong></p><p>There are two types of multi-tasking in Threads</p><p>1. Process-based - In this type of multitasking, it allows two or more processes to run concurrently.</p><p>2. Thread-based - In this type of multitasking, it allows two or more threads can be run concurrently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*MGGDThZaRwia-6-rI-dTrQ.png" /></figure><p><strong>Creating Threads</strong></p><p>There are two ways to create a thread.</p><ol><li>extend thread class</li></ol><p>public class Main extends Thread {<br>public void run () {<br>System.out.println(“From Extended Thread class”);<br>}<br>}</p><p>2. implement runnable interface</p><p>public class Main implements Runnable {<br> public void run() {<br> System.out.println(“From Extended Thread class”);<br> }<br>}</p><p>When we extend Thread class, we can’t extend any other class due to any reason. When we implement Runnable, we can save a space for our class to extend any other class in future or now.</p><p>Each of our threads creates a unique object and is associated with it when we extend the Thread class. The same object is shared among numerous threads when Runnable is implemented.</p><p><strong>Thread Priority</strong></p><p>Every thread is given a priority. Thread priority is not index it is a value.so thread priority starts with 1 and ends with 10. highest priority is 10 lowest priority is 1.The thread scheduler typically schedules the threads based on their priority.</p><p>However, it cannot be relied upon because the JVM specification determines the scheduling option. Be aware that not only Java programmers use JVM.<br>can directly assign a thread’s priority in a Java program.</p><p>when it comes to thread execution, a thread with a high priority will take precedence over threads with a lower priority. Two threads may, however, share the same priority under other circumstances. All of the processing, in order to look after the threads, is done by the Java thread scheduler.</p><p><strong>Life cycle of a Thread</strong></p><p>A Thread can have 6 states.It always exists in any one of them</p><ol><li>New-A thread is in the new state when it hasn’t run yet. This is the state a new thread begins in when it’s created. A thread hasn’t run yet when it’s in this state; it hasn’t started executing its code.</li><li>Runnable-This when thread is either running or ready for execution.When using multithreading, a software program gives each unique thread a specific amount of time to run. Each thread runs for a certain amount of time before willingly handing control of the CPU to another thread. The next thread then finishes running its allotted time. All threads that are ready to run and are currently waiting in a queue are in the runnable state. When such an event occurs, threads are stored in a queue; they become stored in the runnable state when they’re activated.</li><li>Blocked /Waiting-When a thread is temporarily inactive, then it’s either in Blocked state or Waiting state</li><li>Timed Waiting-When a thread calls a method with a time-out parameter, it is in a timed waiting state. The timeout is not over or a notification is not received before a thread exits this state. A thread is put into a timed waiting state, for instance, when it calls sleep or a conditional wait.</li><li>Terminated-When the thread has completed its execution it comes to terminated state.It simly means that it is no longer active in the system. In other words, the thread is dead</li></ol><p><strong>Java Thread join</strong></p><p>Until the given thread is dead, the current thread’s execution can be paused using the Java Thread join method. There are three join functions that are overloaded.</p><p>1.public final void join()</p><p>2.void join(long millis</p><p>3.public final synchronized void join(long millis, int nanos)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbc7bd4cb21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[REST URL naming conventions]]></title>
            <link>https://medium.com/@gallegesupuni/rest-url-naming-conventions-bceb53626003?source=rss-28a00bbb66bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/bceb53626003</guid>
            <dc:creator><![CDATA[Supuni Gallege]]></dc:creator>
            <pubDate>Mon, 05 Sep 2022 09:22:20 GMT</pubDate>
            <atom:updated>2022-09-05T09:22:20.934Z</atom:updated>
            <content:encoded><![CDATA[<p>According to the representational State Transfer architectural pattern,REST Api is an excellent tool for enabling communication and information sharing between various applications or systems. You must be aware of industry best practices, like the way to name your REST Apis, if you are developing your own REST API.</p><p>Using REST API naming conventions can greatly reduce the learning curve beginner developers and third-party users, creating it easier for them to get started with the API.So here are some of the main REST URL naming conventions discussed.</p><ol><li>American English</li></ol><p>Keep your endpoint/resource names in American English since it is the language that your foreign audience of developers is most likely familiar with.</p><p>2. Use nouns for naming URIs</p><p>RESTful URIs should not reveal any kind of CRUD functionality. Instead they should enable you to manipulate a resource, which should be represented as a noun.<br>Using nouns for naming URIs is a REST API naming best practice, but when should you use singular or plural nouns? Plural nouns are often preferred unless the resource<br> is obviously a singular idea.<br> example- use <a href="https://api.example.com/students">https://api.example.com/students</a> instead of <a href="https://api.example.com/getStudents">https://api.example.com/getStudents</a>.</p><p>3. Use intuitive, clear, unshortened names</p><p>You should choose URI names for REST API endpoints that are simple to understand and can be easily guessed by outside parties, even if they haven’t used the API before. In general, its better to avoid abbreviations and shorthand and use real terms</p><p>4. Use forward slashes to indicate URI hierarchy</p><p>Its true that forward slashes are good for denoting the hierarchy of your API, they’re not necessary at the very end of the URL, where they add complexity without adding clarity. .According to keep URIs clean, its better not to add a trailing forward slash to the end of URIs.</p><p>5. Separate words with hyphens</p><p>Hyphens should be used to separate words in a REST API endpoint when there are several words present. Instead of using underscores (such as last name) or camel case (such as lastName), which is discouraged due to its usage of capital letters, this is often cleaner and more user-friendly.</p><p>6. Use lowercase letters</p><p>Its better to use lowercase letters in your API URLs whenever possible. This is mainly due to the fact that URIs are case-sensitive most of the times, <br>according to the RFC 3986 specification for URI standards . URIs are frequently written in lowercase, which helps prevent confusion caused by irregular capitalization.</p><p>7. Avoid special characters</p><p>Its both unnecessary,and can be technically confusing for users when we use special characters . All of your API URLs should only contain ASCII characters because URLs can only be sent and received using that character set.</p><p>Furthermore, its better to avoid using unsafe characters like space character (“”), brackets (“[]”), angle brackets (“&gt;”), braces (“”), <br>and pipes (“|”) ,They are examples of “unsafe” ASCII characters for URLs.</p><p>8. Avoid file extensions</p><p>Keep file extensions out of your URIs because they are less attractive and increase the length of URIs . Use the Content-Type header instead if you need to define the body’s format.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bceb53626003" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Push and Stream concepts]]></title>
            <link>https://medium.com/@gallegesupuni/data-streams-3e2fcd728971?source=rss-28a00bbb66bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e2fcd728971</guid>
            <dc:creator><![CDATA[Supuni Gallege]]></dc:creator>
            <pubDate>Mon, 05 Sep 2022 04:45:16 GMT</pubDate>
            <atom:updated>2022-09-05T04:48:24.013Z</atom:updated>
            <content:encoded><![CDATA[<p>There’s a technique called Polling which continually examines a particular device to see if it has data to transfer. What it really does is monitoring and keep in touch with the system always and continuously take the measurement.</p><p>There&#39;s a disadvantage of this technique also which is you have to do this very often. But it&#39;s totally fine because you have a small bandwidth.But there is a problem. When you send the request sometimes it doesn&#39;t give the result instantly. Therefore within this time period system can change and now the result is not accurate.</p><p>Therefore we have a few solutions techniques for this.</p><p><strong>1. Push</strong></p><p>It sends the upgrade request. It upgrades the web server. Here you maintain a tunnel between the client and the server. The advantage is whenever the client or the server needs to send a message it can do it. Instant messaging and synchronized conferencing are classic instances of push services. Pushing files is a feature that is supported by both decentralized peer-to-peer systems and centralized programs.</p><p>As soon as the messaging service receives chat messages, it pushes them to the user, along with files on occasion. In HTTP you have to wait for the request for the response. here you don&#39;t have to do it as this is real-time.</p><p>examples of push systems</p><ul><li>Email</li><li>SMTP</li><li>PointCast Network</li><li>Netscape</li><li>Microsoft</li></ul><p><strong>2. Stream</strong></p><p>This is a structure and a technique where elements are designed to ingest and process significant amounts of streaming data from many sources. <br>A streaming data architecture consumes data instantly as it is generated, persists it in storage, and may include various additional components per use case, such as tools for real-time processing, data manipulation, and analytics.</p><p>Traditional data solutions focused on writing and reading data in batches.<br>Requests are streaming the current coordination and your application listens to the stream and takes the coordination and put it in the relevant place.</p><p>Advantages of Stream</p><ul><li>Able to deal with never-ending streams of events</li><li>Real-time or near-real-time processing</li><li>Detecting patterns in time-series data</li><li>Easy data scalability</li></ul><p>If it is okay to have intervals you can use polling. If you need either side to initiate the message then you can go with the push. If you need one-way communication which means you need updates from the other side you can use the stream</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e2fcd728971" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Floating point error calculation]]></title>
            <link>https://medium.com/@gallegesupuni/floating-point-error-calculation-b18e0630a4fe?source=rss-28a00bbb66bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/b18e0630a4fe</guid>
            <dc:creator><![CDATA[Supuni Gallege]]></dc:creator>
            <pubDate>Mon, 05 Sep 2022 03:58:14 GMT</pubDate>
            <atom:updated>2022-09-05T03:58:14.056Z</atom:updated>
            <content:encoded><![CDATA[<p>computer deals with floating points in a different way.<br>IEEE 754 standard is used to represent the floating point by the computer.it devides the number into three components<br>1.sign bite<br>2.exponent<br>3.mentisum</p><p>This is how IEEE 754 standard guide to represent the floating point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*aLXkyeaEBA6raADALkZkKA.png" /></figure><p>Lets take an example<br>9.1 can be identified ad 1001.000110011001100110…<br>If we arrange this number in scientific method<br>Its 1.00100011001100110…x2³<br>In here exponent is 130 which is 01000001000100011001100110011001 in binary</p><p>In IEEE calculator,<br>It is 01000001000100011001100110011010</p><p>So you have to be careful about the data type<br>This is what happens when we have a floating point error<br> it has space only for the 23rd bit. If it has a 24th bit which is 1 ,then in chops out everything in the rest of the bit and add 1 into the 23rd bit. <br> If 24th bit is 0 then it doesn’t count. This problem happens for both double and float values.</p><p>When you convert a number to binary and again to decimal it changes a bit because of the rounding that the computer do<br>For example if we convert 9.1 to binary and then again to decimal it will give 9.10000038</p><p>Solution for this is using a different data type which is bit decimal if you a java developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b18e0630a4fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[web services with SOAP]]></title>
            <link>https://medium.com/@gallegesupuni/web-services-with-soap-1a87776f2259?source=rss-28a00bbb66bb------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a87776f2259</guid>
            <dc:creator><![CDATA[Supuni Gallege]]></dc:creator>
            <pubDate>Sun, 04 Sep 2022 09:49:12 GMT</pubDate>
            <atom:updated>2022-09-04T09:54:32.308Z</atom:updated>
            <content:encoded><![CDATA[<p>There are two types of web services</p><p>1. Rest services</p><p>2. Soap services</p><p>SOAP stands for simple object access protocol. <br>SOAP is a messaging protocol that enables applications that run on different operating systems to communicate.</p><p><strong>A SOAP message contains:</strong></p><p>An Envelope that clearly shows the start and end of the message\s·</p><p>A Header that contains attributes that are used to process the message and is an optional element\s·</p><p>A Body that contains the XML data that must be delivered and cannot be omitted</p><p>A Fault which provides error messages when processing and it is an optional element.</p><p><strong>Terminologies commonly used in SOAP web services</strong></p><ol><li>XML</li><li>XSD</li><li>HTTP</li><li>SOAP</li><li>WSDL</li><li>UDDI</li><li>SEI</li><li>SIB</li></ol><p>SOAP is mainly an XML-based protocol for accessing web services over HTTP. It contains several specifications that are applicable to all applications. They are platform and language.<br> w3C has recommended SOAP to communicate between two applications<br>Therefore You can communicate with other programming language applications by using SOAP.<br>SOAP provides the envelope for sending web services messages over the internet<br>Its own WS security is defined as well.</p><p><strong>how to create a new SOAP project in SOAPUI</strong></p><p>create test suites and test cases</p><p>run the test cases</p><p>how to add Assertions(validation points)</p><p>Run test steps &amp; test cases</p><p>Run test suite(sequential &amp; parallel)</p><p><strong>Advantages of SOAP</strong></p><p>SOAP is the protocol used for data interchange between applications. Here are a few reasons for using SOAP.</p><ul><li>SOAP is a light-weight protocol that is used for data interchange between applications. The SOAP protocol also belongs to this group because it is based on the XML language, which is likewise a lightweight data transfer language.</li><li>· You need a language that can be utilized for web services to communicate with client apps when creating SOAP-based Web services. The ideal tool to accomplish this goal was created, and it is SOAP. Additionally, the W3C organization, which oversees all online standards, advises using this protocol.</li><li>SOAP is structured to be both platform-independent and operating system-independent. Therefore, the SOAP protocol can be used with applications written in any programming language on the Windows and Linux platforms.</li><li>It works on the HTTP protocol, which is the standard protocol used by all web applications. SOAP operates on the HTTP protocol. As a result, no modification is necessary for web services based on the SOAP protocol to function over the Internet.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a87776f2259" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>