<?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 Andun Kannangara on Medium]]></title>
        <description><![CDATA[Stories by Andun Kannangara on Medium]]></description>
        <link>https://medium.com/@kannangarar1993?source=rss-7a5ea2a7b8f8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dgotPlOwnwtCEK3oBbPq3w.jpeg</url>
            <title>Stories by Andun Kannangara on Medium</title>
            <link>https://medium.com/@kannangarar1993?source=rss-7a5ea2a7b8f8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 01:09:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kannangarar1993/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[How You Could Not Mess Installing Kiwi TCMS in CentOS]]></title>
            <link>https://medium.com/@kannangarar1993/how-you-could-not-mess-installing-kiwi-tcms-in-centos-4087126700f2?source=rss-7a5ea2a7b8f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4087126700f2</guid>
            <category><![CDATA[test-case-management]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[kiwi]]></category>
            <dc:creator><![CDATA[Andun Kannangara]]></dc:creator>
            <pubDate>Thu, 20 Jun 2019 00:00:00 GMT</pubDate>
            <atom:updated>2019-06-23T17:24:56.665Z</atom:updated>
            <content:encoded><![CDATA[<h3>How You Could Not Mess Deploying Kiwi TCMS in CentOS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W85QOqX3IMcwaQpL3vfD9w.jpeg" /></figure><h3>What is so important of Kiwi</h3><p>As simply Kiwi is a Test Plan, Test Run and a Test Case Management system. The most grateful thing in Kiwi is, it’s an open source tool written in Python and Django. So anyone can get a pull of the project and set it up on your own server or on docker environment and you can add missing features by forking the git project and contribute. Also, it has an active community. So if you stuck in installation process or on feature wise you could contact them with the support mail and they will get back to you in no time.<br> Kiwi TCMS features Bugzilla, GitHub, GitLab and JIRA integration, fast test plan and runs search, powerful access control for each plan, run and case, and XML-RPC APIs. XML-RPC API is the API client that Kiwi has exposed to the outside world. With it, the user has been enabled to create different plugins for users’ requirement. There are 2 methods that you can deploy Kiwi. In a docker container Or on a virtual machine</p><p>In this article, I’ve discussed how to install Kiwi in a CentOS VM with PostgreSQL. And what possible difficulties you will be facing during this deployment.</p><h3>Installing Kiwi on CentOS</h3><h3>1. Prerequisites:</h3><ul><li>Python 3.5 or 3.6 (Currently installed with python 3.5)</li><li>Postgres server 9.4 or higher (Installed in Postgres 10.0 )</li></ul><h3>2. Install Python 3.5 in Centos</h3><p>Use the instructions in the following link to install python3.5 via software collection org</p><p><a href="https://www.softwarecollections.org/en/scls/rhscl/rh-python35/">https://www.softwarecollections.org/en/scls/rhscl/rh-python35/</a></p><h3>3. Get source code</h3><p>git clone https://github.com/kiwitcms/Kiwi.git</p><h3>4. Setup virtual env</h3><p>If you have installed python according to step 2. You should enable python3.5 on bash with scl enable rh-python35 /bin/bash</p><ul><li>Then to create virtual env run the following command</li></ul><p>virtualenv ~/virtualenvs/kiwi</p><ul><li>Install dependencies on Centos</li><li>Install following dependencies needed to compile some python dependencies</li></ul><p>sudo yum install gcc python-devel MariaDB-devel libxml2-devel libxslt-devel graphviz</p><ul><li>Install following dependencies for the development after navigating to created virtual env and to the cloned project with following commands respectively.</li></ul><p>. ~/virtualenvs/kiwi/bin/activatepip install -r requirements/postgres.txtpip install -r requirements/devel.txtpip install python2-secretcd tcms/npm install</p><p><strong>Possible issues</strong></p><ul><li>Dependency download failed as Pip tool is not upgraded. Pip install -U pip</li><li>Dependency installation failed as setuptools are not upgraded Pip install -U setuptools</li></ul><h3>5. Initialize Database</h3><p>Development environment Kiwi default configured to use SQLite as the database. As we use Postgres it should be configured in/tcms/settings/devel.py as the following</p><pre>DATABASES = { &#39;default&#39;: { &#39;ENGINE&#39;: &#39;django.db.backends.postgresql_psycopg2&#39;, &#39;NAME&#39;:&#39;&lt;db_name&gt;&#39;, &#39;USER&#39;: &#39;&lt;db_user&gt;&#39;, //postgres user for the account &#39;PASSWORD&#39;: &#39;&#39;, &#39;HOST&#39;: &#39;localhost&#39;, &#39;PORT&#39;: &#39;&#39;, } }</pre><p>And run the following command to create the database schema</p><p>./manage.py migrate</p><p><strong>Possible issues:</strong></p><pre>raise ImproperlyConfigured(&quot;Error loading psycopg2 module: %s&quot; % e) django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named &#39;psycopg2&#39;` </pre><pre>Solution: <br>pip uninstall psycopg2 <br>pip uninstall psycopg2-binary <br>pip install psycopg2-binary </pre><pre>Error with following Programming error django.db.utils.ProgrammingError: syntax error at or near &quot;WITH ORDINALITY&quot; LINE 6: FROM unnest(c.conkey) WITH ORDINALITY co...</pre><p>This is because the installed Postgres server version is not compatible with installed Django. You have to use Postgres 9.4 or higher version</p><h3>6. Create a superuser for Kiwi with the following the command</h3><p>./manage.py createsuperuser</p><h3>7. Run server</h3><p>./manage.py runserver</p><p>And Kiwi python server starts on <a href="http://127.0.0.1:8000/">http://127.0.0.1:8000/</a></p><h3>8. Configure Apache for a proxy pass</h3><p>To access Kiwi server we need to add a proxy pass for the URL in apache virtual host</p><p><em>Originally published at </em><a href="https://andunranmal.github.io/arasmemento/How-you-could-mess-installing-Kiwi-TCMS-in-CentOS/"><em>https://andunranmal.github.io</em></a><em> on June 20, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4087126700f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Take your first step towards Serverless Development with Serverless Framework and Sigma]]></title>
            <link>https://medium.com/@kannangarar1993/take-your-first-step-towards-serverless-development-with-serverless-framework-and-sigma-b049e0c31c59?source=rss-7a5ea2a7b8f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/b049e0c31c59</guid>
            <category><![CDATA[serverless-framework]]></category>
            <category><![CDATA[sigma]]></category>
            <category><![CDATA[serverless-architecture]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Andun Kannangara]]></dc:creator>
            <pubDate>Tue, 19 Feb 2019 10:12:45 GMT</pubDate>
            <atom:updated>2019-03-26T09:50:54.115Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pPT3pvGppzbsVVS3" /></figure><p>People are lazy. They always find how to get things done easily. Developers the same. In the context of serverless computing, many tools have been introduced to make it happen.</p><p>There are many tools and frameworks that support programmers to develop applications with serverless architecture. Serverless framework and Sigma are a couple of those tools that make developing serverless applications easier. In this article, we will be showing how to create a simple project with a rest API endpoint with API Gateway and DynamoDB using Serverless framework and a little comparison between Serverless framework and Sigma in creating a project.</p><p><strong>Serverless init</strong></p><p>The serverless framework provides a template in default with handler.js file, serverless.yml file. You just need to run the command from where you want to develop the project</p><pre>serverless create — template aws-nodejs — name &lt;service_name&gt;</pre><p>Now you have a project written on Serverless framework. You can deploy this project at once to the cloud with the following command. And terminal will displays the status of deployment with the stack creation. Running the deployment with the –verbose flag will give you advantages if something goes wrong in creating the stack.</p><pre>sls deploy</pre><p>As you now have a deployed serverless project with a lambda function. You can invoke this function with</p><pre>sls invoke — function &lt;function_name&gt;</pre><p>And you should get a successful response with 200 status code and body.</p><p><strong>Adding API Gateway</strong></p><p>API gateway is an event for a lambda function, these events should be declared in the serverless.yml file under functions. For every function to be invoked there should an event.</p><p>You should be cautious in making changes in the yml file, it can be a little bit messy. Even a wrong indent will cause a fail deployment.</p><p>As we have created the project with serverless template there will be several commented events. As API gateway is an HTTP event I comment out HTTP event in the serverless.yml file and declare its path as “/” and method as “ANY” and deploy the project.</p><p>After a successful deployment, you will be given an endpoint URL for the deployed API Gateway</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9fLtEyyAoRgK5lsP" /></figure><p>As I will be adding two more lambda functions to the project as addUser and getUser, events for these functions also will be declared in yml file under a different path “user”. Finally, the functions section of your serverless.yml file will look like following. After deployment, you will get three endpoints</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/0*ZGyp2M7vl5_5lzX6" /></figure><p><strong>Creating more lambdas</strong></p><p>You can write above mentioned two lambdas in two separate files, or you can write all those functions in a single file. I’m going to update the handler.js file including above 2 lambdas. I am going to copy and paste the lambda function change its function name to “addUser”, and “getUser”. Change the message to “Adding user” and “Getting user” of addUser and getUser lambda functions respectively.</p><p>By deploying the project again new lambda functions will be deployed in the cloud and you could check those lambdas by invoking the endpoints.</p><p><strong>Adding DynamoDB</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/0*1QMem1W6TteUPYoJ" /></figure><p>In here we are going to add DynamoDB as a resource. Which means we have to update the serverless.yml file again. You can declare the dynamoDB with the properties as below in the serverless.yml with required permissions for operations needed to be done with dynamoDB.</p><p>And you have to update the lambda functions of addUser and getUser by adding PUT operation and GET operation of DynamoDB respectively. Your code should look like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/0*5LKl5TkeFU3FOwzd" /></figure><p>After deploying the functions you can call for the endpoints and perform add a user, get user operations. One other important thing is in the developing with the serverless framework is whenever you made a change in the code does not need to perform a full deployment where it updates lambda functions and as well as the cloud-formation stack. You can just deploy the function that you have made changes with the following terminal command</p><pre>sls deploy -f &lt;function_name&gt;</pre><p>So now you have a fully functional serverless rest APIs to perform multiple operations developed with Serverless framework. The complete source code for the example project can be cloned with the following URL.</p><pre><a href="https://github.com/AndunRanmal/Example-project-with-Serverless-Framework.git">https://github.com/AndunRanmal/Example-project-with-Serverless-Framework.git</a></pre><p><strong>How sigma Differ from Serverless</strong></p><p>Sigma is a serverless application developer tool; a cloud IDE, which helps you rapidly build, test and deploy serverless applications. There is no need to struggle with yml files in creating resources, events, assigning permissions or reading AWS docs for searching keywords and methods for different services. All of this comes to you with just a drag and drop. Following clip shows you, how easily you can add triggers and resource to your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*slFBFYFVFQjTbZJ4" /></figure><p>Managing resources isn’t the only advantage of sigma over Serverless framework, there are a lot more which we will be discussing on another article. Among them</p><ul><li>Online IDE, login and start coding your project</li><li>Monitoring capabilities over your project and lambda functions</li><li>Remote testing of your lambda functions in a more fashionable way</li><li>Efficient GUIs so you can build, deploy and test your code with just a click</li><li>Code less — Focus more on business logic than operations of resources</li><li>Sigma supports AWS, GCP while Serverless framework supports AWS, GCP, Azure, OpenWhisk, Kubeless, Spotinst, fn, Cloudflare</li><li>Supports only nodejs with Sigma and Serverless framework supports every language which backend services support</li></ul><p><strong>Creating a new project</strong></p><ul><li>The serverless framework supports projects created with other frameworks like ExpressJs while sigma is not</li><li>Both create a template of a project that could be deployable</li></ul><p><strong>AWS credentials profiles</strong></p><ul><li>Serverless can keep multiple AWS profiles with AWS credentials and deploy with the selected profile easily, while sigma can only keep one profile of AWS with credentials and user has to update that profile every time when the user wants to deploy it to another AWS environment</li></ul><p><strong>VCS</strong></p><ul><li>Version control with serverless can be done according to the users’ wish but in sigma, it is limited to bitbucket and GitHub with the git protocol</li><li>Also currently sigma does not support merging facilities and collaborate development for multiple developers</li></ul><p><strong>Adding resources and writing codes</strong></p><ul><li>Adding triggers or resources to the project could be done easily with Sigma with drag and drop option, while in Serverless framework it needed to be declared in a yml file with all the permissions required for the resource or the trigger</li><li>In Sigma, there are 2 options for writing codes for resources</li><li>Which user can drag and drop resource and autogenerate the code, and autogenerate required permissions for the resource</li><li>Or write the whole code in manually and setup permissions required manually for the used resources as required</li><li>In serverless code should be written in manually and permissions for the resources and required resources should be declared in yml file manually</li><li>GUI in sigma make things really easy, but in serverless, you have to remember every command to do make actions such as deploy, invoke, test, see logs</li><li>In the serverless framework, you can define several lambda functions in a single file, but with Sigma, only one lambda function can be declared in a single file</li></ul><p><strong>Monitoring</strong></p><ul><li>Sigma provided monitoring tools to monitor your projects, lambda functions against Invocations, Invocation time, throttles, errors, cost, memory usage, Serverless does not have this kind of facility on monitoring</li></ul><p><strong>Testing and Invoking Functions</strong></p><ul><li>Sigma comes with a builtin toolbox with HTTP client, SNS client and SQS client, so no need of 3rd party tools like the postman, Serverless does not have this kind of capability or a tool, So it needs other 3rd party tools</li><li>Testing sigma can be done without deploying functions every time you make changes in the code. There is a similar option with serverless framework also. In serverless framework it is done with invoking the function locally</li><li>Offline testing for APIs and dynamoDB is can be done with the serverless framework using several other dependencies, but in sigma offline testing is impossible</li></ul><p><strong>Deployment</strong></p><ul><li>Sigma has two kinds of deployments</li></ul><p>1. Full deployment</p><p>2. Quick deploy</p><ul><li>Likewise, Serverless framework has</li></ul><ol><li>Full deployment — deploy when functions, event or resource configurations have been updated</li></ol><p>2. Function deployment — only overwrite the zip file with AWS function much faster</p><ul><li>Sigma in default display the error if any deployment failed, in serverless, you need to deploy the project in verbose mode to know the full deployment details and error in deployment failures</li></ul><p><strong>API Gateway</strong></p><ul><li>In Sigma you can not declare advance settings for API Gateway such as authorizations, headers, API keys for the API gateway from sigma itself, but in Serverless framework you can declare advance options in yml file itself</li></ul><p><strong>Layers</strong></p><ul><li>In serverless, you can upload and use those layers, while sigma can use only the uploaded layers</li></ul><p>These both tools have some pros and cons when comparing with each other. So it&#39;s your decision with which tools you will be continuing with what features you really needed.</p><p>Adios Amigo🤠!!!</p><p><em>Originally published at</em><a href="https://arasmemento.wordpress.com/2019/02/19/take-your-baby-step-towards-serverless-architecture-with-serverless-and-sigma/"><em> arasmemento.wordpress.com</em></a><em> on February 19, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b049e0c31c59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Serverless Architecture: Learn it, Perfect it and Evolve with it]]></title>
            <link>https://medium.com/think-serverless/serverless-architecture-learn-it-perfect-it-and-evolve-with-it-5209e17467cd?source=rss-7a5ea2a7b8f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5209e17467cd</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[serverless-architecture]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[faa]]></category>
            <dc:creator><![CDATA[Andun Kannangara]]></dc:creator>
            <pubDate>Thu, 01 Nov 2018 09:11:17 GMT</pubDate>
            <atom:updated>2019-04-09T06:13:49.700Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DIpg-kS0ZbdJ9XxThTp4kw.jpeg" /></figure><h3>The Road to Serverless</h3><p>It would not be wrong if I tell you the next awakening step of cloud computing is serverless. The evolution to serverless architecture from physical servers has not been an easy journey. In early years software was installed in mainframe type server computers and used their own data stores. With the time these physical servers were replaced by the virtual machines where it became possible to make copies of an entire physical machine.</p><p>And the next big thing in this journey was containerization. With the uprise of containers developer needed not to worry about the operating system and environment. As a result, they could focus more on the software, application code and dependencies.</p><h3>Serverless, The New Buzzword</h3><p>With the new serverless architecture, you just need to focus on the applications’ business logic, and should not need to worry about any infrastructure needs. And this leads to many more advantages which we will discuss later in this article.<br> Serverless architecture, the new buzzword has been around for the past few years and now it has been a reality. The adaptation rate for this tech is slower than any other new technologies. But with the time number has been increased with the awareness of the benefits of serverless architecture.</p><p>The term, Serverless Architecture may be confusing. Someone may think we are building an application which runs completely on the client side or probably distributed within different clients, without any serverside operation.</p><p>But is that a reasonable definition for an application builds on serverless architecture. No… Cloud Architecture specialists define this in <a href="https://martinfowler.com/articles/serverless.html">another way</a>.</p><p><em>Serverless architectures are application designs that incorporate third-party “Backend as a Service” (BaaS) services, and/or that include custom code run in managed, ephemeral containers on a “Functions as a Service” (FaaS) platform.</em></p><p>As he explains more on serverless architecture, it denies the need of an always-on, pre-purchased compute capacity behind the application, unlike the traditional architecture. The containers which server-side logic has been written are stateless, and they are event triggered. With these facts its clear to us there is a server component in somewhere connected to these serverless applications.</p><p>There are many cloud vendors who provide these hosted services. And these companies have hugely invested in serverless. Amazon Web Services(AWS), Google Cloud Platform(GCP), Microsoft Azure, IBM OpenWhisk, Auth0 Webtask, Oracle Fn Project could be named as the giants in the serverless industry.</p><h3>FaaS &amp; BaaS</h3><p>Two main components of the serverless architecture are FaaS and BaaS. As in the definition of serverless architecture describes the part of applications that are fully or significantly incorporated third-party, cloud-hosted services that are capable of managing server-side logic and state is known as BaaS. For an example, the developer gets unified lean access to services like database services like firebase, authentication services like Auth0, AWS Cognito. As a benefit with these services, developers can bring <a href="https://www.techopedia.com/definition/16012/rich-client">rich client</a>, fully functional application to the market in a very short period of time.</p><p>For some scenarios in application development, the developer needs to declare logics that needs much more computational power, unlike authentication or data querying. And also if these logics are more complex and time-consuming, it will not fit in the client side as well. To fulfill this kind of requirement serverless has introduced FaaS. So the developer could write and upload the backend logic and well-defined interface to invoke the backend logic with certain inputs. These functions run in stateless compute containers which are event triggered. Once these functions are implemented and deployed, cloud providers take care of the rest, which is where to run it and scale it up necessarily.</p><p>One of the most popular FaaS in the present serverless universe is AWS Lambda. And there are many more. As serverless become more and more popular cloud providers have given the capability to write these functions in several languages like Node js, Python, Java, and .NET.</p><p>Some could think that FaaS is the same as Platform as a Service(PaaS). Well, although there are some similarities between these two, there is a huge concept difference. FaaS takes PaaS concept into a next level. One of the main difference between FaaS and PaaS is when an application deployed as PaaS, it typically runs on the server all the time, but in FaaS it provides the capability to deploy single function or a part of an application. And it won’t be running at all until the function needs to be executed.</p><h3>Pros &amp; Cons</h3><p>Serverless is not scary. There are many benefits when programmers develop with serverless architecture. As there is nothing perfect in this world, serverless is also has its own dark side. Although serverless has many pros than cons when getting into consideration.</p><p><strong>Pros of serverless</strong></p><ul><li>Scalable services — It is the ideal designing architecture for a scalable application. It automatically scales endlessly as it takes separate functions on your FaaS and runs them in separate containers</li><li>Billing per invocations — Not like in traditional architecture models you ain’t paying for constant server availability. You just pay for the number of invocation made to your lambda. Thus your cost depends on the traffic on your serverless application</li><li>Lower cost on human resource and hardware resource — As there is no much expensive hardware, no need of a human taskforce to maintain this hardware</li><li>Focus much more on user experience — As there are lots of serverside services are provided with serverless computing, hence the engineering team could more focus on user experience features</li><li>Fast delivery to market — Achieved by deploying smaller units of functions as features to end user</li></ul><p><strong>Cons of serverless</strong></p><ul><li>Vendor lock-in — It’s not easy to migrate from one vendor to another, or you aren’t independent in choosing the coding language.</li><li>Architectural complexity — Developer need to go through a learning curve and follow best practices to understand and develop flawless applications</li><li>Lack of operation tools — Developer depends on different third-party vendors for monitoring and debugging, and still difficult in debugging distributed system and requires a significant amount of relevant metrics to identify the root cause</li></ul><p><em>Originally published at </em><a href="https://slappforge.com/blog/serverless-architecture"><em>slappforge.com</em></a><em> on November 1, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5209e17467cd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/think-serverless/serverless-architecture-learn-it-perfect-it-and-evolve-with-it-5209e17467cd">Serverless Architecture: Learn it, Perfect it and Evolve with it</a> was originally published in <a href="https://medium.com/think-serverless">Think Serverless</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Common Web Application Architecture]]></title>
            <link>https://medium.com/@kannangarar1993/common-web-application-architecture-d9e33263c0b5?source=rss-7a5ea2a7b8f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9e33263c0b5</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-architecture]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Andun Kannangara]]></dc:creator>
            <pubDate>Thu, 25 May 2017 15:51:07 GMT</pubDate>
            <atom:updated>2019-01-22T18:34:17.287Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*janrq0b_94O4xfn2UkUGjg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/0*dYJAbt0bcEMI29yT" /><figcaption>common web application architecture</figcaption></figure><p>A web application is an application that a user can access through a web browser. The user creates HTTP request through the browser and request for resources to map for that url in web servers. Then the resource is rendered as an HTML page and give the response to the browser which the browser can display. The whole rendering/ process happens after getting an HTTP request processes in the server side of the web application. To explain this server side logic web application architectures are presented. These architectures consist of several numbers of layers. Generally, a common web application architecture consists of three layers as in the above diagram. Those layers named as the presentation layer, business layer, and data layer. As it is three layers this web server architecture is named as three-tire architecture.</p><p>The presentation layer is the layer which interacts with the user/browser and it contains with the functions which user interactions are managed. Generally, the presentation layer consists of UI and UI logical components to bridge with the business layer. Usually, these components are in both client-side and the server-side</p><p>Business layer consists of the core functionality of the system. It encapsulated the business logic on the system. Having this layer allows to centralize the business core functionalities and reuse them in several locations at different times. And also this makes the system easy to maintain and do the functional testing as well. Contains different components as logics, workflows and entities.</p><p>Data layer provides the data hosted within the system boundaries. Having different layer for data makes the application more easy to maintain and configure.</p><p>Having a service layer is a common approach to use services to expose the business functionalities of an application.</p><p>In the following sub topics, we’ll be discussed about the subcomponents of common web application architecture and technologies, tools, frameworks, and libraries regarding those components.</p><p><strong>Browser:</strong></p><p>The web browser is a software application which use to receive, transfer and present information in the World Wide Web. These information are found by the URL/URI. There are many types of browsers. Chrome, Firefox, Internet Explorer, Safari, Opera are the popular once. There are some advantages and disadvantages when using these browsers like google chrome uses your RAM in a large amount but, it is one of the fastest web browsers which supports almost all the hTML5 tags.</p><p>What actually browser does is, it renders the marked up content such as HTML and XML and formatting information such as css and xsl. A browser may wait until all the data get loaded to render or begin the rendering process before all data get loaded.</p><p><strong>Presentation layer:</strong></p><p>Includes two components as UI components and UI process components. The UI components deal with the client side while UI process components deal with the server side. The advantage of having a separate presentation layer is able to change the appearance of the content without changing any business logic or data.</p><p>Frameworks: MVC, Ionic, REST, Apache Struts, Bootstrap, Apache Tiles</p><p>Libraries: Ajax, Jquery, JqueryUI, Backbone.js</p><p>Technologies: HTML5, CSS3, Javascript, EcmaScript, AngularJS, ReactJS, JSON</p><p><strong>Business layer:</strong></p><p>Include several components as application facade, business workflows, business entities, and business components. Application facade is the component that is responsible for calling the domains modal and get information to the presentation layer. Also, it combines several business logic and provides an interface to connect those with the external user.</p><p>Business logic components define retrieval, processing, transformation and management data, business policies, and rules and ensure data validity and consistency. For the easiness of the usage, it is again divided into two components as business workflows and business entity. Business workflow components contact with the business process components and perform operations with the use of business logics. While business entity components encapsulate the business logics a7nd functions to represent to the external parties.</p><p>Frameworks: Meteor.JS, Express.JS, Codeigniter, Laravel, Spring MVC, Symfony, .NET, RubyOnRails, Django,</p><p>Libraries:</p><p>Technologies: NodeJS, PHP, Java, C++, C#, Python, Ruby</p><p><strong>Data layer:</strong></p><p>There are several components as data access components, data helpers/utilities and service agents. Data layer contains the necessary logics that wants to access the data. It designs the entity objects that data object can be populated to transfer data between layers of the application architecture and to update data objects. Data access components in the data layer centralized the common data access functionality and easy to maintain the system and to configure.</p><p>Service agents implement data access components that isolate functionalities to call from the application. This may also provide other services as caching, offline support.</p><p>Frameworks: ORM(Object Relation Mapping),</p><p>Libraries:</p><p>Technologies:</p><p><strong>Cross cutting:</strong></p><p>Many functionalities carried out by the application needs more than one layer. The crosscutting component implements specific kind of functionality to access those functionalities through one layer. Mainly there are three components as security, operational management, communication.</p><p>Security component performs the authentication, authorization and validation. While operational management includes exceptional handling policies, logging, performance counters and configuration. Communication component includes the components that communicated with other services and applications. Mainly this layer is to fulfil non-functional requirements.</p><p>Technologies: OAuth, OpenId, Grunt, Maven, LDAP</p><p><strong>Data Sources:</strong></p><p>Data sources are the database server, which provides database services like data manipulation to the web application.</p><p>Technologies: Mysql, MongoDB, SQLite, Oracle,</p><p><strong>Service Layer:</strong></p><p>When providing application functionalities through a service it is important to have a separate layer for services. Usually, there are two components include init. They are services interface and message types.This layer is connected to the web server externally. This layer increases the efficiency by maximizing the reusability and also by reducing the round trip time.</p><p><em>Originally published at </em><a href="https://arasmemento.wordpress.com/2017/05/25/380/"><em>arasmemento.wordpress.com</em></a><em> on May 25, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9e33263c0b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The road to Web 4.0]]></title>
            <link>https://medium.com/@kannangarar1993/the-road-to-web-4-0-364a1d184c7?source=rss-7a5ea2a7b8f8------2</link>
            <guid isPermaLink="false">https://medium.com/p/364a1d184c7</guid>
            <category><![CDATA[web]]></category>
            <category><![CDATA[web4-0]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Andun Kannangara]]></dc:creator>
            <pubDate>Sat, 01 Apr 2017 13:49:50 GMT</pubDate>
            <atom:updated>2019-01-22T18:24:31.809Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*mPLZU0xT0vKxpOnRVGPXMw.jpeg" /></figure><p>Before to continue about what is web 4.0 it’s great to look back how it was earlier. As the topic says the <strong>road to </strong>before web 4.0 there were web 1.0, web 2.0 and currently, we are using the web 3.0.</p><p>Sir Tim Berners-lee invented the web in 1989. By October in 1990, he had written the fundamental technologies that we use today in web browsers. They are HTTP, HTML and URI. The beginning version of the web as you all know is web 1.0.</p><p>Web 1.0 was just websites with only readable data, there were no interactions between the user and the websites. They were just informative static web pages.</p><p>Then the web 2.0 came to the world and it changed the user interaction with the web site in a whole other way. With the technologies came in with web 2.0 websites and web-based applications became more dynamic and interconnected with internet users. Some refer web 2.0 as a series of technology improvement than another version of the web.</p><p>Many people from the industry agreed that web 2.0 focused more on themes like Ajax, social networking, lightweight collaboration, social bookmarking, and media sharing. It wasn’t the final evolution of evolving. People needed more and more. So around 2010 the next turn over of the web happen in the industry. The web 3.0 came into the role by becoming more and more intelligent, and the magic came to live.</p><p>In the present, we are living in the era of web 3.0, But the real question is do we get the real benefit of it. First, let&#39;s see the themes or specialized areas in web 3.0. As the web becomes more intelligent the specialized areas were into the depth. Semantic web, data mining, microformats, natural language search, machine learning, recommendation agents, and artificial intelligence technologies are the things that make web 3.0 an intelligent web. And also these technologies have made the Internet of Things (IoT) a reality. Its another key feature of web 3.0</p><p>Some of these techies may not be heard by you, like semantic web and microformats. In briefly semantic web can be called as an extension of web standard by the W3C (World Wide Web Consortium). It provides a common framework that allows data to be shared among various applications, enterprises and communities. Its all about the integration of various types of data. And microformats is a world wide web approach for a semantic web. What it do is, it automate some processes in the semantic web. The following figure shows how complex semantic data is. And how does it integrate the various type of data?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/0*JW9iJb-_cQ_VXew3" /></figure><p>Scientists assume that until 2020 there won’t be the next turn over which is web 4.0. There will be increments in the current technologies and be able to access them in full capabilities.</p><p>And finally about web 4.0. What it will be in 2020. Various opinions by various people. Among those Danial Burrus determine that web 4.0 will be an “Ultra intelligent electronic agent. ” And he says you can give a personality to your agent. If you have watched person of interest that the agent Burrus was talking about. With every camera connected to the web, the agent will recognize you and talk to you. And this technology connects all the devices in the real and virtual world.</p><p>As a summary, we can say that web 1.0 was crawling era of web and 2.0 as a walk and 3.0 as the run. And what will be the web 4.0 it is for you to think about.</p><p>This video shows how Daniel Burrus talk about the web in Ted talks that will also give a clear idea about the evolution and what web 4.0 really is.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FOM6XIICm_qo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DOM6XIICm_qo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FOM6XIICm_qo%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/029904dfbd2cd0f619e2cbe5957e7c52/href">https://medium.com/media/029904dfbd2cd0f619e2cbe5957e7c52/href</a></iframe><p>See you in the next article… Thanks for reading</p><p><em>Originally published at </em><a href="https://arasmemento.wordpress.com/2017/04/01/road-to-web-4-0/"><em>arasmemento.wordpress.com</em></a><em> on April 1, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=364a1d184c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>