Sign in

Tech Writer | Software Developer

How to Choose Between Cookies and Tokens in Web Authentication.

With the increasing number of threats, the stability of the authentication mechanism has become vital for all applications. However, choosing one isn’t easy since there are many methods with different capabilities.

So, in this article, I will discuss the features, pros, cons and compare token-based authentication vs. cookie-based authentication to help you decide the best approach for your project.

Cookie-Based Authentication

Authentication is the process of exchanging user credentials for a piece of unique identification.

In cookie-based authentication, this unique identifier (cookie) is created on the server-side and sent to the browser.

When you log in to a web application, your browser…

How to Use AWS IAM Users, Policies & Multi-Factor Authentication Correctly.

IAM is the Identity and Access Management service provided by AWS. It provides you with a variety of options to manage users and secure your account.

But, most developers do not get the maximum out of it since they are not aware of all the features of IAM.

So, In this article, I will discuss how to use IAM groups, policies, permissions, and multi-factor authentication to secure your account.

IAM Users, User Groups, and Policies

In AWS, there are 2 types of users. The first user type is the Root User, and this user account is automatically created when you create an AWS account.

Root user…

Optimize Your Application with Amazon RDS Proxy

With modern web applications, managing database connections have become a challenging task for developers. Especially when it comes to serverless and Lambda functions, we should be careful not to overwhelm database instances.

So, in this article, I will discuss how we can use AWS RDS Proxy, a fully managed, highly available database proxy provided by AWS to manage AWS relational databases.

Why Do We Need RDS Proxy?

Before getting into details about RDS Proxy, let’s see why we need such services.

If we consider a traditional web application, it has a limited number of database connections, and they share connections among multiple requests. …

Using Lambda Pings and Provision Concurrency to prevent Cold Start.

AWS Lambda is one of the most used AWS services around the world. Its automatic scaling behavior and cost-effective on-demand invoking mechanism have made it even more popular.

However, Lambda functions take significant time to get started initially, and this directly impacts application performance.

This behavior is known as cold starts, and in this article, I will discuss 2 methods to overcome this problem, and you can choose one based on your requirements and cost.

1. Using Lambda Ping

The first method to prevent cold-starts is using a CloudWatch event rule and scheduled event to ping the Lambda function regularly.

How JavaScript Achieved C++ Performance

Today, JavaScript has become one of the most used languages for web development. However, it has to pass so many hurdles to climb up to this stage. One such milestone is behind its execution speed, where it achieved similar performance to languages like C++.

None of these is possible without the invention of the V8 JavaScript Engine.

So, in this article, I will discuss the technology behind these performance gains, and what’s you should know about to write better-performing code.

What is V8 & How It Works

V8 is an open-source JavaScript engine introduced by Google. It is written in C++ and supports Google Chrome, Chromium web…

4 Factors to Consider When Selecting an AWS Region

Today, AWS has become the most used cloud service provider among developers. Although there are many reasons behind that, its global infrastructure is the most prominent reason for this success.

Currently, AWS services are available in 25 different regions with 80+ availability zones and 200+ edge locations.

So, in this article, I will discuss the global infrastructure of AWS and what we should consider when selecting an AWS region.

How to select the best AWS Region for you?

How AWS SQS Makes Request Handling Easy

Amazon Simple Queue Service (SQS) is a fully managed message queueing service that allows you to decouple your applications. It helps you improve your applications’ performance and user experience by allowing you to communicate asynchronously between client and server.

So, in this article, I will discuss how AWS SQS changes the traditional request handling process and guide you through the steps to create a simple queue.

Why We Need a Service like SQS?

If we consider a normal request handling process of a web application, we can divide it into 3 parts.

Learn when and when not to use the arrow function

Today, there are two common methods of declaring a function in JavaScript: Arrow functions and Regular functions. On most occasions, we use both these functions without considering their suitability or differences.

However, these functions differ in many significant ways, and we can’t replace one with another.

So in this article, I will explore 5 of these key differences in detail.

1. “this” Keyword

this keyword is one of the most used keywords in JavaScript. But when it comes to regular functions and arrow functions, it behaves in entirely different ways.

In regular function, this changes according to the way that function is invoked.

5 Step Guide to Maintaining your Development, Test, and Production Environments Separately.

It is always a good practice to maintain separate environments for development, testing, and production as a developer. This allows you to identify the issues in your products before releasing and increasing your product's reliability.

But it is not an easy task, it requires separate builds and deployments which takes significant time and effort.

So, this article will show you how you can build and deploy your application to all environments within few minutes using AWS AMplify.

Why Amplify?

AWS Amplify provides you a collection of tools and products to optimize your web and mobile development experience.

It allows to develop, build…

How to Share Your S3 Bucket Data Securely.

AWS S3 buckets are one of the most used storage services in the world. Developers use it to upload images, audio, and various files and use them in their web applications.

Most developers make these bucket contents publicly available by using a bucket policy. However, this approach is not recommended by AWS due to security reasons.

So, how can we securely share the content with others who don't have access to our S3 buckets?

S3 pre-signed URLs are the most recommended way to share your S3 bucket contents, and this article will discuss all the things you need to know…

Chameera Dulanga

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store