Amazon Web Service

CloudFront

To serve your static or dynamic content world wide with low latency then you can use CloudFront. It is a web service that allows user to serve static or dynamic web content using world wide network of edge locations. When a user request CloudFront content,then that content is served from nearest edge location. If the content is not present in edge location then it will retrieve content from a source for the current version of the content. Source can be S3 bucket or a http server.


Once your cloudfront is configured to deliver your content. Let's explore working of cloudfront.

One or more object can be requested by a user while accessing your website or application. Object can be image file or HTML file.


Now DNS comes into picture. DNS will route the traffic to the nearest edge location based on the latency.


CloudFront will check if the requested file is present in the edge location cache or not. If the file is present, it will server the request of the user. If the file is not present in the cache then it will do the following task:


  • CloudFront will compare the request with the specification in your distribution and request to the origin server for the content.
  • Origin server send files back to the edge location.
  • After getting first byte from origin server, CloudFront start sending file to the user.

You can perform live streaming using CloudFront. CloudFront supports three types of live streaming.

  • Live Streaming
  • On-Demand Streaming
  • RTMP Streaming
Next

Must Read Article

How To Launch EC2 Machine

How To Launch EC2 Machine

In this article we are going to learn how to launch a EC2 instance. For this you need to have AWS account.

How to install WordPress on ec2 machine

How to install WordPress on ec2 machine

Before you start installing WordPress on ec2 machine. You must log in into the machine.

How to create a VM instance in Azure

How to create a VM instance in Azure

In this Tutorial we are going to launch a Virtual Machine in azure.

How to install WordPress on VM instance in Azure

How to install WordPress on VM instance in Azure

Before you start installing WordPress on VM instance on Azure. You must log in into the machine. You can launch a VM Instance in Azure using this tutorial. After launch of machine log in into the machine using SSH. If you do not know how to SSH in VM instance you can follow this tutorial.

How to launch a VM instances in Google Cloud

How to launch a VM instances in Google Cloud

In this tutorial we are going to launch a Compute Egine instance.

How to install wordpress in VM instances in Google Cloud

How to install WordPress on VM instance in Google Cloud

Before you start installing WordPress on VM instance on Google Cloud. You must log in into the machine. You can launch a VM Instance on Google Cloud using this tutorial. After launch of machine log in into the machine using SSH. If you do not know how to SSH in VM instance you can follow this tutorial.

How To Launch EC2 Machine

How To Launch EC2 Machine

In this article we are going to learn how to launch a EC2 instance. For this you need to have AWS account.

How to install WordPress on ec2 machine

How to install WordPress on ec2 machine

Before you start installing WordPress on ec2 machine. You must log in into the machine.

How to create a VM instance in Azure

How to create a VM instance in Azure

In this Tutorial we are going to launch a Virtual Machine in azure.

How to install WordPress on VM instance in Azure

How to install WordPress on VM instance in Azure

Before you start installing WordPress on VM instance on Azure. You must log in into the machine. You can launch a VM Instance in Azure using this tutorial. After launch of machine log in into the machine using SSH. If you do not know how to SSH in VM instance you can follow this tutorial.

How to launch a VM instances in Google Cloud

How to launch a VM instances in Google Cloud

In this tutorial we are going to launch a Compute Egine instance.

How to install wordpress in VM instances in Google Cloud

How to install WordPress on VM instance in Google Cloud

Before you start installing WordPress on VM instance on Google Cloud. You must log in into the machine. You can launch a VM Instance on Google Cloud using this tutorial. After launch of machine log in into the machine using SSH. If you do not know how to SSH in VM instance you can follow this tutorial.