Skip to content

Instantly share code, notes, and snippets.

View dungvtdev's full-sized avatar

dungvt.dev dungvtdev

View GitHub Profile
@dungvtdev
dungvtdev / gist:1683256e002d98085a34bb1742c005fb
Created August 27, 2016 04:52
my sublime text 3 user preferences setting
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"caret_extra_bottom": -1,
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Tomorrow.tmTheme",
"fade_fold_buttons": false,
"font_face": "DejaVu Sans Mono",
"font_size": 10,
"highlight_line": true,
"ignored_packages":
https://www.atlassian.com/git/tutorials/setting-up-a-repository/
https://drive.google.com/drive/folders/0BzA1fe_eXsfrfnVLZUxsR1UtcDVNNXBvUGY1b2dQcXFhT0oyU3BHV2hrS1Z5TU5xZTRqNjQ
https://speakerdeck.com/andypham/infrastructure-as-code-at-vccorp
https://github.com/cloudcomputinghust
http://www.slideshare.net/HanoiItlc/itlc-hn-14-bizweb-microservices-architecture
http://kipalog.com/posts/Gioi-thieu-ve-Microservices--Phan-3--Nhung-uu-nhuoc-diem-cua-Microservices
http://docs.openstack.org/developer/openstack-projects.html
https://github.com/hocchudong?page=1
http://developer.openstack.org/api-ref/networking/v2/index.html
https://github.com/vdcit/Tao-image/blob/master/README.md
LinuxFoundationX's LFS101x
https://courses.edx.org/courses/course-v1:LinuxFoundationX+LFS101x+1T2016/info
# PYTHON
Cookiecutter
https://drive.google.com/folderview?id=0B3cNTBzY2Yw1RXlQOHBybzBhX0E&usp=sharing_eid&ts=57c58e31

Stateless và Stateful là gì?

Trong lập trình mạng, chúng ta có tương tác client (máy khách) với server (máy chủ). Phần mềm gồm 2 thành phần chính: phần mềm hoặc cài đặt (implementation) và data (dữ liệu), implementation là tập lệnh được viết ra đề xử lý data. Như vậy, một phần mềm được thiết kế theo tương tác client – server thì phần nhiều tập lệnh sẽ nằm phía server. Client có nhiệm vụ gửi dữ liệu lên để xử lý sau đó nhận kết quả trả về.

Stateless là design không lưu dữ liệu của client trên server. Có nghĩa là sau khi client gửi dữ liệu lên server, server thực thi xong, trả kết quả thì “quan hệ” giữa client và server bị “cắt đứt” - server không lưu bất cứ dữ liệu gì của client.

Stateful là một design ngược với stateless, server cần lưu dữ liệu của client, điều đó đồng nghĩa với việc ràng buộc giữa client và server vẫn được giữ sau mỗi request (yêu cầu) của client. Data được lưu lại phía server có thể làm đầu vào (input parameters) cho lần kế tiếp, hoặc là dữ kiện dùng trong quá trình xử lý h

@dungvtdev
dungvtdev / CAP.md
Last active January 13, 2021 09:33
CAP Theorem distributed system.

CAP Theorem: Revisited

Written by Robert Greiner on August 14, 2014

The CAP Theorem states that, in a distributed system (a collection of interconnected nodes that share data.), you can only have two out of the following three guarantees across a write/read pair: Consistency, Availability, and Partition Tolerance - one of them must be sacrificed. However, as you will see below, you don’t have as many options here as you might think.

Consistency - A read is guaranteed to return the most recent write for a given client. Availability - A non-failing node will return a reasonable response within a reasonable amount of time (no error or timeout). Partition Tolerance - The system will continue to function when network partitions occur.

Remove kvm module
sudo rmmod kvm_intel kvm
sudo rm -rf /lib/modules/$(uname -r)/kernel/arch/x86/kvm