---
title: "backend design in the mechanical sympathy way"
author: "bruce008"
date: "2017-06-29T16:20:37Z"
tags: []
categories: ["企业架构"]
slug: "backend-design-in-the-mechanical-sympathy-way"
draft: false
lastmod: "2017-06-29T16:20:37Z"
id: 2382104
url: "https://bruce008.iteye.com/blog/2382104"
---

1， cache

cache line

fasle sharing

2, CPU

serialization

interface invoking

encoding

procesor affinity

 

3, memory

memory barries / fences

memory access pattern is important

4, GC

garbage collector selection

5, IO

write combine

single writter

smart batching

sequential IO

6, lock-based / lock free

CAS

7, back pressure when overloaded