1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-29 08:12:21 +00:00
2018-07-21 20:37:18 +08:00

14 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 6.1. 云上地鼠
从 2014 年 docker 诞生开始Go 语言开始在分布式领域崭露头角,之后 k8skonggroupcachenatsetcdtidb 让人们不断看到了 Go 在分布式领域的新的可能性。目前在大部分的分布式场景下Go 语言都有相应的产品无论是存储rpc 框架消息队列等等。Go 被称为分布式时代的 C 语言着实是言非虚。
从语言本身的特点来讲Go 编译后不依赖外部运行环境,部署方便,无论公司内的部署系统是古老的 ansible还是现在的 docker 镜像部署。都能够方便地与 Go 进行集成。所以 Go 天生适合分布式场景。而在没有 docker 的旧时代python、java 类的语言都会遇到部署时依赖环境冲突的问题,为此还出现了不少专门解决这些环境问题的工具。
比如 python 为了解决这个问题推出了 pipenv 方案。java 系统中要为无法共享 jvm 环境的应用分别设置自己的环境变量。
## 锁
## 数据一致性
## 定时器