
🧑💻Head of Engineering at @Weddigital
Ho Chi Minh, Vietnam
Joined October 2010
- Tweets10.8K
- Following320
- Followers35
- Likes17
Nguyễn Đức retweeted
The MOST Popular post of this week: How do companies ship code to production?
Next week's topics will be listed at the end.
The diagram below illustrates the typical workflow.
Step 1: The process starts with a product owner creating user stories based on requirements.
Step 2: The dev team picks up the user stories from the backlog and puts them into a sprint for a two-week dev cycle.
Step 3: The developers commit source code into the code repository Git.
Step 4: A build is triggered in Jenkins. The source code must pass unit tests, code coverage threshold, and gates in SonarQube.
Step 5: Once the build is successful, the build is stored in artifactory. Then the build is deployed into the dev environment.
Step 6: There might be multiple dev teams working on different features. The features need to be tested independently, so they are deployed to QA1 and QA2.
Step 7: The QA team picks up the new QA environments and performs QA testing, regression testing, and performance testing.
Steps 8: Once the QA builds pass the QA team’s verification, they are deployed to the UAT environment.
Step 9: If the UAT testing is successful, the builds become release candidates and will be deployed to the production environment on schedule.
Step 10: SRE (Site Reliability Engineering) team is responsible for prod monitoring.
Over to you: what's your company's release process look like?
Next week, we will talk about:
- Big Announcement 😀
- How to test your system's functionality
- Unique ID generation
- Python vs. C++ vs. Java (YouTube)
- Top object store use cases
Subscribe to our weekly newsletter so you won't miss it: bit.ly/3KCnWXq
Nguyễn Đức retweeted
How do we design effective and safe APIs?
The diagram below shows typical API designs with a shopping cart example.
Note that API design is not just URL path design. Most of the time, we need to choose the proper resource names, identifiers, and path patterns. It is equally important to design proper HTTP header fields or to design effective rate-limiting rules within the API gateway.
Over to you: What are the most interesting APIs you’ve designed?
–
Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
Nguyễn Đức retweeted
Learn these 13 Git commands because you'll be using them 99% of the time:
1. `git init`
Initialize a new Git repository.
This creates a new subdirectory named ".git" in the current directory, where Git stores all the metadata for the repository.
2. `git clone`
Clone an existing repository.
This creates a local copy of the repository, including all of its history and branches.
`git clone <repo-link>`
3. `git add`
Stage changes for the next commit.
This adds the specified file(s) to the staging area, where they will be included in the next commit.
`git add file1.txt file2.txt`
4. `git commit`
Create a new commit.
This records the staged changes and any additional changes made since the last commit, along with a commit message describing the changes.
`git commit -m "Add new feature"`
5. `git push`
Push commits to a remote repository.
This sends the local commits to the specified remote repository, updating the branch on the remote with the new commits.
`git push origin main`
6. `git pull`
Fetch and merge changes from a remote repository.
This retrieves the latest commits from the specified remote repository and merges them into the current branch.
`git pull origin main`
7. `git branch`
List, create, or delete branches.
This command can be used to list the available branches in a repository, create a new branch, or delete an existing branch.
`git branch new-branch`
8. `git checkout`
Switch to a different branch.
This command allows you to switch to a different branch in the repository and make it the current working branch.
`git checkout main`
9. `git merge`
Merge one branch into another.
This command combines the changes from one branch into another branch, creating a new commit that reflects the merged changes.
`git merge new-branch`
10. `git status`
Show the status of the repository.
This command displays the current branch, any staged or unstaged changes, and any untracked files.
`git status`
11. `git rebase`
Incorporate changes from one branch into another branch.
Let's say you have made some changes on an "XYZ" branch that you want to incorporate into the "main" branch. You can use git rebase to reapply your changes on top of the main branch.
12. `git stash`
Temporarily save changes that you are not yet ready to commit.
If your changes are not ready to commit but you want to work on a different branch, you can temporarily save your changes for later use and switch branches without losing your progress.
13. `git revert`
Let's say you have made a mistake in a previous commit and you need to undo it. You can use git revert to create a new commit that undoes the changes introduced by the previous commit.
`git revert <commit1>..<commit2>`
Account: 3330112 at 8/28/2017 1:08:18 PM Open price: 1297.14 - Close price: 0 - Size: 0.1 of Symbol: XAUUSD.VN. Error:
1
Account: 3330112 at 8/28/2017 1:08:13 PM Open price: 1296.63 - Close price: 0 - Size: 0.1 of Symbol: XAUUSD.VN. Error:
Account: 3330112 at 8/28/2017 1:08:08 PM Open price: 1296.63 - Close price: 0 - Size: 0.1 of Symbol: XAUUSD.VN. Error:
Account: 3330112 at 8/28/2017 1:08:05 PM Open price: 1296.63 - Close price: 0 - Size: 0.1 of Symbol: XAUUSD.VN. Error:
Account: 88007616 at 3/30/2017 4:23:55 PM Open price: 1246.35 - Close price: 0 - Size: 10 of Symbol: XAUUSD.VN. Error: Off quotes
Account: 88007616 at 3/30/2017 4:23:54 PM Open price: 1246.35 - Close price: 0 - Size: 10 of Symbol: XAUUSD.VN. Error: Off quotes
Account: 88007616 at 3/30/2017 4:22:36 PM Open price: 1246.35 - Close price: 0 - Size: 10 of Symbol: XAUUSD.VN. Error: Off quotes
Account: 88007616 at 3/30/2017 4:22:34 PM Open price: 1246.35 - Close price: 0 - Size: 10 of Symbol: XAUUSD.VN. Error: Off quotes
Account: 88007616 at 3/30/2017 4:22:25 PM Open price: 1246.35 - Close price: 0 - Size: 10 of Symbol: XAUUSD.VN. Error: Off quotes
Account: 88007616 at 3/30/2017 4:22:23 PM Open price: 1246.35 - Close price: 0 - Size: 10 of Symbol: XAUUSD.VN. Error: Off quotes
Account: 5552116 at 3/16/2017 2:27:51 AM Open price: 1222.19 - Close price: 1222.19 - Size: 0.1 of Symbol: XAUUSD.VN. Error: Off quotes
1
Account: 88008301 at 3/15/2017 9:17:48 PM Open price: 1214.96 - Close price: 1214.91 - Size: 0.5 of Symbol: XAUUSD.VN. Error: Off quotes
Account: 5552116 at 3/15/2017 8:42:03 PM Open price: 1215.93 - Close price: 1215.58 - Size: 0.5 of Symbol: XAUUSD.VN. Error: Off quotes
Account: 88008301 at 3/15/2017 8:09:42 PM Open price: 1212.17 - Close price: 1212.17 - Size: 0.5 of Symbol: XAUUSD.VN. Error: Off quotes
Account: 88007616 at 3/15/2017 8:05:43 PM Open price: 1212.53 - Close price: 0 - Size: 10 of Symbol: XAUUSD.VN. Error: Off quotes







