Trần Huy

Trần Huy

Build a system for global scale: basic theory

If you are trying to build a system and try to scale it globally, sell your product all over the world, you will need a collection of rules that are implemented in design and code. In this article, we will make clear some basic knowledge on how to build an system able to scale globally […]

Đọc tiếp →

HAPROXY IN USE

What is this article about ? What is HAProxy ? Install HAProxy Configure the load balancer Use HAProxy to balance Websocket traffic Use HAProxy to configue backup server HAProxy algo Use HAProxy to Observe all requests for errors Use HAProxy to Monitor for server downtime Use HAProxy to send logs to syslog Separating errors into […]

Đọc tiếp →

Use VIM for coding

Vim for coding

What is in this article about vim? Some Basic knowledge and keyword to use VIM Basic search in document with VIM Basic select text and block with VIM Basic copy and paste with VIM Basic moving in VIM Copy and paste in vim over ssh with X11 forwarding Replace content with VIM Replace content with […]

Đọc tiếp →

Docker on Centos

Using Docker Machine, we can set up Docker hosts on local systems, on cloud providers, and other environments very easily. We’ll cover that in a different recipe. How to To Install Docker on centos $ yum -y install docker How it works… The preceding command will install Docker and all the packages required by it. […]

Đọc tiếp →

Golang in use

What is this article about? Import Debug Variables and Declarations Function Declarations Data Type Structure, enum, class Maps, Arrays and Slices Interfaces Concurrency Pointer How to create a routes ( Storing routes, static routes, dynamic routes, Forwarding routes… ) Working with web handlers, requests, and ResponseWriter instances: parse request data, response JSON Making a middleware […]

Đọc tiếp →

PostgreSQL in use

What is in this article in summary? + Install postgreSQL on centos 7 + Secure your database connection via ssh tunnel + Some basic guide on psql prompt (How to Switching Over to the postgres Account on server, exit postgres back to linux command prompt, Create a new role, Set password for postgres account, Create […]

Đọc tiếp →