Microservices không nên chia sẻ code hoặc data. Tránh sự phụ thuộc lẫn nhau giữa các services và software component Độc lập và tự trị là thứ quan trọng hơn tính sử dụng lại Không nên để lỗi làm ảnh hưởng tới toàn bộ hệ thống Mỗi microservices là một chức năng riêng Không được kết nối trực tiếp với nhau mà phải thông qua message bus Lợi ích của Microservices Tăng tính module và dễ dàng phát triển…
Keep Reading →
Latest stories
Lệnh kubectl run kubectl run first-deployment --image=nginx kubectl get pods kubectl exec -it first-deployment-774f957bb7-52b24 -- /bin/bash echo Hello nginx! > /usr/share/nginx/html/index.html apt-get update apt-get install curl curl localhost Kết quả: Lệnh kubectl create -f kubectl get pods nano declarative-pod.yaml kubectl create -f declarative-pod.yaml (copy the pod name from get pods) kubectl…
Keep Reading →
Mỗi vài khái niệm cần biết trước khi tìm hiểu về K8S Container A container image is a lightweight, stand-alone,
executable package of a piece of software that
includes everything needed to run it: code,
runtime, system tools, system libraries, settings. Docker Docker is a tool that can package an
application and its dependencies in a virtual
container that can run on any Linux server…
Keep Reading →
Zookeeper là gì ? Zookeeper là một dịch vụ (một server) tập trung cho việc duy trì thông tin cấu hình, đặt tên, cung cấp sự đồng bộ phân tán, cung cấp dịch vụ nhóm. Trách nhiệm của Zookeeper trong Kafka Đăng ký tiến trình Duy trì một danh sách topics cùng nhau Thực hiện nắm quyền điều hành trong trường hợp tiến trình bị ngắt Lưu trữ Kafka cluster id Store ACLs (Access Control Lists) nếu bảo mật…
Keep Reading →
ClusterIP ClusterIP (the default type) exposes the port only inside the cluster. Such a port would not be accessible from anywhere outside. ClusterIP is useful when we want to enable communication between Pods and still prevent any external access. Why Use Ingress Objects? Ingress objects manage external access to the applications running inside a Kubernetes cluster. The Volumes We can describe…
Keep Reading →
What is Kubernetes? Kubernetes was first developed by a team at Google. It is based on their experience from running containers at scale for years. Later on, it was donated to Cloud Native Computing Foundation (CNCF). It is a true open source project with probably the highest velocity in history. Why Kubernetes? We can use it to deploy our services, to roll out new releases without downtime, and…
Keep Reading →
What is Docker ? Docker Container is a standardized unit which can be created on the fly to deploy a particular application or environment. It could be an Ubuntu container, CentOs container, etc. to full-fill the requirement from an operating system point of view. Also, it could be an application oriented container like CakePHP container or a Tomcat-Ubuntu container etc. Solves Dependency…
Keep Reading →
What is Auto Scaling ? When instance meet a condition. Instance will automatically increase or decrease resource for responsible keep application working stable. What is IAM Roles ? An IAM role is an IAM identity that you can create in your account that has specific permissions. Elastic Load Blancing Concepts A load balancer accepts incoming traffic from clients and routes requests to its…
Keep Reading →
Overview Elastic Compute Cloud (EC2) is a service help a user create a virtual machine in Cloud. Some people call that by VPS. AWS Free Tier provides 720 hours run t2.micro to run Windows or Linux operation system instance. Terms AMI: Amazon Machine Images (AMI) is a snapshot of the operating system. We use AMI to create an instance. One AMI can have many instances. EBS: Amazon Elastic Block Store…
Keep Reading →
In this series, I will mainly learn about AWS services. An article is expected to be written daily about an AWS computing service. I will write in English for improve my writing skill. Hope you will follow your posts regularly. The knowledge I gathered from the Udemy courses and articles to synthesize into a perfect article for those who just started AWS like me. The goal will be to help you…
Keep Reading →