Explain Amazon Cloudfront

 

  • Amazon cloudfront offers a simple cost effective way to improve the performance, reliability and global reach of your entire website for static content, the dynamic portions of your site that changes for each end user and both live and on demand streaming.
  • With amazon cloudfront we store the original versions of our files on one or more origin servers and then create an amazon cloudfront distribution, which references that location of original files.
  • Amazon cloudfront delivers our content through a worldwide network of data centers called edge locations. When a user requests content that you are serving with Amazon Cloudfront the user is routed to the edge location that provides the lowest time delay, so that content is delivered with best performance.
  • Amazon Cloudfront works seamlessly with static content and dynamic web applications running in AWS origins such as amzon ec2, elastic load balancing or amazon s3 or your origin running outside of AWS without any custom coding or proprietary configuration.
  • It also provides optional detailed control over who is able to download our files to help ensure information is accessed by only authorized persons.
  • We can also make use of monitoring and alarms via Amazon cloudwatch to keep an eye on Amazon cloudfront distribution for any problems.
  • This can be useful for  business and application developers who need an easy and cost effective  way to distribute content with low latency and high data transfer speeds.

Explain about Amazon Virtual Private Cloud?

Amazon Virtual Private Cloud(VPC) gives you the ability to create a logically isolated network in the AWS cloud from which we can launch resources such as EC2 based on the configuration .A VPC gives complete control over our virtual network starting with defining subnets, the IP addressing scheme,configuring routing tables and network gateways.

Its similar to data center (or) corporate network and by extending our corporate or home network we can create a hybrid cloud where we can launch resources in VPC and in corporate /home network.

Benefits:

  1. Variety of options to address the needs of business and applications such as public and private subnets connecting to our data center, vpc peering, vpn connections or just connecting to internet.
  2. It provides us an ability to define our own custom subnet and IP addressing scheme, control routing through use of custom routing tables and also able to assign multiple IP addresses to our instances.
  3. Amazon VPC provides advanced security features such as security groups, network access control lists to enable inbound and outbound filtering at the instance level and subnet level.
  4. Single tenant hardware.
  5. Scalable and reliable: It has all the same benefits as the rest of AWS platform like we can instantly scale resources up or down.

What is Lazy Loading?

Lazy loading loads data into cache only when necessary. Write through adds data or updates data in the cache whenever data is written to the database.Lazy loading allows for stale data ,but wont fail with empty nodes and may populate the cache with superfluous data, a problem referred to as “cache churn” .

Adding a time to live (TTL) value to each write allows us to enjoy the advantages of each strategy and avoid cluttering up the cache with superfluous data. Unrelated to these issues is consistent hashing, which is technique used to partition data keys between nodes in cluster.