Tuesday, July 16, 2019

Maintaining High Availability with Auto Scaling (for Linux)

// Info ElasticLoadBalancer, qls-95965-ElasticL-EIJLTRMF6WHF AMIId, ami-f0091d91 KeyName, qwikLABS-L251-959650 AvailabilityZone, us-west-2a SecurityGroup, qls-959650-9e4e0af87f9270ec-Ec2SecurityGroup-1FLS2W4COXMWO // Bootstrap #!/bin/sh yum -y install httpd php mysql php-mysql chkconfig httpd on /etc/init.d/httpd start cd /tmp wget http://us-east-1-aws-training.s3.amazonaws.com/self-paced-lab-4/examplefiles-as.zip unzip examplefiles-as.zip mv examplefiles-as/* /var/www/html // CLI aws configure aws...

Using AutoMapper

Eventually, in any application, a developer will need to translate data from one object type to another. Common examples include DTOs (Data Transfer Objects),...

Protected: Search for string in log file

grep -rnw log_pushService_1469597086249.log -e '57e203aa6891e2675b06e007' grep --after-context=5 --before-context=10 '57e203aa6891e2675b06e007' log_pushService_1469597086249.log grep --after-context=5 --before-context=10 '57e203aa6891e2675b06e007' log_pushService_1469597086249.log | less grep --after-context=5 --before-context=10 '57e203aa6891e2675b06e007' log_pushService_1469597086249.log | less Sender Log: {"index":"alleged-drum","level":"info","message":"registrations: 1401","timestamp":"2016-10-16T05:39:11.820Z"} {"index":"alleged-drum","level":"info","message":"receivePushSQS deleteMessage...

MongoDB CRUD

Mogo Shell For more documentation of basic MongoDB operations in the mongo shell, see: Getting Started Guide Insert Documents Query Documents Update Documents Delete Documents mongo Shell Methods 1. Query method For the...

WEB API Architecture and Design

Things to consider before creating Web API Naming Convention: Noun or Verb Versioning: Securing Web API HyperMedia

Replica set trong MongoDB

Replica set là một hệ replication trong MongoDB. Tập data sẽ được nhân bản trên nhiều server thay vì tập trung trên một single...

Protected: Blue/Green Deployment Pattern with AWS Elastic Beanstalk

Sample code: Using EB CLI to manage application deployment process http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html Rolling update: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-autoscalingupdatepolicyrollingupdate  

NodeJS Error Handling

From StackOverFlow:  From NodeJS Document:   JavaScript language: Dynamic language, một biến có thể nhận giá trị các kiểu khác nhau ngay cả khi đã khởi tạo....

Dot .net core deployement

https://forums.iis.net/t/1195860.aspx?+change+net+framework+version+in+IIS http://docs.aws.amazon.com/ko_kr/elasticbeanstalk/latest/dg/customize-containers-windows-ec2.html https://github.com/aspnet/DataProtection/blob/dev/Provision-AutoGenKeys.ps1 http://docs.aws.amazon.com/toolkit-for-visual-studio/latest/user-guide/deployment-beanstalk-custom-netcore.html Deploying an ASP.NET Core Application with AWS Elastic Beanstalk http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/dotnet-core-tutorial.html#dotnet-core-tutorial-deploy HOWTO Build an ASP.NET CORE Web App on AWS Running Linux with DynamoDB – Part 4 http://blogs.catapultsystems.com/khayes/archive/2016/12/30/howto-build-an-asp-net-core-web-app-on-aws-running-linux-with-dynamodb-part-4/ Migration...

Protected: Introduction to Amazon DynamoDB

Programming with .NET