<?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 Furkan Akman  on Medium]]></title>
        <description><![CDATA[Stories by Furkan Akman  on Medium]]></description>
        <link>https://medium.com/@furkan_akman_41?source=rss-360840fcf549------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Furkan Akman  on Medium</title>
            <link>https://medium.com/@furkan_akman_41?source=rss-360840fcf549------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 14:16:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@furkan_akman_41/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[Cloud: The Cornerstone of Modern Software]]></title>
            <link>https://medium.com/@furkan_akman_41/cloud-the-cornerstone-of-modern-software-69d50e0680fe?source=rss-360840fcf549------2</link>
            <guid isPermaLink="false">https://medium.com/p/69d50e0680fe</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Furkan Akman ]]></dc:creator>
            <pubDate>Wed, 22 Jul 2026 20:15:18 GMT</pubDate>
            <atom:updated>2026-07-22T20:15:18.958Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K9j8lhUSI_udgOqnY200zg.jpeg" /></figure><h3><strong>Why Cloud ?</strong></h3><p>In recent years, one of the most significant shifts in the software world has been the changing focus from how software is written to where and how it runs. Although traditional on-premise systems have been in use for many years, as technologies have evolved and scaled, systems have become increasingly complex. As a result, traditional structures have begun to encounter serious limitations.</p><p>At this point, cloud computing has started to become a standard rather than just an alternative in the software world. Its because the cloud introduced a model that fundamentally changed the way software is developed and deployed. Today, instead of investing in and setting up physical servers, companies are migrating to cloud systems where they can consume resources on-demand, pay only for what they use, and scale these resources whenever necessary.</p><h3><strong>What Is Cloud Computing ?</strong></h3><p>In on-premise systems, companies are responsible for setting up servers, managing databases, maintaining storage systems, and making the infrastructure remains available and secure. On top of that, as the business grows, scaling these resources requires additional time, resources and investment.</p><p>Cloud computing is a model that offers software resources such as servers, databases, storage, networking over the internet. Instead of setting up, managing, and maintaining software infrastructure, organizations can access these resources from cloud providers and only pay for what they use.</p><p>Now let’s talk about cloud computing types.</p><h3><strong>Service Model</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k4d1BdPLdanHqJJwJzFzxg.jpeg" /></figure><h4><strong>1 — IaaS (Infrastructure as a Service)</strong></h4><p>IaaS is a cloud service that provides basic computing infrastructure for your system. Instead of buying storage, servers or network hardware you can use IaaS on demand and pay only for what you use.</p><p>IaaS requires more management and monitor compared to PaaS and SaaS models. While IaaS gives you maximum flexibility, it also gives you control over OS and applications, eliminating the need to manage physical hardware.</p><p>Google Compute Engine, Microsoft Azure VM, Amazon Web Services etc.</p><h4><strong>2 — PaaS (Platform as a Service)</strong></h4><p>PaaS is a cloud computing model in which a third-party provider delivers hardware and software tools that are needed in software development to users over the internet. Unlike IaaS you don’t have to control OS, servers,storage or load balancing in PaaS. You just write your code and rest is handled by cloud system</p><p>With this approach, you can easily write your code and deploy, you can scale your service without worrying and you only pay for what you use.</p><p>Google App Engine, Firebase, Herkou etc.</p><h4><strong>3 — SaaS (Software as a Service)</strong></h4><p>SaaS (Software as a Service) refers to cloud software accessible over the internet. You can quickly access and use the services you need. It typically operates on a monthly or annual subscription basis. You don’t need to worry about installation or software updates.</p><p>Google Work Space (Google Documents, Drive etc.), Microsoft 365 etc.</p><h3><strong>Deployment Model</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IjaRsf_x-37bH-HyKZOCxQ.png" /></figure><p>Cloud computing deployment models define where your infrastructure is located, who manages it, and who has access to the resources. It basically defines your boundaries throughout the infrastructure.</p><h4><strong>1- Public Model</strong></h4><p>The public model has the broadest boundaries. Your infrastructure is usable through the whole internet or broad groups of users. Infrastructure is controlled by cloud providers.</p><p><strong>Advantages : </strong><em>Since the whole infrastructure is provided by cloud providers it doesn’t have much cost for maintenance. You only pay-per-use so it’s also cost-effective. And it can scale automatically based on traffic.</em></p><p><strong>Disadvantages : </strong><em>The public model has lower security compared to the private cloud model. Because it’s shared with a broad group of users. It’s not customizable as the private cloud model.</em></p><h4><strong>2- Private Model</strong></h4><p>The private cloud model is the exact opposite of the public model. It’s for single users only. So your infrastructure is not shared. That’s why it’s also called ‘’ internal cloud model ’’. It has a high security environment and it’s more customizable compared to the public model.</p><p><strong>Advantages : </strong><em>We mentioned earlier that the private cloud model is more customizable, you have total control over your infrastructure and it’s more secure. Also private cloud models support legacy systems.</em></p><p><strong>Disadvantages : </strong><em>It has a high maintenance cost because you have to control your infrastructure. Also it has autoscale but you have to manually configure it.</em></p><h3><strong>Core Components of Cloud Infrastructure</strong></h3><p>Modern cloud systems run on several modern components to operate. And to completely understand how cloud computing works, we have to look into its components and how they operate.</p><h4><strong>1- Hypervisor</strong></h4><p>Hypervisor is a software that allows multiple OS’es to run on a single physical machine. It manages resources ( CPU,Memory,Storage ) and allocates them to VM’s. It acts as a bridge, translating guest OS requests into physical hardware actions while ensuring strict security and system stability. It has two types, Type 1 hypervisor runs directly on the host’s hardware. It doesn’t rely on a host operating system. Type 2 hypervisor runs on top of a conventional operating system. It’s an application within the host OS. Both have their own advantages and disadvantages and you can use each for your requirements.</p><h4><strong>2- Virtual Machine (VM)</strong></h4><p>A virtual machine is basically a small box that works as an isolated physical computer. It has its own resources such as cpu, storage, memory and operating system. Even if two virtual machines run on the same hypervisor they can act differently because each vm is isolated. VM’s are flexible and easily scalable components, you can run your VM system on almost any cloud environment .VMs utilize the cloud’s hardware infrastructure to run a fully dedicated software stack, including their own OS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2YcmeH_dZH6XHHPeY5GIkw.png" /></figure><h4><strong>3 — Container</strong></h4><p>A container is an isolated, stand-alone box that stores applications and its all dependencies on an isolated environment. You can think of it as a software package that contains every file that a software needs and it can run on any system exactly the same. You just load your container and run it. Unlike virtual machines, a container doesn’t have a cpu or memory, it only packs software files. Containers use resources on infrastructures they are deployed in.</p><h4><strong>4 — Orchestration</strong></h4><p>In a cloud environment, orchestration refers to automating the deployment, configuration, and management of resources and services. It ensures efficient and consistent cloud service delivery by creating workflows that automate multiple tasks. Orchestration tools reduce complexity and quicken service delivery by eliminating many manual deployment tasks.</p><p>Cloud computing has become a cornerstone of modern software development by providing scalable, reliable, and cost-effective infrastructure. Understanding these fundamental concepts is crucial for every software engineer, as cloud platforms continue to shape how applications are designed, built, and maintained.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69d50e0680fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microservice Design Patterns]]></title>
            <link>https://medium.com/@furkan_akman_41/microservice-design-patterns-988dbecfe1f1?source=rss-360840fcf549------2</link>
            <guid isPermaLink="false">https://medium.com/p/988dbecfe1f1</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[event-sourcing]]></category>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[saga-pattern]]></category>
            <dc:creator><![CDATA[Furkan Akman ]]></dc:creator>
            <pubDate>Tue, 18 Mar 2025 06:55:33 GMT</pubDate>
            <atom:updated>2025-03-18T06:55:33.610Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PnTFvxo8G6UqcA2h6IERSg.jpeg" /></figure><p>In today’s fast-paced development landscape, microservices have become a popular approach for building fast, scalable, testable, and independently deployable architectures. Unlike monolithic architectures, which tend to struggle with complexity as applications expand, microservices offer a more flexible solution.</p><p>But with great flexibility comes great responsibility 😊. As much as microservices have great advantages, they<strong> </strong>also have disadvantages such as distribution, inter-service communication, monitoring, testing etc. If not implemented properly they can become hard to manage. This is where microservice design patterns comes into play. In this article, we’ll discuss about essential design patterns for designing robust and maintainable microservices.</p><h3>1-) API Gateway</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*PS79KAjFhPo_--gPGlkLwQ.jpeg" /></figure><p>Acting as the centralized entry point the API gateway routes client requests to the appropriate backend services. By directing traffic, it eliminates the need for clients to communicate directly with individual microservices which provides low latency and more security. If the client can access all services directly, the system may be more vulnerable to security threats. Assuming that all these services have authorization and authentication controls and also use HTTPS for a more secure design, it is clear that such a design will create performance problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*IsXue98Jwww9vnt1RSRNxw.jpeg" /></figure><p>API Gateway is a single entry point into our microservices ecosystem, it improves security and performance by authenticating users, authorizing requests, removing unnecessary HTTPS calls, reducing latency, and protecting services from attacks like DoS. It simplifies traffic management while increasing efficiency by providing monitoring and protocol translation (e.g., HTTPS to HTTP).</p><p>Let’s talk about the downside of this design pattern. First of all it adds an extra layer of complexity. Because now you have one more service that communicates with other services. And If not properly scaled or secured, it risks becoming a single point of failure. However, these trade-offs becomes manageable with adopting design patterns we will mention 😊</p><h3>2-) Circuit Breaker Pattern</h3><p>The term ‘Circuit Breaker’ comes from electrical engineering. It is a device that interrupts the electric current to protect the system from overload. When designing microservices, we can prevent overloading in our faulty system by establishing a similar architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*08Jc60-4t6RMvDw7W2LWJA.jpeg" /></figure><p>By default, when an error occurs in a microservice, incoming requests continue to arrive. As a result, requests start to pile up. The Circuit Breaker pattern stops traffic to the faulty microservice when errors occur, preventing the rest of the system from experiencing further errors and wasting system resources. Circuit breaker has 3 states :</p><ul><li><strong>Open</strong></li></ul><p>When a microservice fails (usually circuit breaker don’t change to “Open” state in one failure. It has a threshold, for example, 5 failures in 30 seconds), incoming requests pile up, straining resources. The Circuit Breaker stops traffic to the failing service after surpassing an error threshold, preventing cascading failures and resource waste.</p><ul><li><strong>Closed</strong></li></ul><p>When no errors are detected, the Circuit Breaker stays “Closed”, which means everything is working properly.</p><ul><li><strong>Half-open</strong></li></ul><p>When an error occurs in the system, there is a time limit for recovery. After a cooldown period, the Circuit Breaker enters the half-open state, testing the failing service with a few requests. Success resets it to closed; failure sends it back to open, repeating the cycle.</p><h3>3-) Strangler Pattern</h3><p>The transition from a monolithic architecture to a microservices-based architecture is often challenging. The Strangler pattern is a pattern used to simplify this process by gradually replacing the functions of the monolithic system with new microservices.</p><p>With this approach, the old monolithic system and the microservices system coexist. As the monolithic architecture transitions to a microservice architecture, the dependency on the old monolithic system decreases over time and finally the monolithic architecture is completely removed. The Strangler pattern allows you to change parts of the system one by one instead of replacing them all at once. This minimizes risks as we can more easily detect problems by replacing parts one by one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*JLmH0p_P_L2ziPhkryO4zA.jpeg" /></figure><p>It has three states :</p><ul><li><strong>TRANSFORM</strong></li></ul><p>Extracting functionality from monolith to microservices while maintaining monolith applications.</p><ul><li><strong>CO-EXIST</strong></li></ul><p>Both monolithic and microservices applications run simultaneously in this state. With microservices taking over the functionality of the monolith application more and more while allowing fallback when issues arise.</p><ul><li><strong>ELIMINATE</strong></li></ul><p>The monolithic application is completely removed from the system, and now only the microservices are in use, making the final transition in the Strangler Pattern.</p><h3>4-) Service Discovery Pattern</h3><p>In monolithic applications, all the functions of the applications are on the same server. In a microservices architecture, services can be dynamically scaled up or down. In addition, new services can be added to the system or some services might be too busy. In a system where there are so many services floating around, it becomes important to direct traffic to the right services and to register newly added services to the system.</p><p>Service Discovery Pattern allows us to register services in the service registry and route traffic. In this pattern, records of all services in the system are kept in the service registry (Eureka, Zookeeper, etc.). Since the registry knows all the available services, it can provide the appropriate service address. A load balancer is usually used during this process to determine which service instances should receive requests based on their load status. We can say that it works similarly to DNS.</p><p>This access process can happen in two ways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*bevGcpn9wljliFOoyhN96A.jpeg" /></figure><ul><li><strong>CLIENT-SIDE</strong></li></ul><p>The client finds the service address it is looking for by requesting the registry and then interacts with the service.</p><p>This approach tightly couples the client and service registry, in a microservices architecture we want the services to be as separate from each other as possible.</p><ul><li><strong>SERVER-SIDE</strong></li></ul><p>The client asks the proxy to make a call to the service. The proxy receives the request and looks up the service address in the registry, then interacts with the service the client requested</p><p>Clients do not need to search for available service instances. As a result, clients do not need to make multiple calls when requesting a service. It creates an abstraction between the client and server side. But of course, it adds complexity to the system.</p><h4>Registration Patterns</h4><p>When using this pattern, it is really important to keep this registry up to date. So when services are added to the system, or a service fails or a service is removed from the system, the registry needs to be updated.</p><p>There are two approaches</p><ul><li><strong>Self Registration</strong></li></ul><p>In this approach, all services are responsible for updating the registry about their current status (if the service is down, newly added, etc.).If the service becomes unresponsive, it will not be able to update the registry. Furthermore, it tightly couples services with the registry</p><ul><li><strong>3rd Party Registration</strong></li></ul><p>In this approach, a 3rd party application observes the services and updates the status of the services in the registry. But it adds complexity to system.</p><h3>5-) Backend For Frontend</h3><p>When frontends interact with backend microservices for their needs, they need to make many calls and process data from microservices. While this approach is suitable for simple applications, it can become difficult to manage as our applications become more complex.</p><p>If there is no backend for the front end, the front end needs to understand each microservice it calls. For example, which method should it call with, what data should it send, in what format will it receive the incoming data, etc. In addition to this, when responsibilities such as filtering the data from the microservices, processing the incoming data, and adjusting the frontend accordingly when there is a change in the backend service, we can say that the load on the front end increases considerably. In addition, there may be many frontends using the same backend. When this happens, we face a situation that is difficult to manage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0FVOJzeFqmvMy5Cd7CTLig.jpeg" /></figure><p>Instead of frontends calling APIs directly, we create an API for each frontend to interact with the backend microservices. This approach takes the load off of the front end and makes the system more secure.</p><h3>6-) SAGA Pattern</h3><p>In monolithic applications, since all transactions are managed through a single database, transactions can be easily performed and data consistency can be ensured. However, since each service has its own database in the microservice architecture, it is more difficult to ensure data consistency and some problems may be encountered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*LCdAlbAruAN7NJp-Adzyjw.jpeg" /></figure><p>For example, when a user places an order in an e-commerce application, the Order, Payment, and Inventory microservices must update their data according to this order.</p><p>However, while the other two microservices complete their transactions, the Payment microservice may not be able to complete the transaction because the information is incorrect.</p><p>In this case, the transactions made in the Order and Inventory microservices must be rolled back. Thanks to the SAGA Pattern, when a service fails, the transactions made in other services can be rolled back, so the system does not fall into an inconsistent state.</p><p>The SAGA pattern can be applied in two ways:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6--T0D9cVWOkul1DxQmiNA.jpeg" /></figure><ul><li><strong>Orchestration</strong></li></ul><p>In this approach, we choose one of the services as the orchestrator. The orchestrator interacts with other services synchronously and waits for each service to complete its task in sequence. If a service fails to complete its task, it retries the operation for a predetermined period of time. If all retries fail, the orchestrator notifies the other services and ensures that the changes made are rolled back. In this way, data consistency is ensured.</p><ul><li><strong>Choreography</strong></li></ul><p>In Choreography SAGA, event-based communication is used to manage the transactions. Each microservice publishes an event after completing its transaction asynchronously. Other microservices listen to these events and execute their operations accordingly.</p><p>If a transaction fails, the failing microservice publishes a rollback event (after retrying it for a predetermined period of time). Other microservices that listen to this event roll back their own changes, ensuring that the system remains consistent and avoids data integrity issues.</p><h3>7-) Aggregator Pattern</h3><p>In microservices systems, data is distributed across multiple services. When a client microservice needs to retrieve data from different microservices making separate calls to each microservice and combining them on the client side increases the complexity and latency.</p><p>Actually, this pattern is pretty similar to the Backend For Frontend (BFF) pattern. The Aggregator Pattern is used to return data from multiple microservices to the client in a single response. Instead of making clients make multiple API calls and manage all data from different services, an aggregator service acts as an intermediary. The aggregator service collects the data from different microservices, then processes or formats it as needed, and returns a combined response to the client.</p><p>While BFF pattern is a client specific pattern to organize and optimize responses for different front-end applications, Aggregator pattern is for merging data from multiple microservices regardless of the client type.</p><h3>8-) Bulkhead Pattern</h3><p>The Bulkhead Pattern is another pattern for error handling like<strong> </strong>the <strong>Circuit Breaker</strong> pattern. It is a pattern that helps to isolate failures in a microservice architecture where a failure in one service can potentially affect other services and lead to cascading failures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/0*99fLINc4ovnQ2An2.jpg" /></figure><p>This pattern is inspired by ship design, which is designed so that if one section of the ship is damaged, the other sections are not affected.</p><p>This approach divides the system into isolated resource partitions by allocating a limited thread pool to each service, ensuring that if one service fails, it does not consume all available resources.</p><h3>9-) Event Sourcing And Command Query Responsibility Segregation (CQRS)</h3><p>Event sourcing is a pattern which often paired with CQRS in microservice architectures. So I am going to explain both 😊.</p><p>Traditional databases record the current state of an object. In other words, when we make changes to an object, the database records the changed state of the object in the database, deleting the state it was in before the change was made. This means we lose the history of events that led to the current state of the object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*fN0RMkI_quGEDrPetAM2Ig.jpeg" /></figure><p>In the Event Source approach, instead of recording the current state of the object, we record the events that bring the object to its current state each time the object is updated. Let’s say we are going to record the books in our library application. Instead of recording the information that there are currently 5 books in the library, we record events such as 2 books removed from the library, 4 books added, etc.</p><p>In order to learn the current state of the object, the events recorded in the past (I would like to point out here that these events are immutable, they can only be created, not updated) are calculated. When we want to reach the state of an object at any time, we can easily reach it by calculating the events that have occurred up to that moment.</p><p>Everything seems great. However, as the amount of data we have increases, these event calculations will start to consume more and more resources and the latency will start to increase. There are several solutions to solve this problem (using snapshot to cache), but today we will talk about how the CQRS pattern solves this problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*WUMz-ASkhERY7RVSFwknvg.jpeg" /></figure><p>CQRS pattern separates the command processes and query processes apart from each other. In other words, creating events and reading events are separated.</p><p>When an event is created it is written in the event store (the event store is basically a database holding all events ). Then event handler reads these events and writes them to read database accordingly. For example, when you add book to a library application, the event is recorded. Event handler writes these changes to the read database (such as NoSQL, cache, etc.) for more optimized querying. These updates happen asynchronously, so event handler operations won’t block the write operations to the event store. But when event is written to the event store, read database won’t be updated instantly. It will take some time to update. This means this approach doesn’t guarantee strong consistency but eventual consistency.</p><p>When a client requests data, it retrieves all the data from the read database without impacting write operations. Since all state changes are stored as events, the current state can be<strong> </strong>reconstructed by replaying all events from the event store.</p><p>In conclusion, microservice design patterns offer invaluable strategies for building scalable, maintainable, and resilient systems. While the flexibility of microservices brings many advantages, applying the right patterns helps mitigate challenges like inter-service communication, fault tolerance, and data consistency. By carefully selecting and combining these patterns, users can create robust architectures that efficiently handle growth, complexity, and failure scenarios.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=988dbecfe1f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing Software: Essential Principles for Building Protected Systems]]></title>
            <link>https://medium.com/@furkan_akman_41/securing-software-essential-principles-for-building-protected-systems-36af64611cce?source=rss-360840fcf549------2</link>
            <guid isPermaLink="false">https://medium.com/p/36af64611cce</guid>
            <dc:creator><![CDATA[Furkan Akman ]]></dc:creator>
            <pubDate>Thu, 02 May 2024 22:34:14 GMT</pubDate>
            <atom:updated>2024-05-02T22:34:14.020Z</atom:updated>
            <content:encoded><![CDATA[<p>These days, it’s common for software to be developed without prioritizing security. Often, developers are so focused on solving the problem, they forget to think about security measures. Instead, they address security issues as an afterthought, attempting to fix them later in the development process which is hard to do.</p><p>Saltzer and Schroeder outlined eight fundamental principles for designing and implementing secure systems. We’ll explore each of these principles to understand how they can help developers build more secure software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UC0opasYULa94jGE246TzA.jpeg" /></figure><p><strong>1-) Seperation of Privilege</strong></p><p>Important resources should require more than one condition for access. Think of it like needing two keys to open a safe holding valuable items. This idea is often seen with things like nuclear weapons or bank safes.</p><p>To make this work we need compartmentalization. This means breaking down a system into separate parts that are isolated from each other. Each part has limited access, so even if someone gains access to one part, they still can’t reach the most important stuff. It’s like having multiple layers of security that need to be bypassed. This way, compartmentalization helps us follow the separation of privilege principle when accessing crucial resources.</p><p><strong>2-) Least Privilege</strong></p><p>Operating with least number of rights to complete a task. If user or module is about to do some work in the system, you should give minimum privilege to perform the task. To simply put this if user or module doesn’t need permission to accomplish task, then it should not have that permission.</p><p>You can accomplish this by:</p><ul><li><strong>Minimizing granted privileges</strong></li><li><strong>Minimize the time privilege can be used</strong></li><li><strong>Minimize accessible data</strong></li><li><strong>Minimize available recourses</strong></li><li><strong>Do not use setuid scripts</strong></li></ul><p><strong>3-) Least Common Mechanism</strong></p><p>Minimize the shared components or mechanisms between different security functions or component within a system. By minimizing share, you can lower the risk of a single vulnerability compromising multiple security features.</p><p><strong>4-) Psychological Acceptability</strong></p><p>It’s important to keep in mind that regular users will be using the app, so we need to make sure it’s easy for them to use our application. This means that implementing security measures should be straightforward and not complicated. Often, when we focus too much on security, it can make the application harder to use, and vice versa. So, we need to balance these things and be mindful when applying security measures.</p><p><strong>5-) Open Design</strong></p><p>Security of software should not be dependent on secrecy of security mechanisms. So, security mechanisms should be known and security of software should establish trust. It is also unrealistic to keep security mechanisms secret in widely distributed systems.</p><p><strong>6-) Complete Meditation</strong></p><p>Interface of software should be minimal, narrow and non-bypassable. Input validation is very important because any value that comes from user should not be trusted. Therefore we must validate every input we take from users and every access to every object should be authorized.</p><p><strong>7-) Fail-Safe Defaults</strong></p><p>When designing a system you should think about how likely your system might fail and what happens if it does. There are 2 approaches:</p><p>Allow as default action — All access or actions allowed unless explicitly restricted.</p><p>Deny as default action — Deny access in case of failure unless explicitly allowed.</p><p>There is no right or wrong approach. You should decide which approach is best for your design.</p><p><strong>8-) Echonomy of Mechanism</strong></p><p>Security design mechanisms should be as simple as possible. As we discussed before security itself already adds layer of complexity to our applications. Therefore its best to keep those measures as simple and straightforward as possible to minimize the security of overall system.This not only makes our overall system more secure but also makes it easier to test. If our design and implementation are simple, testing it will also be simple</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36af64611cce" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>