Tuesday, November 19, 2019

AWS Solutions Architect Associate Concepts- Networking & Content Delivery


Networking & Content Delivery

  • CloudFront
    • Edge location
    • Origin
    • Distribution
      • Web
      • RTMP
    • Objects are cashed for life TTL (Time to Live)
    • Edge locations are not read-only
    • There is a cost associated with cleanup the cache

AWS Solutions Architect Associate Concepts, S3


  • Storage
    • S3 - Simple Storage Service
      • S3 is object bases storage to upload files (0-5TB file size)
      • It is unlimited storage
      • In S3 files are stored in globally unique buckets 
      • It is a storage service so not suitable for any sort of installation e.g Operating System.
      • Turn on MFA Delete - Multi-factor Delete used to avoid accidental deletion of files/ object from S3
      • S3 Fundamental
        • ID, Value, Version, Metadata
        • Sub-resources
          • Access control list
          • Torrent
      • Read after write consistency
      • Eventual Consistency
      • S3 Classes/Tiers
        • S3 Standard
        • S3 - IA (Infrequent Access) - Charge on the basis of access
        • S3 One Zone - IA
        • S3 Intelligent Tiering
        • S3 Glacier (Retrieval Time: Minutes to Hours)
        • S3 Glacier Deep Archive ( Retrieval Time: 12 Hours)
      • https://aws.amazon.com/s3/faqs/
    • S3 Encryptions
      • Encryption in Transit (SSL/TSL)
      • Encryption at Rest / Server-Side Encryption
        • SSE-S3
        • SSE-KMS
        • SSR-C
      • Client-Side Encryption
    • S3 Version
      • Stores all version of an object
      • Versioning can be suspended not disable after enabling it
      • MFA Delete can be an extra protection layer for object deletion
    • S3 Life Cycle Management
    • S3 Cross-Region Replication
    • S3 Transfer Accelerator 
    • Storage Gateway
      • File Gateway
      • Volume Gateway
        • Stored Volumes
        • Cached Volumes
      • Gateway Virtual Tape Library

Saturday, November 16, 2019

AWS Solutions Architect Associate - Concepts


  • Security, Identity, and Compliance
    • IAM Service - Identity Access Management Service
      • Users
      • Groups
      • Policies
      • Roles
      • MFA - Multi-Factor Authentication
      • Google Authentication
      • Root user
  • Management and Governance
    • Cloud Watch
      • Billing Alarm

Friday, February 19, 2016

AngularJS Services

The service is a javascript object or a function available to the application. We can use services to wrap the common functionality for the application.

There are my built-in services in Angular JS like $http, $interval, $location etc.

We can define our own services depending on requirements.

<body>

      <div ng-app="myApp" ng-controller="myCtrl">
      
             <p>Result : {{result}}</p>

        </div>

<script>
    
       var app = angular.module('myApp', []);

        app.service('myCalc', function() {

        this.multiply = function (x,y) {
        return x*y;
        }
        this.add = function (x,y) {
        return x+y;
        }

});

app.controller('myCtrl', function($scope, myCalc) {
    $scope.result=  myCalc.add(5,4);
});

</script>

</body>

AngularJS Filters ( | )

Filters are used to transform the data in desired formats. Angular provides many builtin filters (json, orderby, uppercase,currency,date and filter etc.) and we can define our own filters as well depending on requirements.

Filters can be used to an expression by using '|' followed by the filter.

<body>

<div ng-app="myApp" ng-controller="formatCtrl">
Amount : {{ amount | currency }}
</div>

<script>
var app = angular.module('myApp', []);
app.controller('formatCtrl', function($scope) {
    $scope.amount = 14523.2;
});
</script>

</body>

AngularJS Scope ($scope)

Scope is bridge between Html(View) and controller in Angular JS applications. It is a java script object holding properties and method for view and controller.

The scoped defined at application level is called $rootScope and is available in entire application.

If we two variable with same names in root scope and current scope then current scope variable will get precedence.

<!DOCTYPE html>
<html>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>

<body ng-app="myApp">

RootScope : {{myVar}}

<div ng-controller="myCtrl">

Controller Scope : {{myVar}}

</div>

<script>

var app = angular.module('myApp', []);
app.run(function($rootScope) {
    $rootScope.myVar = 'In Root Scope';
});
app.controller('myCtrl', function($scope) {
    $scope.myVar = "In current contrller scope";
});

</script>

</body>
</html>



Thursday, February 18, 2016

AngularJS Controllers (ng-controller)

It controls the application data. It is a regular javascript object created by object constructor.
It wraps up all logic for UI manipulation and is a bridge between client side and server side/third party API's etc.

It stores the application data and performs operations on it depending on requirements.

<div ng-app="myApp" ng-controller="myController">
First Name: <input type="text" ng-model="firstName"><br>
Last Name: <input type="text" ng-model="lastName"><br>
<br>
Full Name: {{fullName()}}
</div>

<script>
var app = angular.module('myApp', []);
app.controller('myController', function($scope) {
    $scope.firstName = "";
    $scope.lastName = "";
    $scope.fullName = function() {
        return $scope.firstName + " " + $scope.lastName;
    };
});
</script>