Posty

Wyświetlanie postów z grudzień, 2019

Monolithic application vs microservice

1. Monolithic application - consist of components that are all tighly coupled togheter and have to be developed, deployed, and managed as one entity, because they all run as a single Os process. -changes to one part of the applicsation require a redeployment of the whole application, and over time the lack of hard boundries beetwen the parts results in the increase of complexity and consequential deteriotation of the quaility of the whole system because of the unconstrained growth

Web Service

1. W3C Definition Software system designed to support inter operable machine-to-machine interaction over a network 2. 3 Keys - Designed for machine-to-machine (or application-to-application) interaction - Should be inter operable - not platform dependent - Should allow communication over a network 3.Communication between applications Application -[ Request ]-> WebService WebService -[ Respons ]-> Application A Service Provider or Server Service Consumer or Client Service Definition Transport -> HTTP and MQ 4. Request and Response Formats /Message Exchange Format: a) XML <getCourseDetailsRequest>     <id>Course1</id> </getCourseDetailsRequest> b) JSON [   {     "id": 1,     "name": "Even",     "birthDate": "2017-07-10T07:52:48.270+0000"   },   {     "id": 2,     "name": "Abe",     "birthDate": "2017-07-10T07:52:48.270+00...

TravisCI

1. a) Tell Travis we need a copy of Docker running b) Build our image using Dockerfile.dev c) Tell Travis how to run our test suite d) Tell Travis hhow to deploy our code to AWS 2. travis.yml language: generic sudo: required service:   - docker before_install:   - docker build -t name/repository -f Dockerfile . script:   - docker run -e CI=true USERNAME/docker-react npm run test # - docker run name/repository npm run test -- --coverage deploy:   edge: true #it is forcing Travis to use v2 of the dpl script   provider: elasticbeanstalk   region: "us-west-2"   app: "docker"   env: "Docker-env"   bucket_name: "elasticbeanstalk-us-west-2"   bucket_path: "docker"   on:     branch: master   access_key_id: $AWS_ACCESS_KEY   secret_access_key:     secure: "$AWS_SECRET_KEY" 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19.

DNS troubleshooting

sudo apt install bind9-host host -t NS kubernetes.demo.aka host -t NS demo.aka whois demo.aka To add your domain registered outside of AWS to AWS you have to create hostezone in Route53. And check if values are correct for ezample using above commands.

Kubernetes Certificate CKA

1. Certificate information https://github.com/cncf/curriculum https://github.com/nikovirtala/Certified-Kubernetes-Administrator-CKA Certified Kubernetes Administrator: https://ww.cncf.io/certification/ck Exam Cirriculum (Topics): https://github/cncf/curriculum Candidate Handbook: https://www.cncf.io/certifcation/candidate-handbook Exam Tips: http://traning.linuxfaoundation.org/go//Important-Tips-CKA-CKAD User the code -DEVOPS15 - whilt registering for the CKA or CKAD exams at Linux Foundation to get a 15% discount. 2. Books 3. 6 clusters Up and Runnig  25/201 100% theory 24 tasks 74% to pass 4. Cost 300$ - for exam and +1 retake in 12 months 5. Time 3h 6. Test tips a) - As you might have seen already, it is a bit difficult to create and edit YAML files. Especially in the CLI. During the exam, you might find it difficult to copy and paste YAML files from browser to terminal. Using the  kubectl run   command can help in genera...

Spring Boot

1. Spring Boot Config Server and Bus 2. Load Balancing with Ribbon and Feign 3. Implement Naming Server with Eureka 4. Implementing API Gateway with Zuul 5. Distributed Trancing with Zipkin 6. Fault Tolerance with Hystrix 7. Spring Boot a) Goals and Feature Overview b) World Before Spring Boot c) Magic of Spring Initializr d) Simple REST Controller e) Spring Boot Auto Configuration f) vs Spring & Spring MVC g) Introduction to Starter Projects h) 10 Starter Project Examples i) Spring Boot Actuator j) Spring Boot Developer Tools 100. Source a)  https://github.com/in28minutes/spring-microservices